Commit f3873e82989706bf3e2cddbd44dc3782883e50f0

Authored by Lokesh Vutla
1 parent f196adbd53

ARM: DRA7: Fix updating of refresh ctrl shadow

On DRA7, refresh ctrl shadow should be updated with
the final value.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>

Showing 1 changed file with 5 additions and 1 deletions Side-by-side Diff

arch/arm/cpu/armv7/omap-common/emif-common.c
... ... @@ -163,7 +163,11 @@
163 163 {
164 164 struct emif_reg_struct *emif = (struct emif_reg_struct *)base;
165 165  
166   - writel(regs->ref_ctrl, &emif->emif_sdram_ref_ctrl_shdw);
  166 + if (!is_dra7xx())
  167 + writel(regs->ref_ctrl, &emif->emif_sdram_ref_ctrl_shdw);
  168 + else
  169 + writel(regs->ref_ctrl_final, &emif->emif_sdram_ref_ctrl_shdw);
  170 +
167 171 writel(regs->sdram_tim1, &emif->emif_sdram_tim_1_shdw);
168 172 writel(regs->sdram_tim2, &emif->emif_sdram_tim_2_shdw);
169 173 writel(regs->sdram_tim3, &emif->emif_sdram_tim_3_shdw);