|
@@ -194,7 +194,7 @@ step2:
|
|
|
* For example, 2GB on 666MT/s 64-bit bus takes about 402ms
|
|
|
* Let's wait for 800ms
|
|
|
*/
|
|
|
- bus_width = 3 - ((ddr->sdram_cfg & SDRAM_CFG_DBW_MASK)
|
|
|
+ bus_width = 3 - ((ddr_in32(&ddr->sdram_cfg) & SDRAM_CFG_DBW_MASK)
|
|
|
>> SDRAM_CFG_DBW_SHIFT);
|
|
|
timeout = ((total_gb_size_per_controller << (6 - bus_width)) * 100 /
|
|
|
(get_ddr_freq(0) >> 20)) << 1;
|