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

ARM: AM43xx: EMIF: configure self-refresh entry delay


Per a suggestion from the hardware team, program the emif_pwr_mgmt_ctrl
and emif_pwr_mgmt_ctrl_shdw registers within the EMIF to hold the
desired delay in cycles that the EMIF waits without an access to enter
self-refresh, in this case 8192 cycles. With this, code desiring to
enter self refresh only has to toggle one bit to enable it.

Signed-off-by: default avatarDave Gerlach <d-gerlach@ti.com>
parent 3a3939bf
No related branches found
No related tags found
No related merge requests found
...@@ -80,8 +80,8 @@ static void configure_mr(int nr, u32 cs) ...@@ -80,8 +80,8 @@ static void configure_mr(int nr, u32 cs)
*/ */
void config_sdram_emif4d5(const struct emif_regs *regs, int nr) void config_sdram_emif4d5(const struct emif_regs *regs, int nr)
{ {
writel(0x0, &emif_reg[nr]->emif_pwr_mgmt_ctrl); writel(0xA0, &emif_reg[nr]->emif_pwr_mgmt_ctrl);
writel(0x0, &emif_reg[nr]->emif_pwr_mgmt_ctrl_shdw); writel(0xA0, &emif_reg[nr]->emif_pwr_mgmt_ctrl_shdw);
writel(0x1, &emif_reg[nr]->emif_iodft_tlgc); writel(0x1, &emif_reg[nr]->emif_iodft_tlgc);
writel(regs->zq_config, &emif_reg[nr]->emif_zq_config); writel(regs->zq_config, &emif_reg[nr]->emif_zq_config);
......
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