1 menu "Clock Source drivers"
2 depends on GENERIC_CLOCKEVENTS
29 def_bool y if CLKSRC_I8253 || CLKEVT_I8253 || I8253_LOCK
35 bool "BCM2835 timer driver" if COMPILE_TEST
38 Enables the support for the BCM2835 timer driver.
41 bool "BCM mobile timer driver" if COMPILE_TEST
44 Enables the support for the BCM Kona mobile timer driver.
46 config DIGICOLOR_TIMER
47 bool "Digicolor timer driver" if COMPILE_TEST
51 Enables the support for the digicolor timer driver.
54 bool "DW APB timer driver" if COMPILE_TEST
56 Enables the support for the dw_apb timer.
58 config DW_APB_TIMER_OF
64 bool "Faraday Technology timer driver" if COMPILE_TEST
70 Enables support for the Faraday Technology timer block
74 bool "Rockchip timer driver" if COMPILE_TEST
75 depends on ARM || ARM64
79 Enables the support for the rockchip timer driver.
81 config ARMADA_370_XP_TIMER
82 bool "Armada 370 and XP timer driver" if COMPILE_TEST
87 Enables the support for the Armada 370 and XP timer driver.
90 bool "Meson6 timer driver" if COMPILE_TEST
93 Enables the support for the Meson6 timer driver.
96 bool "Orion timer driver" if COMPILE_TEST
101 Enables the support for the Orion timer driver
104 bool "Owl timer driver" if COMPILE_TEST
107 Enables the support for the Actions Semi Owl timer driver.
110 bool "Sun4i timer driver" if COMPILE_TEST
115 Enables support for the Sun4i timer.
118 bool "Sun5i timer driver" if COMPILE_TEST
120 depends on COMMON_CLK
122 Enables support the Sun5i timer.
125 bool "Tegra timer driver" if COMPILE_TEST
129 Enables support for the Tegra driver.
132 bool "VT8500 timer driver" if COMPILE_TEST
135 Enables support for the VT8500 driver.
138 bool "NPCM7xx timer driver" if COMPILE_TEST
143 Enable 24-bit TIMER0 and TIMER1 counters in the NPCM7xx architecture,
144 While TIMER0 serves as clockevent and TIMER1 serves as clocksource.
146 config CADENCE_TTC_TIMER
147 bool "Cadence TTC timer driver" if COMPILE_TEST
148 depends on COMMON_CLK
150 Enables support for the cadence ttc driver.
153 bool "ASM9260 timer driver" if COMPILE_TEST
157 Enables support for the ASM9260 timer.
159 config CLKSRC_NOMADIK_MTU
160 bool "Nomakdik clocksource driver" if COMPILE_TEST
164 Support for Multi Timer Unit. MTU provides access
165 to multiple interrupt generating programmable
166 32-bit free running decrementing counters.
168 config CLKSRC_NOMADIK_MTU_SCHED_CLOCK
170 depends on CLKSRC_NOMADIK_MTU
172 Use the Multi Timer Unit as the sched_clock.
174 config CLKSRC_DBX500_PRCMU
175 bool "Clocksource PRCMU Timer" if COMPILE_TEST
178 Use the always on PRCMU Timer as clocksource
180 config CLPS711X_TIMER
181 bool "Cirrus logic timer driver" if COMPILE_TEST
184 Enables support for the Cirrus Logic PS711 timer.
187 bool "Atlas7 timer driver" if COMPILE_TEST
190 Enables support for the Atlas7 timer.
193 bool "Mxs timer driver" if COMPILE_TEST
197 Enables support for the Mxs timer.
200 bool "Prima2 timer driver" if COMPILE_TEST
203 Enables support for the Prima2 timer.
206 bool "U300 timer driver" if COMPILE_TEST
210 Enables support for the U300 timer.
213 bool "NSpire timer driver" if COMPILE_TEST
216 Enables support for the Nspire timer.
218 config KEYSTONE_TIMER
219 bool "Keystone timer driver" if COMPILE_TEST
220 depends on ARM || ARM64
223 Enables support for the Keystone timer.
225 config INTEGRATOR_AP_TIMER
226 bool "Integrator-ap timer driver" if COMPILE_TEST
229 Enables support for the Integrator-ap timer.
231 config CLKSRC_DBX500_PRCMU_SCHED_CLOCK
232 bool "Clocksource PRCMU Timer sched_clock"
233 depends on (CLKSRC_DBX500_PRCMU && !CLKSRC_NOMADIK_MTU_SCHED_CLOCK)
236 Use the always on PRCMU Timer as sched_clock
239 bool "Clocksource for Energy Micro's EFM32 SoCs" if !ARCH_EFM32
240 depends on OF && ARM && (ARCH_EFM32 || COMPILE_TEST)
244 Support to use the timers of EFM32 SoCs as clock source and clock
247 config CLKSRC_LPC32XX
248 bool "Clocksource for LPC32XX" if COMPILE_TEST
254 Support for the LPC32XX clocksource.
256 config CLKSRC_PISTACHIO
257 bool "Clocksource for Pistachio SoC" if COMPILE_TEST
261 Enables the clocksource for the Pistachio SoC.
264 bool "Texas Instruments 32.768 Hz Clocksource" if COMPILE_TEST
265 depends on GENERIC_SCHED_CLOCK
266 select TIMER_OF if OF
268 This option enables support for Texas Instruments 32.768 Hz clocksource
269 available on many OMAP-like platforms.
272 bool "NPS400 clocksource driver" if COMPILE_TEST
273 depends on !PHYS_ADDR_T_64BIT
275 select TIMER_OF if OF
277 NPS400 clocksource support.
278 Got 64 bit counter with update rate up to 1000MHz.
279 This counter is accessed via couple of 32 bit memory mapped registers.
282 bool "Clocksource for STM32 SoCs" if !ARCH_STM32
283 depends on OF && ARM && (ARCH_STM32 || COMPILE_TEST)
288 bool "Clocksource for MPS2 SoCs" if COMPILE_TEST
289 depends on GENERIC_SCHED_CLOCK
294 bool "Support for 32-bit TIMERn counters in ARC Cores" if COMPILE_TEST
295 depends on GENERIC_SCHED_CLOCK
298 These are legacy 32-bit TIMER0 and TIMER1 counters found on all ARC cores
299 (ARC700 as well as ARC HS38).
300 TIMER0 serves as clockevent while TIMER1 provides clocksource
302 config ARC_TIMERS_64BIT
303 bool "Support for 64-bit counters in ARC HS38 cores" if COMPILE_TEST
304 depends on ARC_TIMERS
307 This enables 2 different 64-bit timers: RTC (for UP) and GFRC (for SMP)
308 RTC is implemented inside the core, while GFRC sits outside the core in
309 ARConnect IP block. Driver automatically picks one of them for clocksource
312 config ARM_ARCH_TIMER
314 select TIMER_OF if OF
315 select TIMER_ACPI if ACPI
317 config ARM_ARCH_TIMER_EVTSTREAM
318 bool "Enable ARM architected timer event stream generation by default"
319 default y if ARM_ARCH_TIMER
320 depends on ARM_ARCH_TIMER
322 This option enables support by default for event stream generation
323 based on the ARM architected timer. It is used for waking up CPUs
324 executing the wfe instruction at a frequency represented as a
325 power-of-2 divisor of the clock rate. The behaviour can also be
326 overridden on the command line using the
327 clocksource.arm_arch_timer.evtstream parameter.
328 The main use of the event stream is wfe-based timeouts of userspace
329 locking implementations. It might also be useful for imposing timeout
330 on wfe to safeguard against any programming errors in case an expected
331 event is not generated.
332 This must be disabled for hardware validation purposes to detect any
333 hardware anomalies of missing events.
335 config ARM_ARCH_TIMER_OOL_WORKAROUND
338 config FSL_ERRATUM_A008585
339 bool "Workaround for Freescale/NXP Erratum A-008585"
341 depends on ARM_ARCH_TIMER && ARM64
342 select ARM_ARCH_TIMER_OOL_WORKAROUND
344 This option enables a workaround for Freescale/NXP Erratum
345 A-008585 ("ARM generic timer may contain an erroneous
346 value"). The workaround will only be active if the
347 fsl,erratum-a008585 property is found in the timer node.
349 config HISILICON_ERRATUM_161010101
350 bool "Workaround for Hisilicon Erratum 161010101"
352 select ARM_ARCH_TIMER_OOL_WORKAROUND
353 depends on ARM_ARCH_TIMER && ARM64
355 This option enables a workaround for Hisilicon Erratum
356 161010101. The workaround will be active if the hisilicon,erratum-161010101
357 property is found in the timer node.
359 config ARM64_ERRATUM_858921
360 bool "Workaround for Cortex-A73 erratum 858921"
362 select ARM_ARCH_TIMER_OOL_WORKAROUND
363 depends on ARM_ARCH_TIMER && ARM64
365 This option enables a workaround applicable to Cortex-A73
366 (all versions), whose counter may return incorrect values.
367 The workaround will be dynamically enabled when an affected
370 config SUN50I_ERRATUM_UNKNOWN1
371 bool "Workaround for Allwinner A64 erratum UNKNOWN1"
373 depends on ARM_ARCH_TIMER && ARM64 && ARCH_SUNXI
374 select ARM_ARCH_TIMER_OOL_WORKAROUND
376 This option enables a workaround for instability in the timer on
377 the Allwinner A64 SoC. The workaround will only be active if the
378 allwinner,erratum-unknown1 property is found in the timer node.
380 config ARM_GLOBAL_TIMER
381 bool "Support for the ARM global timer" if COMPILE_TEST
382 select TIMER_OF if OF
385 This options enables support for the ARM global timer unit
387 config ARM_TIMER_SP804
388 bool "Support for Dual Timer SP804 module"
389 depends on GENERIC_SCHED_CLOCK && CLKDEV_LOOKUP
391 select TIMER_OF if OF
393 config CLKSRC_ARM_GLOBAL_TIMER_SCHED_CLOCK
395 depends on ARM_GLOBAL_TIMER
398 Use ARM global timer clock source as sched_clock
400 config ARMV7M_SYSTICK
401 bool "Support for the ARMv7M system time" if COMPILE_TEST
402 select TIMER_OF if OF
405 This options enables support for the ARMv7M system timer unit
408 select TIMER_OF if OF
409 def_bool SOC_AT91SAM9 || SOC_SAMA5
412 bool "Atmel ST timer support" if COMPILE_TEST
417 Support for the Atmel ST timer.
419 config CLKSRC_EXYNOS_MCT
420 bool "Exynos multi core timer driver" if COMPILE_TEST
421 depends on ARM || ARM64
423 Support for Multi Core Timer controller on Exynos SoCs.
425 config CLKSRC_SAMSUNG_PWM
426 bool "PWM timer driver for Samsung S3C, S5P" if COMPILE_TEST
429 This is a new clocksource driver for the PWM timer found in
430 Samsung S3C, S5P and Exynos SoCs, replacing an earlier driver
431 for all devicetree enabled platforms. This driver will be
432 needed only on systems that do not have the Exynos MCT available.
435 bool "Freescale FlexTimer Module driver" if COMPILE_TEST
439 Support for Freescale FlexTimer Module (FTM) timer.
445 Support for Period Interrupt Timer on Freescale Vybrid Family SoCs.
447 config OXNAS_RPS_TIMER
448 bool "Oxford Semiconductor OXNAS RPS Timers driver" if COMPILE_TEST
452 This enables support for the Oxford Semiconductor OXNAS RPS timers.
454 config SYS_SUPPORTS_SH_CMT
458 bool "Mediatek timer driver" if COMPILE_TEST
463 Support for Mediatek timer driver.
466 bool "Spreadtrum timer driver" if EXPERT
468 depends on (ARCH_SPRD || COMPILE_TEST)
472 Enables support for the Spreadtrum timer driver.
474 config SYS_SUPPORTS_SH_MTU2
477 config SYS_SUPPORTS_SH_TMU
480 config SYS_SUPPORTS_EM_STI
483 config CLKSRC_JCORE_PIT
484 bool "J-Core PIT timer driver" if COMPILE_TEST
489 This enables build of clocksource and clockevent driver for
490 the integrated PIT in the J-Core synthesizable, open source SoC.
493 bool "Renesas CMT timer driver" if COMPILE_TEST
495 default SYS_SUPPORTS_SH_CMT
497 This enables build of a clocksource and clockevent driver for
498 the Compare Match Timer (CMT) hardware available in 16/32/48-bit
499 variants on a wide range of Mobile and Automotive SoCs from Renesas.
502 bool "Renesas MTU2 timer driver" if COMPILE_TEST
504 default SYS_SUPPORTS_SH_MTU2
506 This enables build of a clockevent driver for the Multi-Function
507 Timer Pulse Unit 2 (MTU2) hardware available on SoCs from Renesas.
508 This hardware comes with 16 bit-timer registers.
511 bool "Renesas OSTM timer driver" if COMPILE_TEST
514 Enables the support for the Renesas OSTM.
517 bool "Renesas TMU timer driver" if COMPILE_TEST
519 default SYS_SUPPORTS_SH_TMU
521 This enables build of a clocksource and clockevent driver for
522 the 32-bit Timer Unit (TMU) hardware available on a wide range
526 bool "Renesas STI timer driver" if COMPILE_TEST
528 default SYS_SUPPORTS_EM_STI
530 This enables build of a clocksource and clockevent driver for
531 the 48-bit System Timer (STI) hardware available on a SoCs
532 such as EMEV2 from former NEC Electronics.
535 bool "Qualcomm MSM timer" if COMPILE_TEST
539 This enables the clocksource and the per CPU clockevent driver for the
542 config CLKSRC_VERSATILE
543 bool "ARM Versatile (Express) reference platforms clock source" if COMPILE_TEST
544 depends on GENERIC_SCHED_CLOCK && !ARCH_USES_GETTIMEOFFSET
546 default y if MFD_VEXPRESS_SYSREG
548 This option enables clock source based on free running
549 counter available in the "System Registers" block of
550 ARM Versatile, RealView and Versatile Express reference
553 config CLKSRC_MIPS_GIC
558 config CLKSRC_TANGO_XTAL
559 bool "Clocksource for Tango SoC" if COMPILE_TEST
564 This enables the clocksource for Tango SoC
567 bool "Clocksource for PXA or SA-11x0 platform" if COMPILE_TEST
571 This enables OST0 support available on PXA and SA-11x0
575 bool "Clockevent timer for the H8300 platform" if COMPILE_TEST
578 This enables the 8 bits timer for the H8300 platform.
581 bool "Clockevent timer for the H83069 platform" if COMPILE_TEST
584 This enables the 16 bits timer for the H8300 platform with the
588 bool "Clocksource for the H8300 platform" if COMPILE_TEST
591 This enables the clocksource for the H8300 platform with the
594 config CLKSRC_IMX_GPT
595 bool "Clocksource using i.MX GPT" if COMPILE_TEST
596 depends on ARM && CLKDEV_LOOKUP
599 config CLKSRC_IMX_TPM
600 bool "Clocksource using i.MX TPM" if COMPILE_TEST
601 depends on ARM && CLKDEV_LOOKUP
604 Enable this option to use IMX Timer/PWM Module (TPM) timer as
608 bool "Low power clocksource found in the LPC" if COMPILE_TEST
609 select TIMER_OF if OF
613 Enable this option to use the Low Power controller timer
616 config ATCPIT100_TIMER
617 bool "ATCPIT100 timer driver"
618 depends on NDS32 || COMPILE_TEST
623 This option enables support for the Andestech ATCPIT100 timers.
626 bool "Timer for the RISC-V platform"
632 This enables the per-hart timer built into all RISC-V systems, which
633 is accessed via both the SBI and the rdcycle instruction. This is
634 required for all RISC-V systems.