From: John Traill Date: Fri, 29 Sep 2006 07:23:12 +0000 (+0100) Subject: Fix missing tCycle/modfreq calculation. X-Git-Tag: v2008.10-rc1~1125^2~1^2~20^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f55df18187e7a45cb73fec4370d12135e6691ae1;p=platform%2Fkernel%2Fu-boot.git Fix missing tCycle/modfreq calculation. Signed-off-by: John Traill --- diff --git a/cpu/mpc86xx/spd_sdram.c b/cpu/mpc86xx/spd_sdram.c index 44b0d41..39da3cc 100644 --- a/cpu/mpc86xx/spd_sdram.c +++ b/cpu/mpc86xx/spd_sdram.c @@ -466,6 +466,8 @@ spd_init(unsigned char i2c_address, unsigned int ddr_num, * are slower than the DDR module. */ busfreq = get_bus_freq(0) / 1000000; /* MHz */ + tCycle_ps = convert_bcd_tenths_to_cycle_time_ps(spd.clk_cycle3); + modfreq = 2 * 1000 * 1000 / tCycle_ps; if ((spd.mem_type == SPD_MEMTYPE_DDR2) && (busfreq < 266)) { printf("DDR: platform frequency too low for correct DDR2 controller operation\n");