]> git.ipfire.org Git - people/ms/u-boot.git/commit
timer: Provide an early timer
authorSimon Glass <sjg@chromium.org>
Wed, 24 Feb 2016 16:14:49 +0000 (09:14 -0700)
committerSimon Glass <sjg@chromium.org>
Fri, 26 Feb 2016 15:53:10 +0000 (08:53 -0700)
commitc95fec31928d7e2596364ee1d226b52ffd7793f2
tree07972d661c4ce017dbaa2d5e8ce488717aed6cdd
parent4f051824b5c2a6bf8d3114c772676977fb95969a
timer: Provide an early timer

In some cases the timer must be accessible before driver model is active.
Examples include when using CONFIG_TRACE to trace U-Boot's execution before
driver model is set up. Enable this option to use an early timer. These
functions must be supported by your timer driver: timer_early_get_count()
and timer_early_get_rate().

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/timer/Kconfig
include/timer.h
lib/time.c