projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
504b5cd
)
Merge branch 'mpc86xx'
author
Jon Loeliger
<jdl@freescale.com>
Fri, 29 Sep 2006 14:34:35 +0000
(09:34 -0500)
committer
Jon Loeliger
<jdl@freescale.com>
Fri, 29 Sep 2006 14:34:35 +0000
(09:34 -0500)
cpu/mpc86xx/spd_sdram.c
patch
|
blob
|
history
diff --git
a/cpu/mpc86xx/spd_sdram.c
b/cpu/mpc86xx/spd_sdram.c
index 44b0d4133c6085e70f5cf48cfd6a64cf870fc46b..39da3cc5352dadd03ebb6cf825273028b1d8ce96 100644
(file)
--- 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");