]> git.sur5r.net Git - u-boot/commitdiff
[RFC PATCH] icecube/lite5200b: fix OF_TBCLK (timebase-frequency) calculation
authorDomen Puncer <domen.puncer@telargo.com>
Fri, 20 Apr 2007 09:13:16 +0000 (11:13 +0200)
committerStefan Roese <sr@denx.de>
Fri, 20 Apr 2007 09:13:16 +0000 (11:13 +0200)
G2 core reference manual says decrementer and time base
are decreasing/increasing once every 4 bus clock cycles.
Lets fix it, so time in Linux won't run twice as fast

Signed-off-by: Domen Puncer <domen.puncer@telargo.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
include/configs/IceCube.h

index 0d3825413eac04421ab77264ca1552543266f52d..598811240a7ffe4f7359243e261d30f369fdc839 100644 (file)
 
 #define OF_CPU                 "PowerPC,5200@0"
 #define OF_SOC                 "soc5200@f0000000"
-#define OF_TBCLK               (bd->bi_busfreq / 8)
+#define OF_TBCLK               (bd->bi_busfreq / 4)
 #define OF_STDOUT_PATH         "/soc5200@f0000000/serial@2000"
 
 /*