]> git.ipfire.org Git - people/ms/u-boot.git/commit
bootstage: Require timer_get_boot_us() to be defined
authorSimon Glass <sjg@chromium.org>
Mon, 22 May 2017 11:05:23 +0000 (05:05 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 5 Jun 2017 18:13:04 +0000 (14:13 -0400)
commitc87dc38d8f860710f5f624d9dae6cefded285b8d
treee109a9299c541839a03867320941ae098f9c7975
parent9fb34b01f7757ed772b77dd90e463c6e7499fef8
bootstage: Require timer_get_boot_us() to be defined

At present we provide a default version of this function for use by
bootstage. However it uses the system timer and therefore likely requires
driver model. This makes it impossible to time driver-model init.

Drop the function and require boards to provide their own. Add a sandbox
version also. There is a default implememtation in lib/time.c for boards
which use CONFIG_SYS_TIMER_COUNTER.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/sandbox/cpu/cpu.c
common/bootstage.c
include/bootstage.h