[U-Boot] core ticks/timer code

Scott Wood scottwood at freescale.com
Mon Apr 6 21:12:42 CEST 2009


On Sat, Apr 04, 2009 at 11:14:09PM +0200, Wolfgang Denk wrote:
> Dear Scott Wood,
> 
> In message <20090331213202.GB19920 at ld0162-tx32.am.freescale.net> you wrote:
> >
> > Is there any particular reason not to change the powerpc get_timer
> > implementation to use the timebase (scaled down to ms)?
> 
> I think so. There are some boards where we actually measure the system
> clock frequency against a known reference clock. IIRC this requires
> the TB to be independent, or something like that. [It's a long time
> since that code was written.]

The existing get_timer uses the decrementer, which is not independent of
the timebase.

-Scott


More information about the U-Boot mailing list