u-boot-brain/drivers/timer
Simon Glass 77dd7c6854 x86: timer: use a timer base of 0
On x86 platforms the timer is reset to 0 when the SoC is reset. Having
this as the timer base is useful since it provides an indication of how
long it takes before U-Boot is running.

When U-Boot sets the timer base to something else, time is lost and we
no-longer have an accurate account of the time since reset. This
particularly affects bootstage.

Change the default to not read the timer base, leaving it at 0. Add an
option for when U-Boot is the secondary bootloader.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
2019-12-15 11:44:09 +08:00
..
ag101p_timer.c timer: Remove DM_FLAG_PRE_RELOC flag in various drivers 2018-11-14 09:16:28 -08:00
altera_timer.c timer: Remove DM_FLAG_PRE_RELOC flag in various drivers 2018-11-14 09:16:28 -08:00
arc_timer.c timer: Remove DM_FLAG_PRE_RELOC flag in various drivers 2018-11-14 09:16:28 -08:00
ast_timer.c timer: Remove DM_FLAG_PRE_RELOC flag in various drivers 2018-11-14 09:16:28 -08:00
atcpit100_timer.c timer: Remove DM_FLAG_PRE_RELOC flag in various drivers 2018-11-14 09:16:28 -08:00
atmel_pit_timer.c timer: Remove DM_FLAG_PRE_RELOC flag in various drivers 2018-11-14 09:16:28 -08:00
cadence-ttc.c timer: Remove DM_FLAG_PRE_RELOC flag in various drivers 2018-11-14 09:16:28 -08:00
dw-apb-timer.c timer: dw-apb: add reset handling 2019-11-20 22:32:00 +01:00
Kconfig x86: timer: use a timer base of 0 2019-12-15 11:44:09 +08:00
Makefile timer: renesas: Add RZ/A1 R7S72100 OSTM timer driver 2019-05-07 05:41:32 +02:00
mpc83xx_timer.c common: Move interrupt functions into a new header 2019-12-02 18:25:00 -05:00
mtk_timer.c timer: MediaTek: add timer driver for MediaTek SoCs 2018-11-28 23:04:51 -05:00
omap-timer.c timer: Remove DM_FLAG_PRE_RELOC flag in various drivers 2018-11-14 09:16:28 -08:00
ostm_timer.c timer: renesas: Add RZ/A1 R7S72100 OSTM timer driver 2019-05-07 05:41:32 +02:00
riscv_timer.c timer: Add generic driver for RISC-V privileged architecture defined timer 2018-12-18 09:56:26 +08:00
rockchip_timer.c rockchip: use 'arch-rockchip' as header file path 2019-05-01 00:00:05 +02:00
sandbox_timer.c regmap: fix regmap_read_poll_timeout warning about sandbox_timer_add_offset 2019-04-23 11:17:15 +02:00
sti-timer.c timer: Remove DM_FLAG_PRE_RELOC flag in various drivers 2018-11-14 09:16:28 -08:00
stm32_timer.c timer: Remove DM_FLAG_PRE_RELOC flag in various drivers 2018-11-14 09:16:28 -08:00
timer-uclass.c dm: timer: Skip device that does not have a valid ofnode in pre_probe() 2019-07-24 12:54:08 -07:00
tsc_timer.c x86: timer: use a timer base of 0 2019-12-15 11:44:09 +08:00