[U-Boot] [RFC] Review of U-Boot timer API

Graeme Russ
2011-05-25T21:11:02Z

On 25/05/11 23:38, Wolfgang Denk wrote:
> Dear Graeme Russ,
>
> In message <BANLkTimhtqYNWgvwr6w8kNOSV4U_tZs7yw@mail.gmail.com> you wrote:
>>
>> And what about platforms that do not support interrupts? Are you
>> mandating that get_timer() MUST always be supported by a timer updated
>> by an ISR?
>
> No, not at all. And I already answered this. For example on PPC, just
> reading the timebase would be perfectly sufficient, and simpler and
> more reliable than the current interrupt based approach.

I assume by 'timebase' you mean the 64-bit tick counter. If so, that is
_exactly_ what I am suggesting we do (and what does already happen on ARM).
The big change is, the prescaler is common code rather than haven dozens
(some of them broken) implementations

Regards,

Graeme