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:
parent
8676736218
commit
c5b99bce5d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue