u-boot/drivers/timer
Ovidiu Panait b34bc22bd9 timer: xilinx-timer: use timer_conv_64() to fix timer wrap around
Current xilinx_timer_get_count() implementation does not take into account
the periodic 32-bit wrap arounds, as it directly returns the 32-bit counter
register value. The roll-overs cause problems in the upper timer layers, as
generic timer code expects an incrementing 64-bit value from get_count() to
work correctly.

Add the missing 64-bit up-conversion to fix random hangs/delays in
__udelay().

Fixes: a36d86720f ("microblaze: Convert axi timer to DM driver")
Signed-off-by: Ovidiu Panait <ovpanait@gmail.com>
Reviewed-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/20221012053656.1492457-3-ovpanait@gmail.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
2022-11-22 15:02:07 +01: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 timer: sti: convert sti-timer to arm a9 global timer 2022-10-31 08:55:59 -04: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: fix whitespace in U_BOOT_DRIVER structure 2022-04-18 11:25:13 +08:00
gxp-timer.c timer: gxp: Add HPE GXP timer support 2022-06-22 21:30:04 -04:00
imx-gpt-timer.c timer: imx-gpt: Add timer support for i.MX SoCs family 2021-06-09 13:01:33 +02:00
Kconfig timer: add SP804 UCLASS timer driver 2022-11-02 13:58:17 -04:00
Makefile timer: add SP804 UCLASS timer driver 2022-11-02 13:58:17 -04: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 cyclic: Use schedule() instead of WATCHDOG_RESET() 2022-09-18 10:26:33 +02: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 arm: omap2plus: Move CONFIG_SYS_PTV out of CONFIG namespace 2022-06-06 12:09:00 -04:00
orion-timer.c timer: orion-timer: Only init timer once 2022-10-06 10:15:35 +02:00
ostm_timer.c Finish conversion of CONFIG_SYS_CLK_FREQ to Kconfig 2021-12-27 16:20:18 -05:00
riscv_timer.c riscv: timer: Add support for an early timer 2021-01-18 11:06:32 +08:00
rockchip_timer.c treewide: Try to avoid the preprocessor with OF_REAL 2021-09-25 09:46:15 -06: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
sp804_timer.c timer: add SP804 UCLASS timer driver 2022-11-02 13:58:17 -04:00
stm32_timer.c WS cleanup: remove trailing empty lines 2021-09-30 08:08:56 -04:00
timer-uclass.c timer-uclass: relocate ops pointers for CONFIG_NEEDS_MANUAL_RELOC 2022-11-22 15:02:07 +01:00
tsc_timer.c treewide: Use OF_REAL instead of !OF_PLATDATA 2021-09-25 09:46:15 -06:00
xilinx-timer.c timer: xilinx-timer: use timer_conv_64() to fix timer wrap around 2022-11-22 15:02:07 +01:00