Skip to contentSkip to conversation

M5282EVB - initdram() does not return a value

PATCH New Erez Koelewyn 2 participants 2 messages Oct 16, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 M5282EVB - initdram() does not return a value

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

#1 lore raw

PATCH 1/1 M5282EVB - initdram() does not return a value

Review line 91

Quoted 9 lines · In message <[email protected]> you…

--- 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

(quoted diff) +0 -0
@@ -89,4 +89,6 @@
 /* Write to the SDRAM Mode Register */
 *(u32 *)(CFG_SDRAM_BASE + 0x400) = 0xA5A59696;
 }

^^^^^^^^^^^^^^^^
All leading white space corrupted by your mailer.

Please fix your mailer configuration and resent.

Quoted 3 lines

Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

And *never* send HTML here, please.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Gew?hnlich glaubt der Mensch,  wenn er nur Worte h?rt,  es m?sse sich
dabei doch auch was denken lassen.                 -- Goethe, Faust I