2019-11-01 13:45:29 +01:00
|
|
|
# Timer driver configuration options
|
2015-05-20 18:40:39 +02:00
|
|
|
|
|
|
|
# Copyright (c) 2014-2015 Wind River Systems, Inc.
|
2017-01-24 22:03:19 +01:00
|
|
|
# Copyright (c) 2016 Cadence Design Systems, Inc.
|
2019-06-17 06:40:55 +02:00
|
|
|
# Copyright (c) 2019 Intel Corp.
|
2017-01-19 02:01:01 +01:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2015-06-05 20:01:57 +02:00
|
|
|
|
2022-12-21 13:18:54 +01:00
|
|
|
if SYS_CLOCK_EXISTS
|
|
|
|
|
2015-06-05 20:01:57 +02:00
|
|
|
menu "Timer Drivers"
|
|
|
|
|
2021-11-04 14:14:51 +01:00
|
|
|
config TIMER_HAS_64BIT_CYCLE_COUNTER
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
When this option is true, the k_cycle_get_64() call is
|
|
|
|
available to provide values from a 64-bit cycle counter.
|
|
|
|
|
2015-11-20 22:26:25 +01:00
|
|
|
config TIMER_READS_ITS_FREQUENCY_AT_RUNTIME
|
|
|
|
bool "Timer queries its hardware to find its frequency at runtime"
|
|
|
|
help
|
2017-12-13 16:08:21 +01:00
|
|
|
The drivers select this option automatically when needed. Do not modify
|
|
|
|
this unless you have a very good reason for it.
|
2016-01-04 14:48:50 +01:00
|
|
|
|
2019-06-25 19:09:45 +02:00
|
|
|
config SYSTEM_CLOCK_SLOPPY_IDLE
|
|
|
|
bool "Timer allowed to skew uptime clock during idle"
|
|
|
|
help
|
|
|
|
When true, the timer driver is not required to maintain a
|
|
|
|
correct system uptime count when the system enters idle.
|
|
|
|
Some platforms may take advantage of this to reduce the
|
|
|
|
overhead from regular interrupts required to handle counter
|
|
|
|
wraparound conditions.
|
|
|
|
|
2016-01-04 14:48:50 +01:00
|
|
|
config SYSTEM_CLOCK_INIT_PRIORITY
|
|
|
|
int "System clock driver initialization priority"
|
|
|
|
default 0
|
|
|
|
help
|
2017-12-13 16:08:21 +01:00
|
|
|
This options can be used to set a specific initialization priority
|
|
|
|
value for the system clock driver. As driver initialization might need
|
|
|
|
the clock to be running already, you should let the default value as it
|
|
|
|
is (0).
|
2017-12-21 14:14:19 +01:00
|
|
|
|
2021-01-06 21:16:55 +01:00
|
|
|
# Hidden option to be selected by individual SoC.
|
2018-10-12 15:58:21 +02:00
|
|
|
config TICKLESS_CAPABLE
|
2021-01-06 21:16:55 +01:00
|
|
|
bool
|
2018-10-12 15:58:21 +02:00
|
|
|
help
|
|
|
|
Timer drivers should select this flag if they are capable of
|
|
|
|
supporting tickless operation. That is, a call to
|
2021-02-25 21:33:15 +01:00
|
|
|
sys_clock_set_timeout() with a number of ticks greater than
|
2018-10-12 15:58:21 +02:00
|
|
|
one should be expected not to produce a call to
|
2021-02-25 21:33:15 +01:00
|
|
|
sys_clock_announce() (really, not to produce an interrupt at
|
2018-10-12 15:58:21 +02:00
|
|
|
all) until the specified expiration.
|
|
|
|
|
2021-11-04 14:26:19 +01:00
|
|
|
config SYSTEM_TIMER_HAS_DISABLE_SUPPORT
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
This option should be selected by drivers implementing support for
|
|
|
|
sys_clock_disable() API.
|
|
|
|
|
2022-09-30 20:54:48 +02:00
|
|
|
config SYSTEM_CLOCK_LOCK_FREE_COUNT
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
This option should be selected by drivers implementing a lock free
|
|
|
|
cycle count accessor. This is needed for instrumenting spin lock
|
|
|
|
hold times.
|
|
|
|
|
2021-11-04 14:14:51 +01:00
|
|
|
source "drivers/timer/Kconfig.altera_avalon"
|
|
|
|
source "drivers/timer/Kconfig.apic"
|
|
|
|
source "drivers/timer/Kconfig.arcv2"
|
|
|
|
source "drivers/timer/Kconfig.arm_arch"
|
|
|
|
source "drivers/timer/Kconfig.cavs"
|
|
|
|
source "drivers/timer/Kconfig.cc13x2_cc26x2_rtc"
|
|
|
|
source "drivers/timer/Kconfig.cortex_m_systick"
|
|
|
|
source "drivers/timer/Kconfig.esp32c3_sys"
|
|
|
|
source "drivers/timer/Kconfig.hpet"
|
|
|
|
source "drivers/timer/Kconfig.ite_it8xxx2"
|
|
|
|
source "drivers/timer/Kconfig.leon_gptimer"
|
|
|
|
source "drivers/timer/Kconfig.litex"
|
|
|
|
source "drivers/timer/Kconfig.mchp_xec_rtos"
|
2021-10-14 00:28:05 +02:00
|
|
|
source "drivers/timer/Kconfig.mcux_gpt"
|
2021-11-04 14:14:51 +01:00
|
|
|
source "drivers/timer/Kconfig.mcux_lptmr"
|
|
|
|
source "drivers/timer/Kconfig.mcux_os"
|
2020-12-01 08:32:10 +01:00
|
|
|
source "drivers/timer/Kconfig.mips_cp0"
|
2021-11-04 14:14:51 +01:00
|
|
|
source "drivers/timer/Kconfig.native_posix"
|
|
|
|
source "drivers/timer/Kconfig.npcx_itim"
|
|
|
|
source "drivers/timer/Kconfig.nrf_rtc"
|
|
|
|
source "drivers/timer/Kconfig.rcar_cmt"
|
|
|
|
source "drivers/timer/Kconfig.riscv_machine"
|
|
|
|
source "drivers/timer/Kconfig.rv32m1_lptmr"
|
|
|
|
source "drivers/timer/Kconfig.sam0_rtc"
|
|
|
|
source "drivers/timer/Kconfig.stm32_lptim"
|
|
|
|
source "drivers/timer/Kconfig.xlnx_psttc"
|
|
|
|
source "drivers/timer/Kconfig.xtensa"
|
2021-07-07 20:50:43 +02:00
|
|
|
|
2015-06-05 20:01:57 +02:00
|
|
|
endmenu
|
2022-12-21 13:18:54 +01:00
|
|
|
|
|
|
|
endif # SYS_CLOCK_EXISTS
|