9
0
Fork 0

edb93xx: Fix SDRAM initialization

Before programming the SDRAM mode registers, mode register update mode must be
selected by setting the MRS bit and clearing INIT in GlConfig

Signed-off-by: Matthias Kaehlcke <matthias@kaehlcke.net>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Matthias Kaehlcke 2010-02-10 20:56:15 +01:00 committed by Sascha Hauer
parent 8676736218
commit c5b99bce5d
1 changed files with 5 additions and 0 deletions

View File

@ -111,6 +111,11 @@ static void setup_refresh_timer(void)
static void program_mode_registers(void)
{
struct sdram_regs *sdram = (struct sdram_regs *)SDRAM_BASE;
/* Select mode register update mode */
writel(GLCONFIG_MRS | GLCONFIG_CKE, &sdram->glconfig);
PROGRAM_MODE_REG(0);
#if (CONFIG_EP93XX_SDRAM_NUM_BANKS >= 2)