summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Luebbe <jlu@pengutronix.de>2013-10-02 21:30:10 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-10-06 13:13:53 +0200
commit58bed295c2a938653104c281240b1b8f75c55fda (patch)
treee12563075c3d694921d9814b61267438cdd21d7c
parent138f604bb24794e0f53d67623ad53f9f15e744cc (diff)
downloadbarebox-58bed295c2a938653104c281240b1b8f75c55fda.tar.gz
barebox-58bed295c2a938653104c281240b1b8f75c55fda.tar.xz
arm: omap: am33xx_generic: fix DDR setup for DDR2
For DDR2 RAMs, regs->zq_config is not used, which causes the AM33XX_EMIF4_0_REG(SDRAM_CONFIG) register to be left unconfigured, resulting in boot failure. It seems that the DDR2 case was missed during the consolidation in commit 9f122f8bf023a12ad5f84b61d1d74d3ff06104dd. The actual call for the Bone was removed in 88659d9c4a87a730f6efe4f38c011e8e0214a67b. Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/arm/mach-omap/am33xx_generic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap/am33xx_generic.c b/arch/arm/mach-omap/am33xx_generic.c
index 251c8d4876..3e2b6c4e15 100644
--- a/arch/arm/mach-omap/am33xx_generic.c
+++ b/arch/arm/mach-omap/am33xx_generic.c
@@ -302,7 +302,7 @@ void am33xx_config_sdram(const struct am33xx_emif_regs *regs)
writel(regs->sdram_ref_ctrl, AM33XX_EMIF4_0_REG(SDRAM_REF_CTRL));
writel(regs->sdram_ref_ctrl, AM33XX_EMIF4_0_REG(SDRAM_REF_CTRL_SHADOW));
- writel(regs->sdram_config, CM_EMIF_SDRAM_CONFIG);
+ writel(regs->sdram_config, AM33XX_EMIF4_0_REG(SDRAM_CONFIG));
}
void am33xx_config_io_ctrl(int ioctrl)