[U-Boot] [RFC][Timer API] Revised Specification - Implementation details

Wolfgang Denk
2011-05-27T07:45:44Z

Dear Graeme Russ,

In message <4DDF53D3.1060504@gmail.com> you wrote:
>
> > No. At least not unless you also provide other get_<some unit>_timer()
> > functions which we most likely will not do.
>
> I think you will find most platforms will support get_us_timer() trivially.
> Those that can't can use get_ms_timer() * 1000 (plus taking wrapping into
> consideration)

To use common code, we have to assume the "cannot" case, and be
prepared to get only millisecond resolution - when can then simply use
get_timer() right away and keep the code simple.

Best regards,

Wolfgang Denk

--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"Plan to throw one away. You will anyway."
- Fred Brooks, "The Mythical Man Month"