u-boot/drivers/timer
Alex Bee d6d8078cb3 timer-uclass: Always use "clock-frequency" property as fallback
Currently the "clock-frequency" DT property is only being considered as an
fallback if either there is no clock driver, the clock driver implements
the request-op correctly or there is no clock defined for the timer at all.

This patch makes "clock-frequency" also being picked as a fallback if
getting the clock-rate fails, since clk_get(_by_index) will return no
error, if a clock driver does not implement the request-op and does also
not support getting the rate of the clock in question.
timer_post_probe will take care if the property does not exist in the DT or
is defined as 0.

Signed-off-by: Alex Bee <knaerzche@gmail.com>
2023-11-29 09:32:15 -05: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: Rename Andes PLIC to PLICSW 2022-11-03 13:27:56 +08:00
arc_timer.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
arm_global_timer.c global: Move remaining CONFIG_SYS_* to CFG_SYS_* 2022-12-05 16:06:08 -05:00
arm_twd_timer.c zynq: Convert arm twd timer to DM driver 2022-09-12 12:03:17 +02:00
ast_timer.c dm: treewide: Rename ofdata_to_platdata() to of_to_plat() 2020-12-13 16:51:09 -07:00
atmel_pit_timer.c WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
atmel_tcb_timer.c timer: atmel_tcb_timer: add atmel_tcb driver 2022-04-01 15:42:46 +03:00
cadence-ttc.c timer: cadence: Add bind function to driver 2022-03-30 14:43:26 +02:00
dw-apb-timer.c rockchip: timer: dw-apb-timer: use regs variable with uintptr_t size 2023-05-06 17:28:18 +08:00
fttmr010_timer.c timer: fttmr010: return a previously deleted driver now ported to DM 2023-03-06 17:03:56 -05:00
gxp-timer.c timer: gxp: Add HPE GXP timer support 2022-06-22 21:30:04 -04:00
imx-gpt-timer.c global: Move remaining CONFIG_SYS_* to CFG_SYS_* 2022-12-05 16:06:08 -05:00
Kconfig riscv: andesv5: Prefer using the generic RISC-V timer driver in S-mode 2023-10-04 18:23:54 +08:00
Makefile riscv: andesv5: Prefer using the generic RISC-V timer driver in S-mode 2023-10-04 18:23:54 +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 global: Finish CONFIG -> CFG migration 2023-01-20 12:27:24 -05:00
mtk_timer.c timer: mtk: add support for MediaTek MT7981/MT7986 SoCs 2022-09-23 15:09:15 -04:00
nomadik-mtu-timer.c timer: nomadik-mtu: Use dev_read_addr_ptr() 2021-07-14 16:47:57 -04:00
npcm-timer.c timer: npcm: Add NPCM timer support 2022-05-05 09:28:47 -04:00
omap-timer.c omap: timer: add ti,am654-timer compatibility 2023-07-28 10:10:29 -04:00
orion-timer.c timer: orion-timer: Fix problem in early_init_done() 2023-01-17 07:06:37 +01:00
ostm_timer.c Finish conversion of CONFIG_SYS_CLK_FREQ to Kconfig 2021-12-27 16:20:18 -05:00
riscv_aclint_timer.c timer: riscv_aclint_timer: add timer_get_boot_us for BOOTSTAGE 2023-10-04 17:55:37 +08:00
riscv_timer.c riscv: timer: add timer_get_boot_us for BOOTSTAGE 2023-10-04 17:55:20 +08:00
rockchip_timer.c rockchip: timer: rockchip_timer: fix compatible and driver name 2023-03-19 14:12:01 +08:00
sandbox_timer.c sandbox: fix building with CONFIG_SPL_TIMER=y 2023-03-01 11:22:40 -07:00
sp804_timer.c timer: add SP804 UCLASS timer driver 2022-11-02 13:58:17 -04:00
starfive-timer.c timer: starfive: Add Starfive timer support 2023-10-04 17:59:31 +08:00
stm32_timer.c global: Move remaining CONFIG_SYS_* to CFG_SYS_* 2022-12-05 16:06:08 -05:00
tegra-timer.c drivers: timer: add driver for ARMv7 based Tegra devices and T210 2023-02-02 10:16:41 -07:00
timer-uclass.c timer-uclass: Always use "clock-frequency" property as fallback 2023-11-29 09:32:15 -05:00
tsc_timer.c efi: Use a fixed value for the timer clock 2023-03-13 13:53:01 +01:00
xilinx-timer.c timer: xilinx-timer: use timer_conv_64() to fix timer wrap around 2022-11-22 15:02:07 +01:00