From: Erez Koelewyn Date: Tue, 16 Oct 2007 10:34:43 -0400 Subject: [U-Boot-Users] [PATCH] M5282EVB - initdram() does not return a value Message-ID: <7fd1eb680710160734o22b42293l777463e13a2a14eb@mail.gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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