[U-Boot-Users] [PATCH] M5282EVB - initdram() does not return a value
Erez Koelewyn
ekoelewyn at gmail.com
Tue Oct 16 16:34:43 CEST 2007
When working with a M5282EVB configuration I have noticed that initdram()
(in /board/m5282evb/m5282evb.c) does not return a value. It should return
the dram size.
This causes U-Boot to be unable to complete it's boot process since dram
size is set to some garbage value.
The following patch fixes the problem:
Signed-off-by: Erez Koelewyn ekoelewyn at gmail.com
--- u-boot-1.3.0-rc3/board/m5282evb/m5282evb.c 2007-10-13
18:13:19.000000000-0400
+++ u-boot-1.3.0-rc3-modified/board/m5282evb/m5282evb.c 2007-10-16 10:00:
13.488093200 -0400
@@ -89,4 +89,6 @@
/* Write to the SDRAM Mode Register */
*(u32 *)(CFG_SDRAM_BASE + 0x400) = 0xA5A59696;
}
+
+ return dramsize;
}
Regards,
Erez
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20071016/82e9a069/attachment.htm
More information about the U-Boot
mailing list