diff options
author | Russ Dill <Russ.Dill@ti.com> | 2016-07-21 04:28:31 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-07-25 12:00:06 -0400 |
commit | 3325b06556b78a2afdaaa781765b505f7d1f8ae4 (patch) | |
tree | e4627e24ab3481ade5da8a719434f871ce1319e7 /arch/arm | |
parent | 492716662fbdc08e254dda2c209b320e2bf6c837 (diff) | |
download | u-boot-imx-3325b06556b78a2afdaaa781765b505f7d1f8ae4.zip u-boot-imx-3325b06556b78a2afdaaa781765b505f7d1f8ae4.tar.gz u-boot-imx-3325b06556b78a2afdaaa781765b505f7d1f8ae4.tar.bz2 |
ARM: am33xx: Fix DDR init delay placement
The delay needs to be before the write to ref_ctrl register
which initiates refreshes. An improper initialization sequence
generates an L3 noc error.
Signed-off-by: Russ Dill <Russ.Dill@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/cpu/armv7/am33xx/ddr.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm/cpu/armv7/am33xx/ddr.c b/arch/arm/cpu/armv7/am33xx/ddr.c index 888cf1f..ef1fc4d 100644 --- a/arch/arm/cpu/armv7/am33xx/ddr.c +++ b/arch/arm/cpu/armv7/am33xx/ddr.c @@ -120,12 +120,15 @@ void config_sdram_emif4d5(const struct emif_regs *regs, int nr) writel(regs->sdram_config, &emif_reg[nr]->emif_sdram_config); writel(regs->sdram_config, &cstat->secure_emif_sdram_config); + + /* Wait 1ms because of L3 timeout error */ + udelay(1000); + writel(regs->ref_ctrl, &emif_reg[nr]->emif_sdram_ref_ctrl); writel(regs->ref_ctrl, &emif_reg[nr]->emif_sdram_ref_ctrl_shdw); /* Perform hardware leveling for DDR3 */ if (emif_sdram_type(regs->sdram_config) == EMIF_SDRAM_TYPE_DDR3) { - udelay(1000); writel(readl(&emif_reg[nr]->emif_ddr_ext_phy_ctrl_36) | 0x100, &emif_reg[nr]->emif_ddr_ext_phy_ctrl_36); writel(readl(&emif_reg[nr]->emif_ddr_ext_phy_ctrl_36_shdw) | |