1 # SPDX-License-Identifier: GPL-2.0-only
2 menu "Clock Source drivers"
3 depends on GENERIC_CLOCKEVENTS
30 def_bool y if CLKSRC_I8253 || CLKEVT_I8253 || I8253_LOCK
36 bool "BCM2835 timer driver" if COMPILE_TEST
39 Enables the support for the BCM2835 timer driver.
42 bool "BCM mobile timer driver" if COMPILE_TEST
45 Enables the support for the BCM Kona mobile timer driver.
48 bool "Texas Instruments DaVinci timer driver" if COMPILE_TEST
50 Enables the support for the TI DaVinci timer driver.
52 config DIGICOLOR_TIMER
53 bool "Digicolor timer driver" if COMPILE_TEST
57 Enables the support for the digicolor timer driver.
60 bool "DW APB timer driver" if COMPILE_TEST
62 Enables the support for the dw_apb timer.
64 config DW_APB_TIMER_OF
70 bool "Faraday Technology timer driver" if COMPILE_TEST
76 Enables support for the Faraday Technology timer block
80 bool "Intel XScale IXP4xx timer driver" if COMPILE_TEST
85 Enables support for the Intel XScale IXP4xx SoC timer.
88 bool "Rockchip timer driver" if COMPILE_TEST
89 depends on ARM || ARM64
93 Enables the support for the Rockchip timer driver.
95 config ARMADA_370_XP_TIMER
96 bool "Armada 370 and XP timer driver" if COMPILE_TEST
101 Enables the support for the Armada 370 and XP timer driver.
104 bool "Meson6 timer driver" if COMPILE_TEST
107 Enables the support for the Meson6 timer driver.
110 bool "Orion timer driver" if COMPILE_TEST
115 Enables the support for the Orion timer driver
118 bool "Owl timer driver" if COMPILE_TEST
121 Enables the support for the Actions Semi Owl timer driver.
124 bool "RDA timer driver" if COMPILE_TEST
128 Enables the support for the RDA Micro timer driver.
131 bool "Sun4i timer driver" if COMPILE_TEST
136 Enables support for the Sun4i timer.
139 bool "Sun5i timer driver" if COMPILE_TEST
141 depends on COMMON_CLK
143 Enables support the Sun5i timer.
146 bool "Tegra timer driver" if COMPILE_TEST
149 depends on ARCH_TEGRA || COMPILE_TEST
151 Enables support for the Tegra driver.
153 config TEGRA186_TIMER
154 tristate "NVIDIA Tegra186 timer driver"
155 depends on ARCH_TEGRA || COMPILE_TEST
156 depends on WATCHDOG && WATCHDOG_CORE
158 Enables support for the timers and watchdogs found on NVIDIA
159 Tegra186 and later SoCs.
162 bool "VT8500 timer driver" if COMPILE_TEST
165 Enables support for the VT8500 driver.
168 bool "NPCM7xx timer driver" if COMPILE_TEST
173 Enable 24-bit TIMER0 and TIMER1 counters in the NPCM7xx architecture,
174 where TIMER0 serves as clockevent and TIMER1 serves as clocksource.
176 config CADENCE_TTC_TIMER
177 bool "Cadence TTC timer driver" if COMPILE_TEST
178 depends on COMMON_CLK
180 Enables support for the Cadence TTC driver.
183 bool "ASM9260 timer driver" if COMPILE_TEST
187 Enables support for the ASM9260 timer.
189 config CLKSRC_NOMADIK_MTU
190 bool "Nomakdik clocksource driver" if COMPILE_TEST
194 Support for Multi Timer Unit. MTU provides access
195 to multiple interrupt generating programmable
196 32-bit free running decrementing counters.
198 config CLKSRC_DBX500_PRCMU
199 bool "Clocksource PRCMU Timer" if COMPILE_TEST
202 Use the always on PRCMU Timer as clocksource.
204 config CLPS711X_TIMER
205 bool "Cirrus Logic timer driver" if COMPILE_TEST
208 Enables support for the Cirrus Logic PS711 timer.
211 bool "MXS timer driver" if COMPILE_TEST
215 Enables support for the MXS timer.
218 bool "NSpire timer driver" if COMPILE_TEST
221 Enables support for the Nspire timer.
223 config KEYSTONE_TIMER
224 bool "Keystone timer driver" if COMPILE_TEST
225 depends on ARM || ARM64
228 Enables support for the Keystone timer.
230 config INTEGRATOR_AP_TIMER
231 bool "Integrator-AP timer driver" if COMPILE_TEST
234 Enables support for the Integrator-AP timer.
236 config CLKSRC_LPC32XX
237 bool "Clocksource for LPC32XX" if COMPILE_TEST
243 Support for the LPC32XX clocksource.
245 config CLKSRC_PISTACHIO
246 bool "Clocksource for Pistachio SoC"
248 depends on MIPS || COMPILE_TEST
251 Enables the clocksource for the Pistachio SoC.
254 bool "Texas Instruments 32.768 Hz Clocksource" if COMPILE_TEST
255 depends on GENERIC_SCHED_CLOCK
256 select TIMER_OF if OF
258 This option enables support for Texas Instruments 32.768 Hz clocksource
259 available on many OMAP-like platforms.
262 bool "Clocksource for STM32 SoCs" if !ARCH_STM32
263 depends on OF && ARM && (ARCH_STM32 || COMPILE_TEST)
267 config CLKSRC_STM32_LP
268 bool "Low power clocksource for STM32 SoCs"
269 depends on MFD_STM32_LPTIMER || COMPILE_TEST
272 bool "Clocksource for MPS2 SoCs" if COMPILE_TEST
273 depends on GENERIC_SCHED_CLOCK
278 bool "Support for 32-bit TIMERn counters in ARC Cores" if COMPILE_TEST
279 depends on GENERIC_SCHED_CLOCK
282 These are legacy 32-bit TIMER0 and TIMER1 counters found on all ARC cores
283 (ARC700 as well as ARC HS38).
284 TIMER0 serves as clockevent while TIMER1 provides clocksource.
286 config ARC_TIMERS_64BIT
287 bool "Support for 64-bit counters in ARC HS38 cores" if COMPILE_TEST
288 depends on ARC_TIMERS
291 This enables 2 different 64-bit timers: RTC (for UP) and GFRC (for SMP).
292 RTC is implemented inside the core, while GFRC sits outside the core in
293 ARConnect IP block. Driver automatically picks one of them for clocksource
296 config ARM_ARCH_TIMER
298 select TIMER_OF if OF
299 select TIMER_ACPI if ACPI
301 config ARM_ARCH_TIMER_EVTSTREAM
302 bool "Enable ARM architected timer event stream generation by default"
303 default y if ARM_ARCH_TIMER
304 depends on ARM_ARCH_TIMER
306 This option enables support by default for event stream generation
307 based on the ARM architected timer. It is used for waking up CPUs
308 executing the wfe instruction at a frequency represented as a
309 power-of-2 divisor of the clock rate. The behaviour can also be
310 overridden on the command line using the
311 clocksource.arm_arch_timer.evtstream parameter.
312 The main use of the event stream is wfe-based timeouts of userspace
313 locking implementations. It might also be useful for imposing timeout
314 on wfe to safeguard against any programming errors in case an expected
315 event is not generated.
316 This must be disabled for hardware validation purposes to detect any
317 hardware anomalies of missing events.
319 config ARM_ARCH_TIMER_OOL_WORKAROUND
322 config FSL_ERRATUM_A008585
323 bool "Workaround for Freescale/NXP Erratum A-008585"
325 depends on ARM_ARCH_TIMER && ARM64
326 select ARM_ARCH_TIMER_OOL_WORKAROUND
328 This option enables a workaround for Freescale/NXP Erratum
329 A-008585 ("ARM generic timer may contain an erroneous
330 value"). The workaround will only be active if the
331 fsl,erratum-a008585 property is found in the timer node.
333 config HISILICON_ERRATUM_161010101
334 bool "Workaround for Hisilicon Erratum 161010101"
336 select ARM_ARCH_TIMER_OOL_WORKAROUND
337 depends on ARM_ARCH_TIMER && ARM64
339 This option enables a workaround for Hisilicon Erratum
340 161010101. The workaround will be active if the hisilicon,erratum-161010101
341 property is found in the timer node.
343 config ARM64_ERRATUM_858921
344 bool "Workaround for Cortex-A73 erratum 858921"
346 select ARM_ARCH_TIMER_OOL_WORKAROUND
347 depends on ARM_ARCH_TIMER && ARM64
349 This option enables a workaround applicable to Cortex-A73
350 (all versions), whose counter may return incorrect values.
351 The workaround will be dynamically enabled when an affected
354 config SUN50I_ERRATUM_UNKNOWN1
355 bool "Workaround for Allwinner A64 erratum UNKNOWN1"
357 depends on ARM_ARCH_TIMER && ARM64 && ARCH_SUNXI
358 select ARM_ARCH_TIMER_OOL_WORKAROUND
360 This option enables a workaround for instability in the timer on
361 the Allwinner A64 SoC. The workaround will only be active if the
362 allwinner,erratum-unknown1 property is found in the timer node.
364 config ARM_GLOBAL_TIMER
365 bool "Support for the ARM global timer" if COMPILE_TEST
366 select TIMER_OF if OF
369 This option enables support for the ARM global timer unit.
371 config ARM_GT_INITIAL_PRESCALER_VAL
372 int "ARM global timer initial prescaler value"
373 default 2 if ARCH_ZYNQ
375 depends on ARM_GLOBAL_TIMER
377 When the ARM global timer initializes, its current rate is declared
378 to the kernel and maintained forever. Should its parent clock
379 change, the driver tries to fix the timer's internal prescaler.
380 On some machs (i.e. Zynq) the initial prescaler value thus poses
381 bounds about how much the parent clock is allowed to decrease or
382 increase wrt the initial clock value.
383 This affects CPU_FREQ max delta from the initial frequency.
385 config ARM_TIMER_SP804
386 bool "Support for Dual Timer SP804 module" if COMPILE_TEST
387 depends on GENERIC_SCHED_CLOCK && HAVE_CLK
389 select TIMER_OF if OF
391 config CLKSRC_ARM_GLOBAL_TIMER_SCHED_CLOCK
393 depends on ARM_GLOBAL_TIMER
396 Use ARM global timer clock source as sched_clock.
398 config ARMV7M_SYSTICK
399 bool "Support for the ARMv7M system time" if COMPILE_TEST
400 select TIMER_OF if OF
403 This option enables support for the ARMv7M system timer unit.
406 bool "Atmel PIT support" if COMPILE_TEST
408 select TIMER_OF if OF
410 Support for the Periodic Interval Timer found on Atmel SoCs.
413 bool "Atmel ST timer support" if COMPILE_TEST
418 Support for the Atmel ST timer.
420 config ATMEL_TCB_CLKSRC
421 bool "Atmel TC Block timer driver" if COMPILE_TEST
422 depends on ARM && HAS_IOMEM
423 select TIMER_OF if OF
425 Support for Timer Counter Blocks on Atmel SoCs.
427 config CLKSRC_EXYNOS_MCT
428 bool "Exynos multi core timer driver" if COMPILE_TEST
429 depends on ARM || ARM64
430 depends on ARCH_EXYNOS || COMPILE_TEST
432 Support for Multi Core Timer controller on Exynos SoCs.
434 config CLKSRC_SAMSUNG_PWM
435 bool "PWM timer driver for Samsung S3C, S5P" if COMPILE_TEST
437 depends on ARCH_EXYNOS || ARCH_S3C24XX || ARCH_S3C64XX || ARCH_S5PV210 || COMPILE_TEST
439 This is a new clocksource driver for the PWM timer found in
440 Samsung S3C, S5P and Exynos SoCs, replacing an earlier driver
441 for all devicetree enabled platforms. This driver will be
442 needed only on systems that do not have the Exynos MCT available.
445 bool "Freescale FlexTimer Module driver" if COMPILE_TEST
449 Support for Freescale FlexTimer Module (FTM) timer.
455 Support for Periodic Interrupt Timer on Freescale Vybrid Family SoCs.
457 config OXNAS_RPS_TIMER
458 bool "Oxford Semiconductor OXNAS RPS Timers driver" if COMPILE_TEST
462 This enables support for the Oxford Semiconductor OXNAS RPS timers.
464 config SYS_SUPPORTS_SH_CMT
468 bool "Mediatek timer driver" if COMPILE_TEST
473 Support for Mediatek timer driver.
476 bool "Spreadtrum timer driver" if EXPERT
478 depends on (ARCH_SPRD || COMPILE_TEST)
482 Enables support for the Spreadtrum timer driver.
484 config SYS_SUPPORTS_SH_MTU2
487 config SYS_SUPPORTS_SH_TMU
490 config SYS_SUPPORTS_EM_STI
493 config CLKSRC_JCORE_PIT
494 bool "J-Core PIT timer driver" if COMPILE_TEST
499 This enables build of clocksource and clockevent driver for
500 the integrated PIT in the J-Core synthesizable, open source SoC.
503 bool "Renesas CMT timer driver" if COMPILE_TEST
505 default SYS_SUPPORTS_SH_CMT
507 This enables build of a clocksource and clockevent driver for
508 the Compare Match Timer (CMT) hardware available in 16/32/48-bit
509 variants on a wide range of Mobile and Automotive SoCs from Renesas.
512 bool "Renesas MTU2 timer driver" if COMPILE_TEST
514 default SYS_SUPPORTS_SH_MTU2
516 This enables build of a clockevent driver for the Multi-Function
517 Timer Pulse Unit 2 (MTU2) hardware available on SoCs from Renesas.
518 This hardware comes with 16-bit timer registers.
521 bool "Renesas OSTM timer driver"
522 depends on ARCH_RENESAS || COMPILE_TEST
526 Enables the support for the Renesas OSTM.
529 bool "Renesas TMU timer driver" if COMPILE_TEST
531 default SYS_SUPPORTS_SH_TMU
533 This enables build of a clocksource and clockevent driver for
534 the 32-bit Timer Unit (TMU) hardware available on a wide range
538 bool "Renesas STI timer driver" if COMPILE_TEST
540 default SYS_SUPPORTS_EM_STI
542 This enables build of a clocksource and clockevent driver for
543 the 48-bit System Timer (STI) hardware available on a SoCs
544 such as EMEV2 from former NEC Electronics.
547 bool "Qualcomm MSM timer" if COMPILE_TEST
551 This enables the clocksource and the per CPU clockevent driver for the
554 config CLKSRC_VERSATILE
555 bool "ARM Versatile (Express) reference platforms clock source" if COMPILE_TEST
556 depends on GENERIC_SCHED_CLOCK
558 default y if (ARCH_VEXPRESS || ARCH_VERSATILE) && ARM
560 This option enables clock source based on free running
561 counter available in the "System Registers" block of
562 ARM Versatile and Versatile Express reference platforms.
564 config CLKSRC_MIPS_GIC
567 select CLOCKSOURCE_WATCHDOG
571 bool "Clocksource for PXA or SA-11x0 platform" if COMPILE_TEST
575 This enables OST0 support available on PXA and SA-11x0
579 bool "Clockevent timer for the H8300 platform" if COMPILE_TEST
582 This enables the 8 bits timer for the H8300 platform.
585 bool "Clockevent timer for the H83069 platform" if COMPILE_TEST
588 This enables the 16 bits timer for the H8300 platform with the
592 bool "Clocksource for the H8300 platform" if COMPILE_TEST
595 This enables the clocksource for the H8300 platform with the
598 config CLKSRC_IMX_GPT
599 bool "Clocksource using i.MX GPT" if COMPILE_TEST
600 depends on (ARM || ARM64) && HAVE_CLK
603 config CLKSRC_IMX_TPM
604 bool "Clocksource using i.MX TPM" if COMPILE_TEST
605 depends on (ARM || ARM64) && HAVE_CLK
609 Enable this option to use IMX Timer/PWM Module (TPM) timer as
612 config TIMER_IMX_SYS_CTR
613 bool "i.MX system counter timer" if COMPILE_TEST
616 Enable this option to use i.MX system counter timer as a
620 bool "Low power clocksource found in the LPC" if COMPILE_TEST
621 select TIMER_OF if OF
625 Enable this option to use the Low Power controller timer
629 bool "Timer for the RISC-V platform" if COMPILE_TEST
630 depends on GENERIC_SCHED_CLOCK && RISCV && RISCV_SBI
634 This enables the per-hart timer built into all RISC-V systems, which
635 is accessed via both the SBI and the rdcycle instruction. This is
636 required for all RISC-V systems.
639 bool "CLINT Timer for the RISC-V platform" if COMPILE_TEST
640 depends on GENERIC_SCHED_CLOCK && RISCV
644 This option enables the CLINT timer for RISC-V systems. The CLINT
645 driver is usually used for NoMMU RISC-V systems.
648 bool "SMP Timer for the C-SKY platform" if COMPILE_TEST
652 Say yes here to enable C-SKY SMP timer driver used for C-SKY SMP
654 csky,mptimer is not only used in SMP system, it also could be used in
655 single core system. It's not a mmio reg and it uses mtcr/mfcr instruction.
658 bool "Gx6605s SOC system timer driver" if COMPILE_TEST
663 This option enables support for gx6605s SOC's timer.
665 config MILBEAUT_TIMER
666 bool "Milbeaut timer driver" if COMPILE_TEST
672 Enables the support for Milbeaut timer driver.
675 bool "MSC313E timer driver" if COMPILE_TEST
679 Enables support for the MStar MSC313E timer driver.
680 This provides access to multiple interrupt generating
681 programmable 32-bit free running incrementing counters.
684 bool "Clocksource/timer using the TCU in Ingenic JZ SoCs"
686 depends on MIPS || COMPILE_TEST
687 depends on COMMON_CLK
692 Support for the timer/counter unit of the Ingenic JZ SoCs.
694 config INGENIC_SYSOST
695 bool "Clocksource/timer using the SYSOST in Ingenic X SoCs"
696 depends on MIPS || COMPILE_TEST
697 depends on COMMON_CLK
702 Support for the SYSOST of the Ingenic X Series SoCs.
705 bool "Clocksource using the OST in Ingenic JZ SoCs"
706 depends on MIPS || COMPILE_TEST
707 depends on COMMON_CLK
710 Support for the Operating System Timer of the Ingenic JZ SoCs.
712 config MICROCHIP_PIT64B
713 bool "Microchip PIT64B support"
714 depends on OF || COMPILE_TEST
717 This option enables Microchip PIT64B timer for Atmel
718 based system. It supports the oneshot, the periodic
719 modes and high resolution. It is used as a clocksource