u-boot/drivers/timer
Simon Glass a478a26cd0 x86: timer: Use a separate flag for whether timer is inited
At present the value of the timer base is used to determine whether the
timer has been set up or not. It is true that the timer is essentially
never exactly 0 when it is read. However 'time 0' may indicate the time
that the machine was reset so it is useful to be able to denote that.

Update the code to use a separate flag instead.

Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Aiden Park <aiden.park@intel.com>
Reviewed-by: Aiden Park <aiden.park@intel.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
2019-11-03 07:20:27 +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: remove unused DECLARE_GLOBAL_DATA_PTR 2019-05-10 22:48:11 +02:00
Kconfig timer: renesas: Add RZ/A1 R7S72100 OSTM timer driver 2019-05-07 05:41:32 +02:00
Makefile timer: renesas: Add RZ/A1 R7S72100 OSTM timer driver 2019-05-07 05:41:32 +02:00
mpc83xx_timer.c timer: Remove DM_FLAG_PRE_RELOC flag in various drivers 2018-11-14 09:16:28 -08: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 separate flag for whether timer is inited 2019-11-03 07:20:27 +08:00