[U-Boot] core ticks/timer code

Scott Wood
2009-04-06T19:12:42Z

On Sat, Apr 04, 2009 at 11:14:09PM +0200, Wolfgang Denk wrote:
> Dear Scott Wood,
>
> In message <20090331213202.GB19920@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