zephyr/drivers/timer
Filip Kokosinski 70c978bb97 soc/riscv/sifive-freedom/fe310: use correct SYS_CLOCK_HW_CYCLES_PER_SEC
This commit introduces changes in three places in order to fix the
problem with timer-related tests on FE310-based boards:
* tests/kernel/sleep/kernel.common.timing
* tests/kernel/tickless/tickless_concept/kernel.tickless.concept
* tests/kernel/workq/work_queue/kernel.workqueue

The first change is the modification of the SYS_CLOCK_HW_CYCLES_PER_SEC
value back to 32768 Hz to match FE310's datasheet description.

The second change is CLINT frequency reduction in Renode simulation
model to 16 MHz to correspond with the oscillator frequency given by the
FE310's datasheet and the HiFive1 board schematic. This fixes the first
two tests.

The last change is reducing the MIN_DELAY define to 100. This causes the
RISC-V machine timer driver to update the mtimecmp register more often,
which in turn addresses the `work_queue/kernel.workqueue` problem with
work items finishing prematurely, causing the above-mentioned test to
fail.

Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
2022-05-24 08:58:43 -07:00
..
altera_avalon_timer_hal.c drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
apic_timer.c drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
apic_tsc.c drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
arcv2_timer0.c drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
arm_arch_timer.c drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
cavs_timer.c drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
cc13x2_cc26x2_rtc_timer.c drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
CMakeLists.txt timer: add support for MIPS CP0 timer 2022-01-19 13:48:21 -05:00
cortex_m_systick.c drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
esp32c3_sys_timer.c drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
hpet.c drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
ite_it8xxx2_timer.c drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
Kconfig timer: add support for MIPS CP0 timer 2022-01-19 13:48:21 -05:00
Kconfig.altera_avalon drivers: timer: split Kconfig 2021-12-04 07:34:53 -05:00
Kconfig.apic drivers: timer: split Kconfig 2021-12-04 07:34:53 -05:00
Kconfig.arcv2 drivers: timer: split Kconfig 2021-12-04 07:34:53 -05:00
Kconfig.arm_arch drivers: timer: split Kconfig 2021-12-04 07:34:53 -05:00
Kconfig.cavs drivers/cavs_timer: Cleanup & simplification pass 2022-01-05 15:01:45 -05:00
Kconfig.cc13x2_cc26x2_rtc drivers: timer: split Kconfig 2021-12-04 07:34:53 -05:00
Kconfig.cortex_m_systick drivers: timer: cortex_m_systick: improve ISR installation 2021-12-04 07:34:53 -05:00
Kconfig.esp32c3_sys drivers: timer: split Kconfig 2021-12-04 07:34:53 -05:00
Kconfig.hpet drivers: timer: split Kconfig 2021-12-04 07:34:53 -05:00
Kconfig.ite_it8xxx2 drivers: timer: split Kconfig 2021-12-04 07:34:53 -05:00
Kconfig.leon_gptimer drivers: timer: split Kconfig 2021-12-04 07:34:53 -05:00
Kconfig.litex drivers: timer: split Kconfig 2021-12-04 07:34:53 -05:00
Kconfig.mchp_xec_rtos drivers: timer: improve sys_timer_disable usage 2021-12-04 07:34:53 -05:00
Kconfig.mcux_gpt drivers: mcux_gpt_timer: Added GPT timer for HW clock 2021-12-13 20:13:21 -05:00
Kconfig.mcux_lptmr drivers: timer: improve sys_timer_disable usage 2021-12-04 07:34:53 -05:00
Kconfig.mcux_os drivers: timer: split Kconfig 2021-12-04 07:34:53 -05:00
Kconfig.mips_cp0 timer: Add tickless support for the MIPS CP0 timer 2022-01-19 13:48:21 -05:00
Kconfig.native_posix drivers: timer: improve sys_timer_disable usage 2021-12-04 07:34:53 -05:00
Kconfig.npcx_itim drivers: timer: split Kconfig 2021-12-04 07:34:53 -05:00
Kconfig.nrf_rtc drivers: timer: nrf_rtc_timer: Dont__disable_irq if BT_LL_SW_SPLIT 2022-03-22 11:36:28 +01:00
Kconfig.rcar_cmt drivers: timer: split Kconfig 2021-12-04 07:34:53 -05:00
Kconfig.riscv_machine soc/riscv/sifive-freedom/fe310: use correct SYS_CLOCK_HW_CYCLES_PER_SEC 2022-05-24 08:58:43 -07:00
Kconfig.rv32m1_lptmr drivers: timer: split Kconfig 2021-12-04 07:34:53 -05:00
Kconfig.sam0_rtc drivers: timer: split Kconfig 2021-12-04 07:34:53 -05:00
Kconfig.stm32_lptim kconfig: drivers: experimental settings now uses select EXPERIMENTAL 2021-10-25 10:46:48 +02:00
Kconfig.xlnx_psttc drivers: timer: split Kconfig 2021-12-04 07:34:53 -05:00
Kconfig.xtensa drivers/xtensa_sys_timer: Change default timer ID 2022-02-21 22:10:03 -05:00
leon_gptimer.c drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
litex_timer.c drivers: timer: litex_timer: Fix sys_clock_cycle_get functions 2022-05-10 18:41:20 +02:00
mchp_xec_rtos_timer.c drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
mcux_gpt_timer.c drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
mcux_lptmr_timer.c drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
mcux_os_timer.c drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
mips_cp0_timer.c drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
native_posix_timer.c drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
npcx_itim_timer.c drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
nrf_rtc_timer.c drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
rcar_cmt_timer.c drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
riscv_machine_timer.c soc/riscv/sifive-freedom/fe310: use correct SYS_CLOCK_HW_CYCLES_PER_SEC 2022-05-24 08:58:43 -07:00
rv32m1_lptmr_timer.c drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
sam0_rtc_timer.c drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
stm32_lptim_timer.c drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
sys_clock_init.c drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
xlnx_psttc_timer_priv.h drivers: timer: xlnx_psttc_timer: Implement tickless support 2020-03-21 14:20:17 -04:00
xlnx_psttc_timer.c drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00
xtensa_sys_timer.c drivers: migrate includes to <zephyr/...> 2022-05-06 19:58:21 +02:00