[U-Boot-Users] unassigned-patches/16: [PATCH] ppc4xx: ml507: Use of get_ram_size in board ml507

u-boot at bugs.denx.de u-boot at bugs.denx.de
Tue Jul 29 23:40:01 CEST 2008


-Change suggested by WD

Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda at uam.es>

---
Added to GNATS database as unassigned-patches/16
>Responsible:    patch-coord
>Message-Id:     <1217344570-14937-1-git-send-email-ricardo.ribalda at uam.es>
>In-Reply-To:    <200807291659.44619.sr at denx.de>
>References:     <200807291659.44619.sr at denx.de>
>Patch-Date:     Tue Jul 29 17:16:10 +0200 2008
---
 board/xilinx/ml507/ml507.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/board/xilinx/ml507/ml507.c b/board/xilinx/ml507/ml507.c
index e95d2af..d499303 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)
-- 
1.5.6.3







More information about the U-Boot mailing list