]> git.sur5r.net Git - u-boot/commitdiff
ppc4xx: ML507: Use of get_ram_size in board ml507
authorRicardo Ribalda Delgado <ricardo.ribalda@uam.es>
Tue, 29 Jul 2008 15:16:10 +0000 (17:16 +0200)
committerStefan Roese <sr@denx.de>
Wed, 30 Jul 2008 09:36:51 +0000 (11:36 +0200)
- Change suggested by WD

Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@uam.es>
Signed-off-by: Stefan Roese <sr@denx.de>
board/xilinx/ml507/ml507.c

index e95d2af657d852096b643329ddc4db1f9a7c3b1a..d4993039efd5078578ca768bf9b2d0da2d82d2c5 100644 (file)
@@ -27,13 +27,14 @@ int board_pre_init(void)
 
 int checkboard(void)
 {
-       puts ("ML507 Board\n");
+       puts("ML507 Board\n");
        return 0;
 }
 
 phys_size_t initdram(int board_type)
 {
-       return CFG_SDRAM_SIZE_MB * 1024 * 1024;
+       return get_ram_size(XPAR_DDR2_SDRAM_MEM_BASEADDR,
+                           CFG_SDRAM_SIZE_MB * 1024 * 1024);
 }
 
 void get_sys_info(sys_info_t * sysInfo)