icecube/lite5200b: fix OF_TBCLK (timebase-frequency) calculation
RFC PATCH 1/1 icecube/lite5200b: fix OF_TBCLK (timebase-frequency) calculation
(sorry if you receive this twice, MTA issues)
I tracked jiffies (on Linux) incrementing twice as fast on lite5200b to this ("timebase-frequency" property).
G2 core reference manual says decrementer and time base are decreasing/increasing once every 4 bus clock cycles.
Was there a reason this was busfreq/8?
Domen
--- include/configs/IceCube.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/configs/IceCube.h +1 -1
@@ -182,7 +182,7 @@#define OF_CPU "PowerPC,5200 at 0"#define OF_SOC "soc5200 at f0000000" -#define OF_TBCLK (bd->bi_busfreq / 8) +#define OF_TBCLK (bd->bi_busfreq / 4)#define OF_STDOUT_PATH "/soc5200 at f0000000/serial at 2000"/*
Quoted 7 lines · Domen Puncer
I tracked jiffies (on Linux) incrementing twice as fast on lite5200b to this ("timebase-frequency" property).
G2 core reference manual says decrementer and time base are decreasing/increasing once every 4 bus clock cycles.
Was there a reason this was busfreq/8?
Simply sloppyness on my part.
Quoted 25 lines
Domen
--- include/configs/IceCube.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Index:
u-boot.git/include/configs/IceCube.h
===================================================================include/configs/IceCube.h +1
-1@@ -182,7 +182,7 @@#define OF_CPU "PowerPC,5200 at 0"#define OF_SOC "soc5200 at f0000000" -#define OF_TBCLK (bd->bi_busfreq / 8) +#define OF_TBCLK (bd->bi_busfreq / 4)#define OF_STDOUT_PATH "/soc5200 at f0000000/serial at 2000"/* _______________________________________________
Linuxppc-embedded mailing list
Linuxppc-embedded at ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
Signature · 4 lines
Grant Likely, B.Sc. P.Eng. Secret Lab Technologies Ltd. grant.likely at secretlab.ca (403) 399-0195