
16 Oct
2007
16 Oct
'07
4:34 p.m.
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@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