All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH] icecube/lite5200b: fix OF_TBCLK (timebase-frequency) calculation
@ 2007-03-07  7:02 ` Domen Puncer
  0 siblings, 0 replies; 4+ messages in thread
From: Domen Puncer @ 2007-03-07  7:02 UTC (permalink / raw)
  To: u-boot-users; +Cc: linuxppc-embedded

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(-)

Index: u-boot.git/include/configs/IceCube.h
===================================================================
--- u-boot.git.orig/include/configs/IceCube.h
+++ u-boot.git/include/configs/IceCube.h
@@ -182,7 +182,7 @@
 
 #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"
 
 /*

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-03-07 16:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-07  7:02 [RFC PATCH] icecube/lite5200b: fix OF_TBCLK (timebase-frequency) calculation Domen Puncer
2007-03-07  7:02 ` [U-Boot-Users] " Domen Puncer
2007-03-07 16:25 ` Grant Likely
2007-03-07 16:25   ` [U-Boot-Users] " Grant Likely

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.