u-boot/drivers/timer
Bin Meng a6d7e8c914 riscv: Split SiFive CLINT support between SPL and U-Boot proper
At present there is only one Kconfig option CONFIG_SIFIVE_CLINT to
control the enabling of SiFive CLINT support in both SPL (M-mode)
and U-Boot proper (S-mode). So for a typical SPL config that the
SiFive CLINT driver is enabled in both SPL and U-Boot proper, that
means the S-mode U-Boot tries to access the memory-mapped CLINT
registers directly, instead of the normal 'rdtime' instruction.

This was not a problem before, as the hardware does not forbid the
access from S-mode. However this becomes an issue now with OpenSBI
commit 8b569803475e ("lib: utils/sys: Add CLINT memregion in the root domain")
that the SiFive CLINT register space is protected by PMP for M-mode
access only. U-Boot proper does not boot any more with the latest
OpenSBI, that access exceptions are fired forever from U-Boot when
trying to read the timer value via the SiFive CLINT driver in U-Boot.

To solve this, we need to split current SiFive CLINT support between
SPL and U-Boot proper, using 2 separate Kconfig options.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Sean Anderson <seanga2@gmail.com>
2021-05-17 16:42:24 +08:00
..
ag101p_timer.c dm: Use access methods for dev/uclass private data 2021-01-05 12:24:40 -07:00
altera_timer.c dm: Use access methods for dev/uclass private data 2021-01-05 12:24:40 -07:00
andes_plmt_timer.c riscv: timer: Add support for an early timer 2021-01-18 11:06:32 +08:00
arc_timer.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
ast_timer.c dm: treewide: Rename ofdata_to_platdata() to of_to_plat() 2020-12-13 16:51:09 -07:00
atcpit100_timer.c dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07:00
atmel_pit_timer.c dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07:00
cadence-ttc.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
dw-apb-timer.c dm: treewide: Rename ofdata_to_platdata() to of_to_plat() 2020-12-13 16:51:09 -07:00
Kconfig timer: Add _TIMER suffix to Andes PLMT Kconfig 2020-10-26 10:01:28 +08:00
Makefile riscv: Split SiFive CLINT support between SPL and U-Boot proper 2021-05-17 16:42:24 +08:00
mchp-pit64b-timer.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
mpc83xx_timer.c allow opting out of WATCHDOG_RESET() from timer interrupt 2021-04-27 08:28:07 +02:00
mtk_timer.c timer: mtk_timer: initialize the timer before use 2021-01-18 15:23:06 -05:00
nomadik-mtu-timer.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
omap-timer.c omap: timer: fix the rate setting 2021-01-12 10:58:05 +05:30
ostm_timer.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
riscv_timer.c riscv: timer: Add support for an early timer 2021-01-18 11:06:32 +08:00
rockchip_timer.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
sandbox_timer.c sandbox: Only call timer_timebase_fallback() if present 2021-03-27 15:04:31 +13:00
sifive_clint_timer.c timer: sifive_clint: Support the official clint DT bindings 2021-04-08 15:37:29 +08:00
sti-timer.c Prepare v2021.01-rc5 2021-01-05 16:20:26 -05:00
stm32_timer.c timer: stm32: migrate trace to log macro 2021-01-13 09:52:58 +01:00
timer-uclass.c cpu: Rename SPL_CPU_SUPPORT to SPL_CPU 2021-03-27 15:04:31 +13:00
tsc_timer.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00