Skip to content
Snippets Groups Projects
Commit f84880f0 authored by Dave Gerlach's avatar Dave Gerlach Committed by Tom Rini
Browse files

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: default avatarDave Gerlach <d-gerlach@ti.com>
parent 4800be4a
No related branches found
No related tags found
No related merge requests found
......@@ -96,6 +96,7 @@ void config_sdram_emif4d5(const struct emif_regs *regs, int nr)
writel(regs->ref_ctrl, &emif_reg[nr]->emif_sdram_ref_ctrl);
writel(regs->sdram_config, &emif_reg[nr]->emif_sdram_config);
writel(regs->sdram_config, &cstat->secure_emif_sdram_config);
if (emif_sdram_type() == EMIF_SDRAM_TYPE_LPDDR2) {
configure_mr(nr, 0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment