summaryrefslogtreecommitdiff
path: root/arch/arm/cpu/armv7
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2012-07-25 17:04:12 -0700
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2012-09-01 14:58:12 +0200
commit372f11f58d2cb019b4db885b744aac6c51a97350 (patch)
tree6192c8c528a3ea0845bf85c31697907e8ad72b1e /arch/arm/cpu/armv7
parent13f1c44bc5bb6515a22e1106c1b4eb40fef39ac6 (diff)
downloadu-boot-imx-372f11f58d2cb019b4db885b744aac6c51a97350.zip
u-boot-imx-372f11f58d2cb019b4db885b744aac6c51a97350.tar.gz
u-boot-imx-372f11f58d2cb019b4db885b744aac6c51a97350.tar.bz2
am33xx: Bugfix to config_sdram()
When we change SDRAM_CONFIG this triggers a refresh based on all of the parameters that we have programmed so we must do this last. Signed-off-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'arch/arm/cpu/armv7')
-rw-r--r--arch/arm/cpu/armv7/am33xx/ddr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/cpu/armv7/am33xx/ddr.c b/arch/arm/cpu/armv7/am33xx/ddr.c
index e592609..c37f91b 100644
--- a/arch/arm/cpu/armv7/am33xx/ddr.c
+++ b/arch/arm/cpu/armv7/am33xx/ddr.c
@@ -49,10 +49,9 @@ static struct ddr_cmdtctrl *ioctrl_reg = {
*/
int config_sdram(struct sdram_config *cfg)
{
- writel(cfg->sdrcr, &emif_reg->emif_sdram_config);
- writel(cfg->sdrcr2, &emif_reg->emif_lpddr2_nvm_config);
writel(cfg->refresh, &emif_reg->emif_sdram_ref_ctrl);
writel(cfg->refresh_sh, &emif_reg->emif_sdram_ref_ctrl_shdw);
+ writel(cfg->sdrcr, &emif_reg->emif_sdram_config);
return 0;
}