Commit 0fc43a41 authored by Heiko Schocher's avatar Heiko Schocher Committed by Sandeep Paulraj
Browse files

armv7, beagle: Second SDRAM bank don;t work

since commit 3667cbee


on beagle board the second sdram bank didn;t longer
work. Since this patch sdram settings just get copied
from bank a, but CMD_NOP, CMD_PRECHARGE, CMD_AUTOREFRESH
are not executed and after that mr register is also
not updated. This patch adds this for the bank b.
Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
cc: Steve Sakoman <steve@sakoman.com>
cc: Sandeep Paulraj <s-paulraj@ti.com>
cc: Wolfgang Denk <wd@denx.de>
Signed-off-by: default avatarSandeep Paulraj <s-paulraj@ti.com>
parent 76ee9a2c
...@@ -149,6 +149,13 @@ void do_sdrc_init(u32 cs, u32 early) ...@@ -149,6 +149,13 @@ void do_sdrc_init(u32 cs, u32 early)
&sdrc_actim_base1->ctrla); &sdrc_actim_base1->ctrla);
writel(readl(&sdrc_actim_base0->ctrlb), writel(readl(&sdrc_actim_base0->ctrlb),
&sdrc_actim_base1->ctrlb); &sdrc_actim_base1->ctrlb);
writel(CMD_NOP, &sdrc_base->cs[cs].manual);
writel(CMD_PRECHARGE, &sdrc_base->cs[cs].manual);
writel(CMD_AUTOREFRESH, &sdrc_base->cs[cs].manual);
writel(CMD_AUTOREFRESH, &sdrc_base->cs[cs].manual);
writel(readl(&sdrc_base->cs[CS0].mr),
&sdrc_base->cs[CS1].mr);
} }
/* /*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment