linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Clock / Timebase / Bus Frequencies Help
@ 2008-08-18 11:52 richw
  2008-08-18 15:59 ` Scott Wood
  0 siblings, 1 reply; 6+ messages in thread
From: richw @ 2008-08-18 11:52 UTC (permalink / raw)
  To: linuxppc-dev

We've got an 8347 based board very similar to the A&M asp8347=2E Core cloc=
k
is 400MHz=2E Bus clock is 266666666Hz=2E
According to the data sheet for the 8347, the decrementer clock runs at a
quarter of the rate of the bus clock=2E I have two questions:
In arch/powerpc/boot/redboot-83xx=2Ec, the timebase clock is passed to
dt=5Ffixup=5Fcpu=5Fclocks() as bi=5Fbusfreq / 16=2E If I leave it like thi=
s, my
system clock runs approximately 4 times too fast=2E=20
Can anyone point me in the direction of an explanation for the div by 16
rather than 4=3F

If I change the call to dt=5Ffixup=5Fcpu=5Fclocks so that bi=5Fbusfreq/4 i=
s passed
in, then the clock runs more accurately=2E However, its still not correct=2E=

This gives a decrementer frequency of 66666666Hz, but if I hard code the
value to 66000000Hz, the clock runs accurately=2E
Can anyone shed any light on why the value passed in by the boot loader
(redboot) seems to be inaccurate=2E

Cheers,


Richard=2E



--------------------------------------------------------------------
mail2web LIVE =96 Free email based on Microsoft=AE Exchange technology -
http://link=2Email2web=2Ecom/LIVE

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

end of thread, other threads:[~2008-08-19 14:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-18 11:52 Clock / Timebase / Bus Frequencies Help richw
2008-08-18 15:59 ` Scott Wood
2008-08-18 19:43   ` surendranath.moilla
2008-08-19 10:45     ` Richard Whitlock
2008-08-19 13:52       ` surendranath.moilla
2008-08-19 12:23   ` Richard Whitlock

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).