ARM: AM43xx: Write sdram_config to secure_emif_sdram_config

The register secure_emif_sdram_config in control module is copied to
the EMIF sdram_config register when it is coming out of DeepSleep0 in
order to ensure that the EMIF comes up for the correct type of DDR.
Without this, resume can hang from within the kernel.

Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
This commit is contained in:
Dave Gerlach 2014-01-30 22:24:25 -06:00 committed by Tom Rini
parent cee2fd5496
commit 2cf367813d
1 changed files with 1 additions and 0 deletions

View File

@ -178,6 +178,7 @@ void do_sdram_init(const struct ctrl_ioregs *ioregs,
clrbits_le32(&emif->emif_sdram_ref_ctrl, EMIF_REG_INITREF_DIS_MASK);
writel(regs->sdram_config, &emif->emif_sdram_config);
writel(regs->sdram_config, &cstat->secure_emif_sdram_config);
writel(regs->ref_ctrl, &emif->emif_sdram_ref_ctrl);
if (sdram_type == EMIF_SDRAM_TYPE_LPDDR2) {