From: Ricardo Ribalda Delgado Date: Tue, 29 Jul 2008 15:16:10 +0000 (+0200) Subject: ppc4xx: ML507: Use of get_ram_size in board ml507 X-Git-Tag: v2008.10-rc1~187 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a8a16af4d59d14cc1c1187c10aaad80d6b8394b5;p=u-boot ppc4xx: ML507: Use of get_ram_size in board ml507 - Change suggested by WD Signed-off-by: Ricardo Ribalda Delgado Signed-off-by: Stefan Roese --- diff --git a/board/xilinx/ml507/ml507.c b/board/xilinx/ml507/ml507.c index e95d2af657..d4993039ef 100644 --- a/board/xilinx/ml507/ml507.c +++ b/board/xilinx/ml507/ml507.c @@ -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)