提交 16807ee4 编写于 作者: V Vaibhav Hiremath 提交者: Sandeep Paulraj

omap3: Calculate CS1 size only when SDRC is

initialized for CS1

From: Vaibhav Hiremath <hvaibhav@ti.com>

The patch makes sure that size for SDRC CS1 gets calculated
only when the CS1 SDRC is initialized.
Signed-off-by: NVaibhav Hiremath <hvaibhav@ti.com>
Signed-off-by: NSandeep Paulraj <s-paulraj@ti.com>
上级 7ca4766b
...@@ -282,6 +282,8 @@ int dram_init(void) ...@@ -282,6 +282,8 @@ int dram_init(void)
DECLARE_GLOBAL_DATA_PTR; DECLARE_GLOBAL_DATA_PTR;
unsigned int size0 = 0, size1 = 0; unsigned int size0 = 0, size1 = 0;
size0 = get_sdr_cs_size(CS0);
/* /*
* If a second bank of DDR is attached to CS1 this is * If a second bank of DDR is attached to CS1 this is
* where it can be started. Early init code will init * where it can be started. Early init code will init
...@@ -290,10 +292,9 @@ int dram_init(void) ...@@ -290,10 +292,9 @@ int dram_init(void)
if ((sysinfo.mtype == DDR_COMBO) || (sysinfo.mtype == DDR_STACKED)) { if ((sysinfo.mtype == DDR_COMBO) || (sysinfo.mtype == DDR_STACKED)) {
do_sdrc_init(CS1, NOT_EARLY); do_sdrc_init(CS1, NOT_EARLY);
make_cs1_contiguous(); make_cs1_contiguous();
}
size0 = get_sdr_cs_size(CS0);
size1 = get_sdr_cs_size(CS1); size1 = get_sdr_cs_size(CS1);
}
gd->bd->bi_dram[0].start = PHYS_SDRAM_1; gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
gd->bd->bi_dram[0].size = size0; gd->bd->bi_dram[0].size = size0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册