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

Graeme Russ graeme.russ at gmail.com
Wed May 25 23:11:02 CEST 2011


On 25/05/11 23:38, Wolfgang Denk wrote:
> Dear Graeme Russ,
> 
> In message <BANLkTimhtqYNWgvwr6w8kNOSV4U_tZs7yw at 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


More information about the U-Boot mailing list