From 372f11f58d2cb019b4db885b744aac6c51a97350 Mon Sep 17 00:00:00 2001 From: Tom Rini Date: Wed, 25 Jul 2012 17:04:12 -0700 Subject: [PATCH] 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 --- arch/arm/cpu/armv7/am33xx/ddr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm/cpu/armv7/am33xx/ddr.c b/arch/arm/cpu/armv7/am33xx/ddr.c index e59260937d..c37f91b2f1 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; } -- 2.39.5