diff options
Diffstat (limited to 'cpu/mpc85xx/spd_sdram.c')
| -rw-r--r-- | cpu/mpc85xx/spd_sdram.c | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/cpu/mpc85xx/spd_sdram.c b/cpu/mpc85xx/spd_sdram.c index 2a4cd57b6..553f736a5 100644 --- a/cpu/mpc85xx/spd_sdram.c +++ b/cpu/mpc85xx/spd_sdram.c @@ -53,8 +53,8 @@ picos_to_clk(int picos)  {  	int clks; -	clks = picos / (2000000000 / (get_bus_freq(0) / 1000)); -	if (picos % (2000000000 / (get_bus_freq(0) / 1000)) != 0) { +	clks = picos / (2000000000 / (get_ddr_freq(0) / 1000)); +	if (picos % (2000000000 / (get_ddr_freq(0) / 1000)) != 0) {  		clks++;  	} @@ -421,7 +421,7 @@ spd_sdram(void)  	 * Adjust the CAS Latency to allow for bus speeds that  	 * are slower than the DDR module.  	 */ -	busfreq = get_bus_freq(0) / 1000000;	/* MHz */ +	busfreq = get_ddr_freq(0) / 1000000;	/* MHz */  	effective_data_rate = max_data_rate;  	if (busfreq < 90) { |