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.
154 bool "VT8500 timer driver" if COMPILE_TEST
157 Enables support for the VT8500 driver.
160 bool "NPCM7xx timer driver" if COMPILE_TEST
165 Enable 24-bit TIMER0 and TIMER1 counters in the NPCM7xx architecture,
166 where TIMER0 serves as clockevent and TIMER1 serves as clocksource.
168 config CADENCE_TTC_TIMER
169 bool "Cadence TTC timer driver" if COMPILE_TEST
170 depends on COMMON_CLK
172 Enables support for the Cadence TTC driver.
175 bool "ASM9260 timer driver" if COMPILE_TEST
179 Enables support for the ASM9260 timer.
181 config CLKSRC_NOMADIK_MTU
182 bool "Nomakdik clocksource driver" if COMPILE_TEST
186 Support for Multi Timer Unit. MTU provides access
187 to multiple interrupt generating programmable
188 32-bit free running decrementing counters.
190 config CLKSRC_DBX500_PRCMU
191 bool "Clocksource PRCMU Timer" if COMPILE_TEST
194 Use the always on PRCMU Timer as clocksource.
196 config CLPS711X_TIMER
197 bool "Cirrus Logic timer driver" if COMPILE_TEST
200 Enables support for the Cirrus Logic PS711 timer.
203 bool "Atlas7 timer driver" if COMPILE_TEST
206 Enables support for the Atlas7 timer.
209 bool "MXS timer driver" if COMPILE_TEST
213 Enables support for the MXS timer.
216 bool "Prima2 timer driver" if COMPILE_TEST
219 Enables support for the Prima2 timer.
222 bool "U300 timer driver" if COMPILE_TEST
226 Enables support for the U300 timer.
229 bool "NSpire timer driver" if COMPILE_TEST
232 Enables support for the Nspire timer.
234 config KEYSTONE_TIMER
235 bool "Keystone timer driver" if COMPILE_TEST
236 depends on ARM || ARM64
239 Enables support for the Keystone timer.
241 config INTEGRATOR_AP_TIMER
242 bool "Integrator-AP timer driver" if COMPILE_TEST
245 Enables support for the Integrator-AP timer.
248 bool "Clocksource for Energy Micro's EFM32 SoCs" if !ARCH_EFM32
249 depends on OF && ARM && (ARCH_EFM32 || COMPILE_TEST)
253 Support to use the timers of EFM32 SoCs as clock source and clock
256 config CLKSRC_LPC32XX
257 bool "Clocksource for LPC32XX" if COMPILE_TEST
263 Support for the LPC32XX clocksource.
265 config CLKSRC_PISTACHIO
266 bool "Clocksource for Pistachio SoC" if COMPILE_TEST
270 Enables the clocksource for the Pistachio SoC.
273 bool "Texas Instruments 32.768 Hz Clocksource" if COMPILE_TEST
274 depends on GENERIC_SCHED_CLOCK
275 select TIMER_OF if OF
277 This option enables support for Texas Instruments 32.768 Hz clocksource
278 available on many OMAP-like platforms.
281 bool "NPS400 clocksource driver" if COMPILE_TEST
282 depends on !PHYS_ADDR_T_64BIT
284 select TIMER_OF if OF
286 NPS400 clocksource support.
287 It has a 64-bit counter with update rate up to 1000MHz.
288 This counter is accessed via couple of 32-bit memory-mapped registers.
291 bool "Clocksource for STM32 SoCs" if !ARCH_STM32
292 depends on OF && ARM && (ARCH_STM32 || COMPILE_TEST)
296 config CLKSRC_STM32_LP
297 bool "Low power clocksource for STM32 SoCs"
298 depends on MFD_STM32_LPTIMER || COMPILE_TEST
301 bool "Clocksource for MPS2 SoCs" if COMPILE_TEST
302 depends on GENERIC_SCHED_CLOCK
307 bool "Support for 32-bit TIMERn counters in ARC Cores" if COMPILE_TEST
308 depends on GENERIC_SCHED_CLOCK
311 These are legacy 32-bit TIMER0 and TIMER1 counters found on all ARC cores
312 (ARC700 as well as ARC HS38).
313 TIMER0 serves as clockevent while TIMER1 provides clocksource.
315 config ARC_TIMERS_64BIT
316 bool "Support for 64-bit counters in ARC HS38 cores" if COMPILE_TEST
317 depends on ARC_TIMERS
320 This enables 2 different 64-bit timers: RTC (for UP) and GFRC (for SMP).
321 RTC is implemented inside the core, while GFRC sits outside the core in
322 ARConnect IP block. Driver automatically picks one of them for clocksource
325 config ARM_ARCH_TIMER
327 select TIMER_OF if OF
328 select TIMER_ACPI if ACPI
330 config ARM_ARCH_TIMER_EVTSTREAM
331 bool "Enable ARM architected timer event stream generation by default"
332 default y if ARM_ARCH_TIMER
333 depends on ARM_ARCH_TIMER
335 This option enables support by default for event stream generation
336 based on the ARM architected timer. It is used for waking up CPUs
337 executing the wfe instruction at a frequency represented as a
338 power-of-2 divisor of the clock rate. The behaviour can also be
339 overridden on the command line using the
340 clocksource.arm_arch_timer.evtstream parameter.
341 The main use of the event stream is wfe-based timeouts of userspace
342 locking implementations. It might also be useful for imposing timeout
343 on wfe to safeguard against any programming errors in case an expected
344 event is not generated.
345 This must be disabled for hardware validation purposes to detect any
346 hardware anomalies of missing events.
348 config ARM_ARCH_TIMER_OOL_WORKAROUND
351 config FSL_ERRATUM_A008585
352 bool "Workaround for Freescale/NXP Erratum A-008585"
354 depends on ARM_ARCH_TIMER && ARM64
355 select ARM_ARCH_TIMER_OOL_WORKAROUND
357 This option enables a workaround for Freescale/NXP Erratum
358 A-008585 ("ARM generic timer may contain an erroneous
359 value"). The workaround will only be active if the
360 fsl,erratum-a008585 property is found in the timer node.
362 config HISILICON_ERRATUM_161010101
363 bool "Workaround for Hisilicon Erratum 161010101"
365 select ARM_ARCH_TIMER_OOL_WORKAROUND
366 depends on ARM_ARCH_TIMER && ARM64
368 This option enables a workaround for Hisilicon Erratum
369 161010101. The workaround will be active if the hisilicon,erratum-161010101
370 property is found in the timer node.
372 config ARM64_ERRATUM_858921
373 bool "Workaround for Cortex-A73 erratum 858921"
375 select ARM_ARCH_TIMER_OOL_WORKAROUND
376 depends on ARM_ARCH_TIMER && ARM64
378 This option enables a workaround applicable to Cortex-A73
379 (all versions), whose counter may return incorrect values.
380 The workaround will be dynamically enabled when an affected
383 config SUN50I_ERRATUM_UNKNOWN1
384 bool "Workaround for Allwinner A64 erratum UNKNOWN1"
386 depends on ARM_ARCH_TIMER && ARM64 && ARCH_SUNXI
387 select ARM_ARCH_TIMER_OOL_WORKAROUND
389 This option enables a workaround for instability in the timer on
390 the Allwinner A64 SoC. The workaround will only be active if the
391 allwinner,erratum-unknown1 property is found in the timer node.
393 config ARM_GLOBAL_TIMER
394 bool "Support for the ARM global timer" if COMPILE_TEST
395 select TIMER_OF if OF
398 This option enables support for the ARM global timer unit.
400 config ARM_TIMER_SP804
401 bool "Support for Dual Timer SP804 module" if COMPILE_TEST
402 depends on GENERIC_SCHED_CLOCK && CLKDEV_LOOKUP
404 select TIMER_OF if OF
406 config CLKSRC_ARM_GLOBAL_TIMER_SCHED_CLOCK
408 depends on ARM_GLOBAL_TIMER
411 Use ARM global timer clock source as sched_clock.
413 config ARMV7M_SYSTICK
414 bool "Support for the ARMv7M system time" if COMPILE_TEST
415 select TIMER_OF if OF
418 This option enables support for the ARMv7M system timer unit.
421 bool "Atmel PIT support" if COMPILE_TEST
423 select TIMER_OF if OF
425 Support for the Periodic Interval Timer found on Atmel SoCs.
428 bool "Atmel ST timer support" if COMPILE_TEST
433 Support for the Atmel ST timer.
435 config ATMEL_TCB_CLKSRC
436 bool "Atmel TC Block timer driver" if COMPILE_TEST
437 depends on ARM && HAS_IOMEM
438 select TIMER_OF if OF
440 Support for Timer Counter Blocks on Atmel SoCs.
442 config CLKSRC_EXYNOS_MCT
443 bool "Exynos multi core timer driver" if COMPILE_TEST
444 depends on ARM || ARM64
446 Support for Multi Core Timer controller on Exynos SoCs.
448 config CLKSRC_SAMSUNG_PWM
449 bool "PWM timer driver for Samsung S3C, S5P" if COMPILE_TEST
452 This is a new clocksource driver for the PWM timer found in
453 Samsung S3C, S5P and Exynos SoCs, replacing an earlier driver
454 for all devicetree enabled platforms. This driver will be
455 needed only on systems that do not have the Exynos MCT available.
458 bool "Freescale FlexTimer Module driver" if COMPILE_TEST
462 Support for Freescale FlexTimer Module (FTM) timer.
468 Support for Periodic Interrupt Timer on Freescale Vybrid Family SoCs.
470 config OXNAS_RPS_TIMER
471 bool "Oxford Semiconductor OXNAS RPS Timers driver" if COMPILE_TEST
475 This enables support for the Oxford Semiconductor OXNAS RPS timers.
477 config SYS_SUPPORTS_SH_CMT
481 bool "Mediatek timer driver" if COMPILE_TEST
486 Support for Mediatek timer driver.
489 bool "Spreadtrum timer driver" if EXPERT
491 depends on (ARCH_SPRD || COMPILE_TEST)
495 Enables support for the Spreadtrum timer driver.
497 config SYS_SUPPORTS_SH_MTU2
500 config SYS_SUPPORTS_SH_TMU
503 config SYS_SUPPORTS_EM_STI
506 config CLKSRC_JCORE_PIT
507 bool "J-Core PIT timer driver" if COMPILE_TEST
512 This enables build of clocksource and clockevent driver for
513 the integrated PIT in the J-Core synthesizable, open source SoC.
516 bool "Renesas CMT timer driver" if COMPILE_TEST
518 default SYS_SUPPORTS_SH_CMT
520 This enables build of a clocksource and clockevent driver for
521 the Compare Match Timer (CMT) hardware available in 16/32/48-bit
522 variants on a wide range of Mobile and Automotive SoCs from Renesas.
525 bool "Renesas MTU2 timer driver" if COMPILE_TEST
527 default SYS_SUPPORTS_SH_MTU2
529 This enables build of a clockevent driver for the Multi-Function
530 Timer Pulse Unit 2 (MTU2) hardware available on SoCs from Renesas.
531 This hardware comes with 16-bit timer registers.
534 bool "Renesas OSTM timer driver" if COMPILE_TEST
538 Enables the support for the Renesas OSTM.
541 bool "Renesas TMU timer driver" if COMPILE_TEST
543 default SYS_SUPPORTS_SH_TMU
545 This enables build of a clocksource and clockevent driver for
546 the 32-bit Timer Unit (TMU) hardware available on a wide range
550 bool "Renesas STI timer driver" if COMPILE_TEST
552 default SYS_SUPPORTS_EM_STI
554 This enables build of a clocksource and clockevent driver for
555 the 48-bit System Timer (STI) hardware available on a SoCs
556 such as EMEV2 from former NEC Electronics.
559 bool "Qualcomm MSM timer" if COMPILE_TEST
563 This enables the clocksource and the per CPU clockevent driver for the
566 config CLKSRC_VERSATILE
567 bool "ARM Versatile (Express) reference platforms clock source" if COMPILE_TEST
568 depends on GENERIC_SCHED_CLOCK && !ARCH_USES_GETTIMEOFFSET
570 default y if (ARCH_VEXPRESS || ARCH_VERSATILE) && ARM
572 This option enables clock source based on free running
573 counter available in the "System Registers" block of
574 ARM Versatile and Versatile Express reference platforms.
576 config CLKSRC_MIPS_GIC
579 select CLOCKSOURCE_WATCHDOG
582 config CLKSRC_TANGO_XTAL
583 bool "Clocksource for Tango SoC" if COMPILE_TEST
588 This enables the clocksource for Tango SoC.
591 bool "Clocksource for PXA or SA-11x0 platform" if COMPILE_TEST
595 This enables OST0 support available on PXA and SA-11x0
599 bool "Clockevent timer for the H8300 platform" if COMPILE_TEST
602 This enables the 8 bits timer for the H8300 platform.
605 bool "Clockevent timer for the H83069 platform" if COMPILE_TEST
608 This enables the 16 bits timer for the H8300 platform with the
612 bool "Clocksource for the H8300 platform" if COMPILE_TEST
615 This enables the clocksource for the H8300 platform with the
618 config CLKSRC_IMX_GPT
619 bool "Clocksource using i.MX GPT" if COMPILE_TEST
620 depends on (ARM || ARM64) && CLKDEV_LOOKUP
623 config CLKSRC_IMX_TPM
624 bool "Clocksource using i.MX TPM" if COMPILE_TEST
625 depends on (ARM || ARM64) && CLKDEV_LOOKUP
629 Enable this option to use IMX Timer/PWM Module (TPM) timer as
632 config TIMER_IMX_SYS_CTR
633 bool "i.MX system counter timer" if COMPILE_TEST
636 Enable this option to use i.MX system counter timer as a
640 bool "Low power clocksource found in the LPC" if COMPILE_TEST
641 select TIMER_OF if OF
645 Enable this option to use the Low Power controller timer
648 config ATCPIT100_TIMER
649 bool "ATCPIT100 timer driver"
650 depends on NDS32 || COMPILE_TEST
655 This option enables support for the Andestech ATCPIT100 timers.
658 bool "Timer for the RISC-V platform" if COMPILE_TEST
659 depends on GENERIC_SCHED_CLOCK && RISCV && RISCV_SBI
663 This enables the per-hart timer built into all RISC-V systems, which
664 is accessed via both the SBI and the rdcycle instruction. This is
665 required for all RISC-V systems.
668 bool "CLINT Timer for the RISC-V platform" if COMPILE_TEST
669 depends on GENERIC_SCHED_CLOCK && RISCV
673 This option enables the CLINT timer for RISC-V systems. The CLINT
674 driver is usually used for NoMMU RISC-V systems.
677 bool "SMP Timer for the C-SKY platform" if COMPILE_TEST
681 Say yes here to enable C-SKY SMP timer driver used for C-SKY SMP
683 csky,mptimer is not only used in SMP system, it also could be used in
684 single core system. It's not a mmio reg and it uses mtcr/mfcr instruction.
687 bool "Gx6605s SOC system timer driver" if COMPILE_TEST
692 This option enables support for gx6605s SOC's timer.
694 config MILBEAUT_TIMER
695 bool "Milbeaut timer driver" if COMPILE_TEST
701 Enables the support for Milbeaut timer driver.
704 bool "Clocksource/timer using the TCU in Ingenic JZ SoCs"
706 depends on MIPS || COMPILE_TEST
707 depends on COMMON_CLK
712 Support for the timer/counter unit of the Ingenic JZ SoCs.
714 config INGENIC_SYSOST
715 bool "Clocksource/timer using the SYSOST in Ingenic X SoCs"
716 depends on MIPS || COMPILE_TEST
717 depends on COMMON_CLK
722 Support for the SYSOST of the Ingenic X Series SoCs.
725 bool "Clocksource using the OST in Ingenic JZ SoCs"
726 depends on MIPS || COMPILE_TEST
727 depends on COMMON_CLK
730 Support for the Operating System Timer of the Ingenic JZ SoCs.
732 config MICROCHIP_PIT64B
733 bool "Microchip PIT64B support"
734 depends on OF || COMPILE_TEST
738 This option enables Microchip PIT64B timer for Atmel
739 based system. It supports the oneshot, the periodic
740 modes and high resolution. It is used as a clocksource