zephyr/drivers/timer
Hake Huang 8add9219a7 drivers: timer : cortex_m_systick MAX_TICKS protection
when CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC set to 960M
and CONFIG_SYS_CLOCK_TICKS_PER_SEC set to 100
the MAX_TICKS will be zero or even negative value, which is not
expected.
so need add a protection here downgrading the accuracy to
its as high as possible

also add build message to show that tickless has no effect

fixes: #36766

there used to be a workaround, not a fix,
either change the CONFIG_SYS_CLOCK_TICKS_PER_SEC=200
or
CONFIG_PM to set the CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC
to 32678

Signed-off-by: Hake Huang <hake.huang@oss.nxp.com>
2025-07-22 08:19:55 -04:00
..
ambiq_stimer.c drivers: timer: Add support for Apollo510 SoC system timer (STIMER) 2025-04-21 20:04:31 +02:00
apic_timer.c
apic_tsc.c
arcv2_timer0.c
arm_arch_timer.c
cc13xx_cc26xx_rtc_timer.c
cc23x0_systim_timer.c drivers: timer: Add support for cc23x0 systim 2025-02-04 11:56:05 +01:00
CMakeLists.txt drivers: timer: microchip: xec: Microchip MEC one kernel timer driver 2025-07-19 15:39:40 -04:00
cortex_m_systick.c drivers: timer : cortex_m_systick MAX_TICKS protection 2025-07-22 08:19:55 -04:00
cortex_m_systick.h drivers: timer: cortex_m_systick: add hook-based LPM timer support 2025-03-07 19:46:34 +01:00
esp32_sys_timer.c drivers: esp32: Update for shared intc 2025-04-02 19:02:27 +02:00
export.c drivers: timer: Export sys_clock_cycle_get_64() implementations 2024-12-06 12:14:19 +01:00
gecko_burtc_timer.c include: zephyr: sys: time_units: Make z_clock_hw_cycles_per_sec unsigned 2025-03-28 12:21:07 +01:00
hpet.c include: zephyr: sys: time_units: Make z_clock_hw_cycles_per_sec unsigned 2025-03-28 12:21:07 +01:00
ifx_cat1_lp_timer.c drivers: timer: Add support for IFX Low power timer 2025-05-29 20:19:18 -04:00
intel_adsp_timer.c
ite_it8xxx2_timer.c drivers/timer/it8xxx2: fix busy wait timer race condition 2024-12-25 08:40:53 +01:00
ite_it51xxx_timer.c drivers/timer: it51xxx: Compensate time calculation to reduce drift 2025-06-06 08:45:43 +02:00
Kconfig drivers: timer: microchip: xec: Microchip MEC one kernel timer driver 2025-07-19 15:39:40 -04:00
Kconfig.ambiq
Kconfig.arcv2
Kconfig.arm_arch
Kconfig.cavs
Kconfig.cc13xx_cc26xx_rtc
Kconfig.cc23x0_systim drivers: timer: Add support for cc23x0 systim 2025-02-04 11:56:05 +01:00
Kconfig.cortex_m_systick drivers: timer: Clean up Cortex-M systick Kconfig 2025-07-04 16:40:31 -10:00
Kconfig.esp32 boards: espressif: esp32c6: Add LP Core board support 2025-03-21 17:05:20 +01:00
Kconfig.gecko
Kconfig.ifx_cat1_lp drivers: timer: Add support for IFX Low power timer 2025-05-29 20:19:18 -04:00
Kconfig.it51xxx drivers/timer: Add timer driver of it51xxx 2025-04-08 10:48:26 +02:00
Kconfig.ite_it8xxx2
Kconfig.leon_gptimer
Kconfig.litex
Kconfig.mchp_sam drivers: timer: sam: add pit64b timer for sama7g5 2025-05-28 08:14:08 +02:00
Kconfig.mchp_xec_rtos
Kconfig.mcux_gpt
Kconfig.mcux_lptmr dts: counter: Remove old kinetis lptmr binding 2025-03-20 17:14:28 +01:00
Kconfig.mcux_os driver: timer: enable 64 bit cycle counter for MCUX_OS_TIMER 2025-06-24 20:03:01 -10:00
Kconfig.mips_cp0
Kconfig.mtk_adsp drivers: kconfig: Fix bleeding options 2025-01-31 11:50:12 +01:00
Kconfig.native_sim drivers timer: Rename native_posix_timer native_sim_timer 2025-03-11 18:54:49 +01:00
Kconfig.npcx_itim
Kconfig.nrf_grtc drivers: timer: nrf_grtc_timer: Align Zephyr to new AUTOEN read manner 2024-10-07 18:42:14 +02:00
Kconfig.nrf_rtc
Kconfig.nrf_xrtc
Kconfig.rcar_cmt
Kconfig.realtek_rts5912_rtmr drivers: kconfig: Fix bleeding options 2025-01-31 11:50:12 +01:00
Kconfig.renesas_ra_ulpt drivers: timer: Add ULPT timer for power management on Renesas RA MCUs 2025-04-03 08:41:08 +02:00
Kconfig.renesas_rx driver: timer: Support for RX system timer 2025-05-02 09:18:16 +02:00
Kconfig.renesas_rz drivers: system timer: Initial support for RZ/G3S 2025-06-03 17:08:30 +02:00
Kconfig.renesas_rza2m drivers: timer: Add initial support for RZ/A2M 2025-04-25 14:05:01 +02:00
Kconfig.riscv_machine drivers: timer: Harmonize mtime-based RISC-V timers 2025-01-22 05:39:59 +01:00
Kconfig.rv32m1_lptmr
Kconfig.sam0_rtc dts: rtc: sam0: Add clock properties 2025-02-07 07:37:56 +01:00
Kconfig.silabs driver: sleeptimer: siwx917: Add siwx91x Sleeptimer driver 2025-04-03 06:24:54 +02:00
Kconfig.smartbond
Kconfig.stm32_lptim
Kconfig.sy1xx_sys_timer
Kconfig.ti_dm_timer
Kconfig.wch_ch32v00x soc: Add support for the WCH CH32V303 2025-05-24 18:03:53 +02:00
Kconfig.x86
Kconfig.xlnx_psttc
Kconfig.xtensa
leon_gptimer.c
litex_timer.c
mchp_sam_pit64b_timer.c drivers: timer: sam: add pit64b timer for sama7g5 2025-05-28 08:14:08 +02:00
mchp_xec_rtos_timer.c drivers: timer: microchip: xec: Microchip MEC one kernel timer driver 2025-07-19 15:39:40 -04:00
mcux_gpt_timer.c
mcux_lptmr_timer.c dts: counter: Remove old kinetis lptmr binding 2025-03-20 17:14:28 +01:00
mcux_os_timer.c soc: nxp: Flatten MCX SOCs 2025-07-19 13:25:29 -04:00
mips_cp0_timer.c
mtk_adsp_timer.c boards/mediatek: Add mt8196_adsp 2024-11-28 20:51:50 +01:00
native_sim_timer.c drivers/timer/native_sim: Use upper case long suffix 2025-05-13 12:09:30 +02:00
npcx_itim_timer.c driver: timer: npcx: bypass timer counter reading issue 2024-12-16 15:55:16 +01:00
nrf_grtc_timer.c drivers: timer: nrf_grtc_timer: add last_count initialization 2025-06-30 15:23:44 -05:00
nrf_rtc_timer.c drivers: timer: nrf_rtc_timer: Optimize z_nrf_rtc_timer_get_ticks 2025-06-12 09:26:29 -07:00
rcar_cmt_timer.c
realtek_rts5912_rtmr.c drivers: timer : fix rtmr timer. 2025-05-22 02:21:12 +02:00
renesas_ra_ulpt_timer.c drivers: timer: Add ULPT timer for power management on Renesas RA MCUs 2025-04-03 08:41:08 +02:00
renesas_rx_cmt.c driver: timer: Support for RX system timer 2025-05-02 09:18:16 +02:00
renesas_rz_gtm_timer.c drivers: system timer: Initial support for RZ/G3S 2025-06-03 17:08:30 +02:00
renesas_rza2m_os_timer.c drivers: timer: Add initial support for RZ/A2M 2025-04-25 14:05:01 +02:00
riscv_machine_timer.c drivers: timer: riscv_machine_timer: Use reg-names to access registers 2025-05-27 19:04:22 +02:00
rv32m1_lptmr_timer.c
sam0_rtc_timer.c drivers: timer: sam0: fix MCLK pointer and mask in init function 2025-02-28 14:54:59 +01:00
silabs_sleeptimer_timer.c include: zephyr: sys: time_units: Make z_clock_hw_cycles_per_sec unsigned 2025-03-28 12:21:07 +01:00
smartbond_timer.c smartbond_timer: If PM is set, take into account watchdog for timeout ticks 2025-01-15 15:04:29 +01:00
stm32_lptim_timer.c drivers: timer: stm32 lptim: Fix the st,timeout runtime check 2025-07-19 13:22:44 -04:00
sy1xx_sys_timer.c soc: sensry: udma, pad renaming 2024-11-16 15:06:43 -05:00
sys_clock_init.c
ti_dmtimer.c drivers: timer: ti_dmtimer: Do not require systick_timer node label 2025-06-03 17:08:37 +02:00
wch_systick_ch32v00x.c modules: Update hal_wch 2025-05-24 18:03:53 +02:00
xlnx_psttc_timer_priv.h
xlnx_psttc_timer.c
xtensa_sys_timer.c