zephyr/drivers/timer
Ren Chen 765a4eb0b8 drivers: timer: it8xxx2: enhances the accuracy of hw cycle calculation
This commit enhances the accuracy of hardware cycle calculation before
setting the IT8xxx2 event timer. The next target cycle is calculated by
the last, elapsed, and expected timeout ticks. And then, the difference
in hardware cycles between the target cycle and the current cycle is set
into the event timer. This increased accuracy effectively resolves the
clock drift issue.

Tested with:
west build -p always -b it8xxx2_evb tests/kernel/timer/timer_api
     -T kernel.timer.tickless
west build -p always -b it8xxx2_evb tests/kernel/timer/timer_behavior
     -T kernel.timer.timer

Fixes #67474 #67833

Signed-off-by: Ruibin Chang <Ruibin.Chang@ite.com.tw>
Signed-off-by: Ren Chen <Ren.Chen@ite.com.tw>
2024-03-15 17:11:33 -04:00
..
altera_avalon_timer_hal.c
ambiq_stimer.c timer: ambiq_stimer: Correct set_timeout's delta clock calculation 2024-01-08 10:07:46 +01:00
apic_timer.c
apic_tsc.c
arcv2_timer0.c
arm_arch_timer.c
cc13xx_cc26xx_rtc_timer.c
CMakeLists.txt drivers: timer: add GRTC driver 2024-01-30 21:00:44 +00:00
cortex_m_systick.c
esp32c3_sys_timer.c
gecko_burtc_timer.c
hpet.c x86: revert removing soc.h from atom soc 2024-03-04 20:07:30 +01:00
intel_adsp_timer.c hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
ite_it8xxx2_timer.c drivers: timer: it8xxx2: enhances the accuracy of hw cycle calculation 2024-03-15 17:11:33 -04:00
Kconfig drivers: timer: add GRTC driver 2024-01-30 21:00:44 +00:00
Kconfig.altera_avalon
Kconfig.ambiq
Kconfig.arcv2
Kconfig.arm_arch
Kconfig.cavs
Kconfig.cc13xx_cc26xx_rtc
Kconfig.cortex_m_systick
Kconfig.esp32c3_sys
Kconfig.gecko hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
Kconfig.ite_it8xxx2
Kconfig.leon_gptimer
Kconfig.litex
Kconfig.mchp_xec_rtos
Kconfig.mcux_gpt
Kconfig.mcux_lptmr
Kconfig.mcux_os
Kconfig.mips_cp0
Kconfig.native_posix
Kconfig.npcx_itim
Kconfig.nrf_grtc drivers: timer: add GRTC driver 2024-01-30 21:00:44 +00:00
Kconfig.nrf_rtc drivers: timer: move SYSTEM_CLOCK_WAIT to Kconfig.nrf_xrtc 2024-01-30 21:00:44 +00:00
Kconfig.nrf_xrtc drivers: timer: add GRTC driver 2024-01-30 21:00:44 +00:00
Kconfig.rcar_cmt
Kconfig.riscv_machine
Kconfig.rv32m1_lptmr
Kconfig.sam0_rtc
Kconfig.stm32_lptim drivers: timer: stm32 lptim: add support for backup standby timer 2024-01-25 08:55:02 +01:00
Kconfig.x86 hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
Kconfig.xlnx_psttc
Kconfig.xtensa
leon_gptimer.c
litex_timer.c drivers: timer: litex: add missing include 2024-01-19 15:13:53 +00:00
mchp_xec_rtos_timer.c hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
mcux_gpt_timer.c
mcux_lptmr_timer.c
mcux_os_timer.c
mips_cp0_timer.c
native_posix_timer.c
npcx_itim_timer.c
nrf_grtc_timer.c modules: hal_nordic: Enable support for DPPI on nRF54H20 2024-03-12 14:27:16 +00:00
nrf_rtc_timer.c
rcar_cmt_timer.c
riscv_machine_timer.c
rv32m1_lptmr_timer.c
sam0_rtc_timer.c
stm32_lptim_timer.c drivers: timer: stm32 lptimer when sleeping for -1 2024-02-26 11:48:22 +01:00
sys_clock_init.c
xlnx_psttc_timer_priv.h
xlnx_psttc_timer.c
xtensa_sys_timer.c