13d0407baSopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only
23d0407baSopenharmony_cimenu "Clock Source drivers"
33d0407baSopenharmony_ci	depends on GENERIC_CLOCKEVENTS
43d0407baSopenharmony_ci
53d0407baSopenharmony_ciconfig TIMER_OF
63d0407baSopenharmony_ci	bool
73d0407baSopenharmony_ci	select TIMER_PROBE
83d0407baSopenharmony_ci
93d0407baSopenharmony_ciconfig TIMER_ACPI
103d0407baSopenharmony_ci	bool
113d0407baSopenharmony_ci	select TIMER_PROBE
123d0407baSopenharmony_ci
133d0407baSopenharmony_ciconfig TIMER_PROBE
143d0407baSopenharmony_ci	bool
153d0407baSopenharmony_ci
163d0407baSopenharmony_ciconfig CLKSRC_I8253
173d0407baSopenharmony_ci	bool
183d0407baSopenharmony_ci
193d0407baSopenharmony_ciconfig CLKEVT_I8253
203d0407baSopenharmony_ci	bool
213d0407baSopenharmony_ci
223d0407baSopenharmony_ciconfig I8253_LOCK
233d0407baSopenharmony_ci	bool
243d0407baSopenharmony_ci
253d0407baSopenharmony_ciconfig OMAP_DM_TIMER
263d0407baSopenharmony_ci	bool
273d0407baSopenharmony_ci	select TIMER_OF
283d0407baSopenharmony_ci
293d0407baSopenharmony_ciconfig CLKBLD_I8253
303d0407baSopenharmony_ci	def_bool y if CLKSRC_I8253 || CLKEVT_I8253 || I8253_LOCK
313d0407baSopenharmony_ci
323d0407baSopenharmony_ciconfig CLKSRC_MMIO
333d0407baSopenharmony_ci	bool
343d0407baSopenharmony_ci
353d0407baSopenharmony_ciconfig BCM2835_TIMER
363d0407baSopenharmony_ci	bool "BCM2835 timer driver" if COMPILE_TEST
373d0407baSopenharmony_ci	select CLKSRC_MMIO
383d0407baSopenharmony_ci	help
393d0407baSopenharmony_ci	  Enables the support for the BCM2835 timer driver.
403d0407baSopenharmony_ci
413d0407baSopenharmony_ciconfig BCM_KONA_TIMER
423d0407baSopenharmony_ci	bool "BCM mobile timer driver" if COMPILE_TEST
433d0407baSopenharmony_ci	select CLKSRC_MMIO
443d0407baSopenharmony_ci	help
453d0407baSopenharmony_ci	  Enables the support for the BCM Kona mobile timer driver.
463d0407baSopenharmony_ci
473d0407baSopenharmony_ciconfig DAVINCI_TIMER
483d0407baSopenharmony_ci	bool "Texas Instruments DaVinci timer driver" if COMPILE_TEST
493d0407baSopenharmony_ci	help
503d0407baSopenharmony_ci	  Enables the support for the TI DaVinci timer driver.
513d0407baSopenharmony_ci
523d0407baSopenharmony_ciconfig DIGICOLOR_TIMER
533d0407baSopenharmony_ci	bool "Digicolor timer driver" if COMPILE_TEST
543d0407baSopenharmony_ci	select CLKSRC_MMIO
553d0407baSopenharmony_ci	depends on HAS_IOMEM
563d0407baSopenharmony_ci	help
573d0407baSopenharmony_ci	  Enables the support for the digicolor timer driver.
583d0407baSopenharmony_ci
593d0407baSopenharmony_ciconfig DW_APB_TIMER
603d0407baSopenharmony_ci	bool "DW APB timer driver" if COMPILE_TEST
613d0407baSopenharmony_ci	help
623d0407baSopenharmony_ci	  Enables the support for the dw_apb timer.
633d0407baSopenharmony_ci
643d0407baSopenharmony_ciconfig DW_APB_TIMER_OF
653d0407baSopenharmony_ci	bool
663d0407baSopenharmony_ci	select DW_APB_TIMER
673d0407baSopenharmony_ci	select TIMER_OF
683d0407baSopenharmony_ci
693d0407baSopenharmony_ciconfig FTTMR010_TIMER
703d0407baSopenharmony_ci	bool "Faraday Technology timer driver" if COMPILE_TEST
713d0407baSopenharmony_ci	depends on HAS_IOMEM
723d0407baSopenharmony_ci	select CLKSRC_MMIO
733d0407baSopenharmony_ci	select TIMER_OF
743d0407baSopenharmony_ci	select MFD_SYSCON
753d0407baSopenharmony_ci	help
763d0407baSopenharmony_ci	  Enables support for the Faraday Technology timer block
773d0407baSopenharmony_ci	  FTTMR010.
783d0407baSopenharmony_ci
793d0407baSopenharmony_ciconfig IXP4XX_TIMER
803d0407baSopenharmony_ci	bool "Intel XScale IXP4xx timer driver" if COMPILE_TEST
813d0407baSopenharmony_ci	depends on HAS_IOMEM
823d0407baSopenharmony_ci	select CLKSRC_MMIO
833d0407baSopenharmony_ci	select TIMER_OF if OF
843d0407baSopenharmony_ci	help
853d0407baSopenharmony_ci	  Enables support for the Intel XScale IXP4xx SoC timer.
863d0407baSopenharmony_ci
873d0407baSopenharmony_ciconfig ROCKCHIP_TIMER
883d0407baSopenharmony_ci	tristate "Rockchip timer driver"
893d0407baSopenharmony_ci	default ARCH_ROCKCHIP
903d0407baSopenharmony_ci	depends on ARCH_ROCKCHIP || COMPILE_TEST
913d0407baSopenharmony_ci	depends on ARM || ARM64
923d0407baSopenharmony_ci	select TIMER_OF
933d0407baSopenharmony_ci	select CLKSRC_MMIO
943d0407baSopenharmony_ci	help
953d0407baSopenharmony_ci	  Enables the support for the Rockchip timer driver.
963d0407baSopenharmony_ci
973d0407baSopenharmony_ciconfig ARMADA_370_XP_TIMER
983d0407baSopenharmony_ci	bool "Armada 370 and XP timer driver" if COMPILE_TEST
993d0407baSopenharmony_ci	depends on ARM
1003d0407baSopenharmony_ci	select TIMER_OF
1013d0407baSopenharmony_ci	select CLKSRC_MMIO
1023d0407baSopenharmony_ci	help
1033d0407baSopenharmony_ci	  Enables the support for the Armada 370 and XP timer driver.
1043d0407baSopenharmony_ci
1053d0407baSopenharmony_ciconfig MESON6_TIMER
1063d0407baSopenharmony_ci	bool "Meson6 timer driver" if COMPILE_TEST
1073d0407baSopenharmony_ci	select CLKSRC_MMIO
1083d0407baSopenharmony_ci	help
1093d0407baSopenharmony_ci	  Enables the support for the Meson6 timer driver.
1103d0407baSopenharmony_ci
1113d0407baSopenharmony_ciconfig ORION_TIMER
1123d0407baSopenharmony_ci	bool "Orion timer driver" if COMPILE_TEST
1133d0407baSopenharmony_ci	depends on ARM
1143d0407baSopenharmony_ci	select TIMER_OF
1153d0407baSopenharmony_ci	select CLKSRC_MMIO
1163d0407baSopenharmony_ci	help
1173d0407baSopenharmony_ci	  Enables the support for the Orion timer driver
1183d0407baSopenharmony_ci
1193d0407baSopenharmony_ciconfig OWL_TIMER
1203d0407baSopenharmony_ci	bool "Owl timer driver" if COMPILE_TEST
1213d0407baSopenharmony_ci	select CLKSRC_MMIO
1223d0407baSopenharmony_ci	help
1233d0407baSopenharmony_ci	  Enables the support for the Actions Semi Owl timer driver.
1243d0407baSopenharmony_ci
1253d0407baSopenharmony_ciconfig RDA_TIMER
1263d0407baSopenharmony_ci	bool "RDA timer driver" if COMPILE_TEST
1273d0407baSopenharmony_ci	select CLKSRC_MMIO
1283d0407baSopenharmony_ci	select TIMER_OF
1293d0407baSopenharmony_ci	help
1303d0407baSopenharmony_ci	  Enables the support for the RDA Micro timer driver.
1313d0407baSopenharmony_ci
1323d0407baSopenharmony_ciconfig SUN4I_TIMER
1333d0407baSopenharmony_ci	bool "Sun4i timer driver" if COMPILE_TEST
1343d0407baSopenharmony_ci	depends on HAS_IOMEM
1353d0407baSopenharmony_ci	select CLKSRC_MMIO
1363d0407baSopenharmony_ci	select TIMER_OF
1373d0407baSopenharmony_ci	help
1383d0407baSopenharmony_ci	  Enables support for the Sun4i timer.
1393d0407baSopenharmony_ci
1403d0407baSopenharmony_ciconfig SUN5I_HSTIMER
1413d0407baSopenharmony_ci	bool "Sun5i timer driver" if COMPILE_TEST
1423d0407baSopenharmony_ci	select CLKSRC_MMIO
1433d0407baSopenharmony_ci	depends on COMMON_CLK
1443d0407baSopenharmony_ci	help
1453d0407baSopenharmony_ci	  Enables support the Sun5i timer.
1463d0407baSopenharmony_ci
1473d0407baSopenharmony_ciconfig TEGRA_TIMER
1483d0407baSopenharmony_ci	bool "Tegra timer driver" if COMPILE_TEST
1493d0407baSopenharmony_ci	select CLKSRC_MMIO
1503d0407baSopenharmony_ci	select TIMER_OF
1513d0407baSopenharmony_ci	depends on ARCH_TEGRA || COMPILE_TEST
1523d0407baSopenharmony_ci	help
1533d0407baSopenharmony_ci	  Enables support for the Tegra driver.
1543d0407baSopenharmony_ci
1553d0407baSopenharmony_ciconfig VT8500_TIMER
1563d0407baSopenharmony_ci	bool "VT8500 timer driver" if COMPILE_TEST
1573d0407baSopenharmony_ci	depends on HAS_IOMEM
1583d0407baSopenharmony_ci	help
1593d0407baSopenharmony_ci	  Enables support for the VT8500 driver.
1603d0407baSopenharmony_ci
1613d0407baSopenharmony_ciconfig NPCM7XX_TIMER
1623d0407baSopenharmony_ci	bool "NPCM7xx timer driver" if COMPILE_TEST
1633d0407baSopenharmony_ci	depends on HAS_IOMEM
1643d0407baSopenharmony_ci	select TIMER_OF
1653d0407baSopenharmony_ci	select CLKSRC_MMIO
1663d0407baSopenharmony_ci	help
1673d0407baSopenharmony_ci	  Enable 24-bit TIMER0 and TIMER1 counters in the NPCM7xx architecture,
1683d0407baSopenharmony_ci	  where TIMER0 serves as clockevent and TIMER1 serves as clocksource.
1693d0407baSopenharmony_ci
1703d0407baSopenharmony_ciconfig CADENCE_TTC_TIMER
1713d0407baSopenharmony_ci	bool "Cadence TTC timer driver" if COMPILE_TEST
1723d0407baSopenharmony_ci	depends on COMMON_CLK
1733d0407baSopenharmony_ci	help
1743d0407baSopenharmony_ci	  Enables support for the Cadence TTC driver.
1753d0407baSopenharmony_ci
1763d0407baSopenharmony_ciconfig ASM9260_TIMER
1773d0407baSopenharmony_ci	bool "ASM9260 timer driver" if COMPILE_TEST
1783d0407baSopenharmony_ci	select CLKSRC_MMIO
1793d0407baSopenharmony_ci	select TIMER_OF
1803d0407baSopenharmony_ci	help
1813d0407baSopenharmony_ci	  Enables support for the ASM9260 timer.
1823d0407baSopenharmony_ci
1833d0407baSopenharmony_ciconfig CLKSRC_NOMADIK_MTU
1843d0407baSopenharmony_ci	bool "Nomakdik clocksource driver" if COMPILE_TEST
1853d0407baSopenharmony_ci	depends on ARM
1863d0407baSopenharmony_ci	select CLKSRC_MMIO
1873d0407baSopenharmony_ci	help
1883d0407baSopenharmony_ci	  Support for Multi Timer Unit. MTU provides access
1893d0407baSopenharmony_ci	  to multiple interrupt generating programmable
1903d0407baSopenharmony_ci	  32-bit free running decrementing counters.
1913d0407baSopenharmony_ci
1923d0407baSopenharmony_ciconfig CLKSRC_DBX500_PRCMU
1933d0407baSopenharmony_ci	bool "Clocksource PRCMU Timer" if COMPILE_TEST
1943d0407baSopenharmony_ci	depends on HAS_IOMEM
1953d0407baSopenharmony_ci	help
1963d0407baSopenharmony_ci	  Use the always on PRCMU Timer as clocksource.
1973d0407baSopenharmony_ci
1983d0407baSopenharmony_ciconfig CLPS711X_TIMER
1993d0407baSopenharmony_ci	bool "Cirrus Logic timer driver" if COMPILE_TEST
2003d0407baSopenharmony_ci	select CLKSRC_MMIO
2013d0407baSopenharmony_ci	help
2023d0407baSopenharmony_ci	  Enables support for the Cirrus Logic PS711 timer.
2033d0407baSopenharmony_ci
2043d0407baSopenharmony_ciconfig ATLAS7_TIMER
2053d0407baSopenharmony_ci	bool "Atlas7 timer driver" if COMPILE_TEST
2063d0407baSopenharmony_ci	select CLKSRC_MMIO
2073d0407baSopenharmony_ci	help
2083d0407baSopenharmony_ci	  Enables support for the Atlas7 timer.
2093d0407baSopenharmony_ci
2103d0407baSopenharmony_ciconfig MXS_TIMER
2113d0407baSopenharmony_ci	bool "MXS timer driver" if COMPILE_TEST
2123d0407baSopenharmony_ci	select CLKSRC_MMIO
2133d0407baSopenharmony_ci	select STMP_DEVICE
2143d0407baSopenharmony_ci	help
2153d0407baSopenharmony_ci	  Enables support for the MXS timer.
2163d0407baSopenharmony_ci
2173d0407baSopenharmony_ciconfig PRIMA2_TIMER
2183d0407baSopenharmony_ci	bool "Prima2 timer driver" if COMPILE_TEST
2193d0407baSopenharmony_ci	select CLKSRC_MMIO
2203d0407baSopenharmony_ci	help
2213d0407baSopenharmony_ci	  Enables support for the Prima2 timer.
2223d0407baSopenharmony_ci
2233d0407baSopenharmony_ciconfig U300_TIMER
2243d0407baSopenharmony_ci	bool "U300 timer driver" if COMPILE_TEST
2253d0407baSopenharmony_ci	depends on ARM
2263d0407baSopenharmony_ci	select CLKSRC_MMIO
2273d0407baSopenharmony_ci	help
2283d0407baSopenharmony_ci	  Enables support for the U300 timer.
2293d0407baSopenharmony_ci
2303d0407baSopenharmony_ciconfig NSPIRE_TIMER
2313d0407baSopenharmony_ci	bool "NSpire timer driver" if COMPILE_TEST
2323d0407baSopenharmony_ci	select CLKSRC_MMIO
2333d0407baSopenharmony_ci	help
2343d0407baSopenharmony_ci	  Enables support for the Nspire timer.
2353d0407baSopenharmony_ci
2363d0407baSopenharmony_ciconfig KEYSTONE_TIMER
2373d0407baSopenharmony_ci	bool "Keystone timer driver" if COMPILE_TEST
2383d0407baSopenharmony_ci	depends on ARM || ARM64
2393d0407baSopenharmony_ci	select CLKSRC_MMIO
2403d0407baSopenharmony_ci	help
2413d0407baSopenharmony_ci	  Enables support for the Keystone timer.
2423d0407baSopenharmony_ci
2433d0407baSopenharmony_ciconfig INTEGRATOR_AP_TIMER
2443d0407baSopenharmony_ci	bool "Integrator-AP timer driver" if COMPILE_TEST
2453d0407baSopenharmony_ci	select CLKSRC_MMIO
2463d0407baSopenharmony_ci	help
2473d0407baSopenharmony_ci	  Enables support for the Integrator-AP timer.
2483d0407baSopenharmony_ci
2493d0407baSopenharmony_ciconfig CLKSRC_EFM32
2503d0407baSopenharmony_ci	bool "Clocksource for Energy Micro's EFM32 SoCs" if !ARCH_EFM32
2513d0407baSopenharmony_ci	depends on OF && ARM && (ARCH_EFM32 || COMPILE_TEST)
2523d0407baSopenharmony_ci	select CLKSRC_MMIO
2533d0407baSopenharmony_ci	default ARCH_EFM32
2543d0407baSopenharmony_ci	help
2553d0407baSopenharmony_ci	  Support to use the timers of EFM32 SoCs as clock source and clock
2563d0407baSopenharmony_ci	  event device.
2573d0407baSopenharmony_ci
2583d0407baSopenharmony_ciconfig CLKSRC_LPC32XX
2593d0407baSopenharmony_ci	bool "Clocksource for LPC32XX" if COMPILE_TEST
2603d0407baSopenharmony_ci	depends on HAS_IOMEM
2613d0407baSopenharmony_ci	depends on ARM
2623d0407baSopenharmony_ci	select CLKSRC_MMIO
2633d0407baSopenharmony_ci	select TIMER_OF
2643d0407baSopenharmony_ci	help
2653d0407baSopenharmony_ci	  Support for the LPC32XX clocksource.
2663d0407baSopenharmony_ci
2673d0407baSopenharmony_ciconfig CLKSRC_PISTACHIO
2683d0407baSopenharmony_ci	bool "Clocksource for Pistachio SoC" if COMPILE_TEST
2693d0407baSopenharmony_ci	depends on HAS_IOMEM
2703d0407baSopenharmony_ci	select TIMER_OF
2713d0407baSopenharmony_ci	help
2723d0407baSopenharmony_ci	  Enables the clocksource for the Pistachio SoC.
2733d0407baSopenharmony_ci
2743d0407baSopenharmony_ciconfig CLKSRC_TI_32K
2753d0407baSopenharmony_ci	bool "Texas Instruments 32.768 Hz Clocksource" if COMPILE_TEST
2763d0407baSopenharmony_ci	depends on GENERIC_SCHED_CLOCK
2773d0407baSopenharmony_ci	select TIMER_OF if OF
2783d0407baSopenharmony_ci	help
2793d0407baSopenharmony_ci	  This option enables support for Texas Instruments 32.768 Hz clocksource
2803d0407baSopenharmony_ci	  available on many OMAP-like platforms.
2813d0407baSopenharmony_ci
2823d0407baSopenharmony_ciconfig CLKSRC_NPS
2833d0407baSopenharmony_ci	bool "NPS400 clocksource driver" if COMPILE_TEST
2843d0407baSopenharmony_ci	depends on !PHYS_ADDR_T_64BIT
2853d0407baSopenharmony_ci	select CLKSRC_MMIO
2863d0407baSopenharmony_ci	select TIMER_OF if OF
2873d0407baSopenharmony_ci	help
2883d0407baSopenharmony_ci	  NPS400 clocksource support.
2893d0407baSopenharmony_ci	  It has a 64-bit counter with update rate up to 1000MHz.
2903d0407baSopenharmony_ci	  This counter is accessed via couple of 32-bit memory-mapped registers.
2913d0407baSopenharmony_ci
2923d0407baSopenharmony_ciconfig CLKSRC_STM32
2933d0407baSopenharmony_ci	bool "Clocksource for STM32 SoCs" if !ARCH_STM32
2943d0407baSopenharmony_ci	depends on OF && ARM && (ARCH_STM32 || COMPILE_TEST)
2953d0407baSopenharmony_ci	select CLKSRC_MMIO
2963d0407baSopenharmony_ci	select TIMER_OF
2973d0407baSopenharmony_ci
2983d0407baSopenharmony_ciconfig CLKSRC_STM32_LP
2993d0407baSopenharmony_ci	bool "Low power clocksource for STM32 SoCs"
3003d0407baSopenharmony_ci	depends on MFD_STM32_LPTIMER || COMPILE_TEST
3013d0407baSopenharmony_ci
3023d0407baSopenharmony_ciconfig CLKSRC_MPS2
3033d0407baSopenharmony_ci	bool "Clocksource for MPS2 SoCs" if COMPILE_TEST
3043d0407baSopenharmony_ci	depends on GENERIC_SCHED_CLOCK
3053d0407baSopenharmony_ci	select CLKSRC_MMIO
3063d0407baSopenharmony_ci	select TIMER_OF
3073d0407baSopenharmony_ci
3083d0407baSopenharmony_ciconfig ARC_TIMERS
3093d0407baSopenharmony_ci	bool "Support for 32-bit TIMERn counters in ARC Cores" if COMPILE_TEST
3103d0407baSopenharmony_ci	depends on GENERIC_SCHED_CLOCK
3113d0407baSopenharmony_ci	select TIMER_OF
3123d0407baSopenharmony_ci	help
3133d0407baSopenharmony_ci	  These are legacy 32-bit TIMER0 and TIMER1 counters found on all ARC cores
3143d0407baSopenharmony_ci	  (ARC700 as well as ARC HS38).
3153d0407baSopenharmony_ci	  TIMER0 serves as clockevent while TIMER1 provides clocksource.
3163d0407baSopenharmony_ci
3173d0407baSopenharmony_ciconfig ARC_TIMERS_64BIT
3183d0407baSopenharmony_ci	bool "Support for 64-bit counters in ARC HS38 cores" if COMPILE_TEST
3193d0407baSopenharmony_ci	depends on ARC_TIMERS
3203d0407baSopenharmony_ci	select TIMER_OF
3213d0407baSopenharmony_ci	help
3223d0407baSopenharmony_ci	  This enables 2 different 64-bit timers: RTC (for UP) and GFRC (for SMP).
3233d0407baSopenharmony_ci	  RTC is implemented inside the core, while GFRC sits outside the core in
3243d0407baSopenharmony_ci	  ARConnect IP block. Driver automatically picks one of them for clocksource
3253d0407baSopenharmony_ci	  as appropriate.
3263d0407baSopenharmony_ci
3273d0407baSopenharmony_ciconfig ARM_ARCH_TIMER
3283d0407baSopenharmony_ci	bool
3293d0407baSopenharmony_ci	select TIMER_OF if OF
3303d0407baSopenharmony_ci	select TIMER_ACPI if ACPI
3313d0407baSopenharmony_ci
3323d0407baSopenharmony_ciconfig ARM_ARCH_TIMER_EVTSTREAM
3333d0407baSopenharmony_ci	bool "Enable ARM architected timer event stream generation by default"
3343d0407baSopenharmony_ci	default y if ARM_ARCH_TIMER
3353d0407baSopenharmony_ci	depends on ARM_ARCH_TIMER
3363d0407baSopenharmony_ci	help
3373d0407baSopenharmony_ci	  This option enables support by default for event stream generation
3383d0407baSopenharmony_ci	  based on the ARM architected timer. It is used for waking up CPUs
3393d0407baSopenharmony_ci	  executing the wfe instruction at a frequency represented as a
3403d0407baSopenharmony_ci	  power-of-2 divisor of the clock rate. The behaviour can also be
3413d0407baSopenharmony_ci	  overridden on the command line using the
3423d0407baSopenharmony_ci	  clocksource.arm_arch_timer.evtstream parameter.
3433d0407baSopenharmony_ci	  The main use of the event stream is wfe-based timeouts of userspace
3443d0407baSopenharmony_ci	  locking implementations. It might also be useful for imposing timeout
3453d0407baSopenharmony_ci	  on wfe to safeguard against any programming errors in case an expected
3463d0407baSopenharmony_ci	  event is not generated.
3473d0407baSopenharmony_ci	  This must be disabled for hardware validation purposes to detect any
3483d0407baSopenharmony_ci	  hardware anomalies of missing events.
3493d0407baSopenharmony_ci
3503d0407baSopenharmony_ciconfig ARM_ARCH_TIMER_OOL_WORKAROUND
3513d0407baSopenharmony_ci	bool
3523d0407baSopenharmony_ci
3533d0407baSopenharmony_ciconfig FSL_ERRATUM_A008585
3543d0407baSopenharmony_ci	bool "Workaround for Freescale/NXP Erratum A-008585"
3553d0407baSopenharmony_ci	default y
3563d0407baSopenharmony_ci	depends on ARM_ARCH_TIMER && ARM64
3573d0407baSopenharmony_ci	select ARM_ARCH_TIMER_OOL_WORKAROUND
3583d0407baSopenharmony_ci	help
3593d0407baSopenharmony_ci	  This option enables a workaround for Freescale/NXP Erratum
3603d0407baSopenharmony_ci	  A-008585 ("ARM generic timer may contain an erroneous
3613d0407baSopenharmony_ci	  value").  The workaround will only be active if the
3623d0407baSopenharmony_ci	  fsl,erratum-a008585 property is found in the timer node.
3633d0407baSopenharmony_ci
3643d0407baSopenharmony_ciconfig HISILICON_ERRATUM_161010101
3653d0407baSopenharmony_ci	bool "Workaround for Hisilicon Erratum 161010101"
3663d0407baSopenharmony_ci	default y
3673d0407baSopenharmony_ci	select ARM_ARCH_TIMER_OOL_WORKAROUND
3683d0407baSopenharmony_ci	depends on ARM_ARCH_TIMER && ARM64
3693d0407baSopenharmony_ci	help
3703d0407baSopenharmony_ci	  This option enables a workaround for Hisilicon Erratum
3713d0407baSopenharmony_ci	  161010101. The workaround will be active if the hisilicon,erratum-161010101
3723d0407baSopenharmony_ci	  property is found in the timer node.
3733d0407baSopenharmony_ci
3743d0407baSopenharmony_ciconfig ARM64_ERRATUM_858921
3753d0407baSopenharmony_ci	bool "Workaround for Cortex-A73 erratum 858921"
3763d0407baSopenharmony_ci	default y
3773d0407baSopenharmony_ci	select ARM_ARCH_TIMER_OOL_WORKAROUND
3783d0407baSopenharmony_ci	depends on ARM_ARCH_TIMER && ARM64
3793d0407baSopenharmony_ci	help
3803d0407baSopenharmony_ci	  This option enables a workaround applicable to Cortex-A73
3813d0407baSopenharmony_ci	  (all versions), whose counter may return incorrect values.
3823d0407baSopenharmony_ci	  The workaround will be dynamically enabled when an affected
3833d0407baSopenharmony_ci	  core is detected.
3843d0407baSopenharmony_ci
3853d0407baSopenharmony_ciconfig SUN50I_ERRATUM_UNKNOWN1
3863d0407baSopenharmony_ci	bool "Workaround for Allwinner A64 erratum UNKNOWN1"
3873d0407baSopenharmony_ci	default y
3883d0407baSopenharmony_ci	depends on ARM_ARCH_TIMER && ARM64 && ARCH_SUNXI
3893d0407baSopenharmony_ci	select ARM_ARCH_TIMER_OOL_WORKAROUND
3903d0407baSopenharmony_ci	help
3913d0407baSopenharmony_ci	  This option enables a workaround for instability in the timer on
3923d0407baSopenharmony_ci	  the Allwinner A64 SoC. The workaround will only be active if the
3933d0407baSopenharmony_ci	  allwinner,erratum-unknown1 property is found in the timer node.
3943d0407baSopenharmony_ci
3953d0407baSopenharmony_ciconfig ARM_GLOBAL_TIMER
3963d0407baSopenharmony_ci	bool "Support for the ARM global timer" if COMPILE_TEST
3973d0407baSopenharmony_ci	select TIMER_OF if OF
3983d0407baSopenharmony_ci	depends on ARM
3993d0407baSopenharmony_ci	help
4003d0407baSopenharmony_ci	  This option enables support for the ARM global timer unit.
4013d0407baSopenharmony_ci
4023d0407baSopenharmony_ciconfig ARM_TIMER_SP804
4033d0407baSopenharmony_ci	bool "Support for Dual Timer SP804 module" if COMPILE_TEST
4043d0407baSopenharmony_ci	depends on GENERIC_SCHED_CLOCK && CLKDEV_LOOKUP
4053d0407baSopenharmony_ci	select CLKSRC_MMIO
4063d0407baSopenharmony_ci	select TIMER_OF if OF
4073d0407baSopenharmony_ci
4083d0407baSopenharmony_ciconfig CLKSRC_ARM_GLOBAL_TIMER_SCHED_CLOCK
4093d0407baSopenharmony_ci	bool
4103d0407baSopenharmony_ci	depends on ARM_GLOBAL_TIMER
4113d0407baSopenharmony_ci	default y
4123d0407baSopenharmony_ci	help
4133d0407baSopenharmony_ci	  Use ARM global timer clock source as sched_clock.
4143d0407baSopenharmony_ci
4153d0407baSopenharmony_ciconfig ARMV7M_SYSTICK
4163d0407baSopenharmony_ci	bool "Support for the ARMv7M system time" if COMPILE_TEST
4173d0407baSopenharmony_ci	select TIMER_OF if OF
4183d0407baSopenharmony_ci	select CLKSRC_MMIO
4193d0407baSopenharmony_ci	help
4203d0407baSopenharmony_ci	  This option enables support for the ARMv7M system timer unit.
4213d0407baSopenharmony_ci
4223d0407baSopenharmony_ciconfig ATMEL_PIT
4233d0407baSopenharmony_ci	bool "Atmel PIT support" if COMPILE_TEST
4243d0407baSopenharmony_ci	depends on HAS_IOMEM
4253d0407baSopenharmony_ci	select TIMER_OF if OF
4263d0407baSopenharmony_ci	help
4273d0407baSopenharmony_ci	  Support for the Periodic Interval Timer found on Atmel SoCs.
4283d0407baSopenharmony_ci
4293d0407baSopenharmony_ciconfig ATMEL_ST
4303d0407baSopenharmony_ci	bool "Atmel ST timer support" if COMPILE_TEST
4313d0407baSopenharmony_ci	depends on HAS_IOMEM
4323d0407baSopenharmony_ci	select TIMER_OF
4333d0407baSopenharmony_ci	select MFD_SYSCON
4343d0407baSopenharmony_ci	help
4353d0407baSopenharmony_ci	  Support for the Atmel ST timer.
4363d0407baSopenharmony_ci
4373d0407baSopenharmony_ciconfig ATMEL_TCB_CLKSRC
4383d0407baSopenharmony_ci	bool "Atmel TC Block timer driver" if COMPILE_TEST
4393d0407baSopenharmony_ci	depends on ARM && HAS_IOMEM
4403d0407baSopenharmony_ci	select TIMER_OF if OF
4413d0407baSopenharmony_ci	help
4423d0407baSopenharmony_ci	  Support for Timer Counter Blocks on Atmel SoCs.
4433d0407baSopenharmony_ci
4443d0407baSopenharmony_ciconfig CLKSRC_EXYNOS_MCT
4453d0407baSopenharmony_ci	bool "Exynos multi core timer driver" if COMPILE_TEST
4463d0407baSopenharmony_ci	depends on ARM || ARM64
4473d0407baSopenharmony_ci	help
4483d0407baSopenharmony_ci	  Support for Multi Core Timer controller on Exynos SoCs.
4493d0407baSopenharmony_ci
4503d0407baSopenharmony_ciconfig CLKSRC_SAMSUNG_PWM
4513d0407baSopenharmony_ci	bool "PWM timer driver for Samsung S3C, S5P" if COMPILE_TEST
4523d0407baSopenharmony_ci	depends on HAS_IOMEM
4533d0407baSopenharmony_ci	help
4543d0407baSopenharmony_ci	  This is a new clocksource driver for the PWM timer found in
4553d0407baSopenharmony_ci	  Samsung S3C, S5P and Exynos SoCs, replacing an earlier driver
4563d0407baSopenharmony_ci	  for all devicetree enabled platforms. This driver will be
4573d0407baSopenharmony_ci	  needed only on systems that do not have the Exynos MCT available.
4583d0407baSopenharmony_ci
4593d0407baSopenharmony_ciconfig FSL_FTM_TIMER
4603d0407baSopenharmony_ci	bool "Freescale FlexTimer Module driver" if COMPILE_TEST
4613d0407baSopenharmony_ci	depends on HAS_IOMEM
4623d0407baSopenharmony_ci	select CLKSRC_MMIO
4633d0407baSopenharmony_ci	help
4643d0407baSopenharmony_ci	  Support for Freescale FlexTimer Module (FTM) timer.
4653d0407baSopenharmony_ci
4663d0407baSopenharmony_ciconfig VF_PIT_TIMER
4673d0407baSopenharmony_ci	bool
4683d0407baSopenharmony_ci	select CLKSRC_MMIO
4693d0407baSopenharmony_ci	help
4703d0407baSopenharmony_ci	  Support for Periodic Interrupt Timer on Freescale Vybrid Family SoCs.
4713d0407baSopenharmony_ci
4723d0407baSopenharmony_ciconfig OXNAS_RPS_TIMER
4733d0407baSopenharmony_ci	bool "Oxford Semiconductor OXNAS RPS Timers driver" if COMPILE_TEST
4743d0407baSopenharmony_ci	select TIMER_OF
4753d0407baSopenharmony_ci	select CLKSRC_MMIO
4763d0407baSopenharmony_ci	help
4773d0407baSopenharmony_ci	  This enables support for the Oxford Semiconductor OXNAS RPS timers.
4783d0407baSopenharmony_ci
4793d0407baSopenharmony_ciconfig SYS_SUPPORTS_SH_CMT
4803d0407baSopenharmony_ci	bool
4813d0407baSopenharmony_ci
4823d0407baSopenharmony_ciconfig MTK_TIMER
4833d0407baSopenharmony_ci	bool "Mediatek timer driver" if COMPILE_TEST
4843d0407baSopenharmony_ci	depends on HAS_IOMEM
4853d0407baSopenharmony_ci	select TIMER_OF
4863d0407baSopenharmony_ci	select CLKSRC_MMIO
4873d0407baSopenharmony_ci	help
4883d0407baSopenharmony_ci	  Support for Mediatek timer driver.
4893d0407baSopenharmony_ci
4903d0407baSopenharmony_ciconfig SPRD_TIMER
4913d0407baSopenharmony_ci	bool "Spreadtrum timer driver" if EXPERT
4923d0407baSopenharmony_ci	depends on HAS_IOMEM
4933d0407baSopenharmony_ci	depends on (ARCH_SPRD || COMPILE_TEST)
4943d0407baSopenharmony_ci	default ARCH_SPRD
4953d0407baSopenharmony_ci	select TIMER_OF
4963d0407baSopenharmony_ci	help
4973d0407baSopenharmony_ci	  Enables support for the Spreadtrum timer driver.
4983d0407baSopenharmony_ci
4993d0407baSopenharmony_ciconfig SYS_SUPPORTS_SH_MTU2
5003d0407baSopenharmony_ci	bool
5013d0407baSopenharmony_ci
5023d0407baSopenharmony_ciconfig SYS_SUPPORTS_SH_TMU
5033d0407baSopenharmony_ci	bool
5043d0407baSopenharmony_ci
5053d0407baSopenharmony_ciconfig SYS_SUPPORTS_EM_STI
5063d0407baSopenharmony_ci	bool
5073d0407baSopenharmony_ci
5083d0407baSopenharmony_ciconfig CLKSRC_JCORE_PIT
5093d0407baSopenharmony_ci	bool "J-Core PIT timer driver" if COMPILE_TEST
5103d0407baSopenharmony_ci	depends on OF
5113d0407baSopenharmony_ci	depends on HAS_IOMEM
5123d0407baSopenharmony_ci	select CLKSRC_MMIO
5133d0407baSopenharmony_ci	help
5143d0407baSopenharmony_ci	  This enables build of clocksource and clockevent driver for
5153d0407baSopenharmony_ci	  the integrated PIT in the J-Core synthesizable, open source SoC.
5163d0407baSopenharmony_ci
5173d0407baSopenharmony_ciconfig SH_TIMER_CMT
5183d0407baSopenharmony_ci	bool "Renesas CMT timer driver" if COMPILE_TEST
5193d0407baSopenharmony_ci	depends on HAS_IOMEM
5203d0407baSopenharmony_ci	default SYS_SUPPORTS_SH_CMT
5213d0407baSopenharmony_ci	help
5223d0407baSopenharmony_ci	  This enables build of a clocksource and clockevent driver for
5233d0407baSopenharmony_ci	  the Compare Match Timer (CMT) hardware available in 16/32/48-bit
5243d0407baSopenharmony_ci	  variants on a wide range of Mobile and Automotive SoCs from Renesas.
5253d0407baSopenharmony_ci
5263d0407baSopenharmony_ciconfig SH_TIMER_MTU2
5273d0407baSopenharmony_ci	bool "Renesas MTU2 timer driver" if COMPILE_TEST
5283d0407baSopenharmony_ci	depends on HAS_IOMEM
5293d0407baSopenharmony_ci	default SYS_SUPPORTS_SH_MTU2
5303d0407baSopenharmony_ci	help
5313d0407baSopenharmony_ci	  This enables build of a clockevent driver for the Multi-Function
5323d0407baSopenharmony_ci	  Timer Pulse Unit 2 (MTU2) hardware available on SoCs from Renesas.
5333d0407baSopenharmony_ci	  This hardware comes with 16-bit timer registers.
5343d0407baSopenharmony_ci
5353d0407baSopenharmony_ciconfig RENESAS_OSTM
5363d0407baSopenharmony_ci	bool "Renesas OSTM timer driver" if COMPILE_TEST
5373d0407baSopenharmony_ci	select CLKSRC_MMIO
5383d0407baSopenharmony_ci	select TIMER_OF
5393d0407baSopenharmony_ci	help
5403d0407baSopenharmony_ci	  Enables the support for the Renesas OSTM.
5413d0407baSopenharmony_ci
5423d0407baSopenharmony_ciconfig SH_TIMER_TMU
5433d0407baSopenharmony_ci	bool "Renesas TMU timer driver" if COMPILE_TEST
5443d0407baSopenharmony_ci	depends on HAS_IOMEM
5453d0407baSopenharmony_ci	default SYS_SUPPORTS_SH_TMU
5463d0407baSopenharmony_ci	help
5473d0407baSopenharmony_ci	  This enables build of a clocksource and clockevent driver for
5483d0407baSopenharmony_ci	  the 32-bit Timer Unit (TMU) hardware available on a wide range
5493d0407baSopenharmony_ci	  SoCs from Renesas.
5503d0407baSopenharmony_ci
5513d0407baSopenharmony_ciconfig EM_TIMER_STI
5523d0407baSopenharmony_ci	bool "Renesas STI timer driver" if COMPILE_TEST
5533d0407baSopenharmony_ci	depends on HAS_IOMEM
5543d0407baSopenharmony_ci	default SYS_SUPPORTS_EM_STI
5553d0407baSopenharmony_ci	help
5563d0407baSopenharmony_ci	  This enables build of a clocksource and clockevent driver for
5573d0407baSopenharmony_ci	  the 48-bit System Timer (STI) hardware available on a SoCs
5583d0407baSopenharmony_ci	  such as EMEV2 from former NEC Electronics.
5593d0407baSopenharmony_ci
5603d0407baSopenharmony_ciconfig CLKSRC_QCOM
5613d0407baSopenharmony_ci	bool "Qualcomm MSM timer" if COMPILE_TEST
5623d0407baSopenharmony_ci	depends on ARM
5633d0407baSopenharmony_ci	select TIMER_OF
5643d0407baSopenharmony_ci	help
5653d0407baSopenharmony_ci	  This enables the clocksource and the per CPU clockevent driver for the
5663d0407baSopenharmony_ci	  Qualcomm SoCs.
5673d0407baSopenharmony_ci
5683d0407baSopenharmony_ciconfig CLKSRC_VERSATILE
5693d0407baSopenharmony_ci	bool "ARM Versatile (Express) reference platforms clock source" if COMPILE_TEST
5703d0407baSopenharmony_ci	depends on GENERIC_SCHED_CLOCK && !ARCH_USES_GETTIMEOFFSET
5713d0407baSopenharmony_ci	select TIMER_OF
5723d0407baSopenharmony_ci	default y if (ARCH_VEXPRESS || ARCH_VERSATILE) && ARM
5733d0407baSopenharmony_ci	help
5743d0407baSopenharmony_ci	  This option enables clock source based on free running
5753d0407baSopenharmony_ci	  counter available in the "System Registers" block of
5763d0407baSopenharmony_ci	  ARM Versatile and Versatile Express reference platforms.
5773d0407baSopenharmony_ci
5783d0407baSopenharmony_ciconfig CLKSRC_MIPS_GIC
5793d0407baSopenharmony_ci	bool
5803d0407baSopenharmony_ci	depends on MIPS_GIC
5813d0407baSopenharmony_ci	select CLOCKSOURCE_WATCHDOG
5823d0407baSopenharmony_ci	select TIMER_OF
5833d0407baSopenharmony_ci
5843d0407baSopenharmony_ciconfig CLKSRC_TANGO_XTAL
5853d0407baSopenharmony_ci	bool "Clocksource for Tango SoC" if COMPILE_TEST
5863d0407baSopenharmony_ci	depends on ARM
5873d0407baSopenharmony_ci	select TIMER_OF
5883d0407baSopenharmony_ci	select CLKSRC_MMIO
5893d0407baSopenharmony_ci	help
5903d0407baSopenharmony_ci	  This enables the clocksource for Tango SoC.
5913d0407baSopenharmony_ci
5923d0407baSopenharmony_ciconfig CLKSRC_PXA
5933d0407baSopenharmony_ci	bool "Clocksource for PXA or SA-11x0 platform" if COMPILE_TEST
5943d0407baSopenharmony_ci	depends on HAS_IOMEM
5953d0407baSopenharmony_ci	select CLKSRC_MMIO
5963d0407baSopenharmony_ci	help
5973d0407baSopenharmony_ci	  This enables OST0 support available on PXA and SA-11x0
5983d0407baSopenharmony_ci	  platforms.
5993d0407baSopenharmony_ci
6003d0407baSopenharmony_ciconfig H8300_TMR8
6013d0407baSopenharmony_ci	bool "Clockevent timer for the H8300 platform" if COMPILE_TEST
6023d0407baSopenharmony_ci	depends on HAS_IOMEM
6033d0407baSopenharmony_ci	help
6043d0407baSopenharmony_ci	  This enables the 8 bits timer for the H8300 platform.
6053d0407baSopenharmony_ci
6063d0407baSopenharmony_ciconfig H8300_TMR16
6073d0407baSopenharmony_ci	bool "Clockevent timer for the H83069 platform" if COMPILE_TEST
6083d0407baSopenharmony_ci	depends on HAS_IOMEM
6093d0407baSopenharmony_ci	help
6103d0407baSopenharmony_ci	  This enables the 16 bits timer for the H8300 platform with the
6113d0407baSopenharmony_ci	  H83069 CPU.
6123d0407baSopenharmony_ci
6133d0407baSopenharmony_ciconfig H8300_TPU
6143d0407baSopenharmony_ci	bool "Clocksource for the H8300 platform" if COMPILE_TEST
6153d0407baSopenharmony_ci	depends on HAS_IOMEM
6163d0407baSopenharmony_ci	help
6173d0407baSopenharmony_ci	  This enables the clocksource for the H8300 platform with the
6183d0407baSopenharmony_ci	  H8S2678 CPU.
6193d0407baSopenharmony_ci
6203d0407baSopenharmony_ciconfig CLKSRC_IMX_GPT
6213d0407baSopenharmony_ci	bool "Clocksource using i.MX GPT" if COMPILE_TEST
6223d0407baSopenharmony_ci	depends on (ARM || ARM64) && CLKDEV_LOOKUP
6233d0407baSopenharmony_ci	select CLKSRC_MMIO
6243d0407baSopenharmony_ci
6253d0407baSopenharmony_ciconfig CLKSRC_IMX_TPM
6263d0407baSopenharmony_ci	bool "Clocksource using i.MX TPM" if COMPILE_TEST
6273d0407baSopenharmony_ci	depends on (ARM || ARM64) && CLKDEV_LOOKUP
6283d0407baSopenharmony_ci	select CLKSRC_MMIO
6293d0407baSopenharmony_ci	select TIMER_OF
6303d0407baSopenharmony_ci	help
6313d0407baSopenharmony_ci	  Enable this option to use IMX Timer/PWM Module (TPM) timer as
6323d0407baSopenharmony_ci	  clocksource.
6333d0407baSopenharmony_ci
6343d0407baSopenharmony_ciconfig TIMER_IMX_SYS_CTR
6353d0407baSopenharmony_ci	bool "i.MX system counter timer" if COMPILE_TEST
6363d0407baSopenharmony_ci	select TIMER_OF
6373d0407baSopenharmony_ci	help
6383d0407baSopenharmony_ci	  Enable this option to use i.MX system counter timer as a
6393d0407baSopenharmony_ci	  clockevent.
6403d0407baSopenharmony_ci
6413d0407baSopenharmony_ciconfig CLKSRC_ST_LPC
6423d0407baSopenharmony_ci	bool "Low power clocksource found in the LPC" if COMPILE_TEST
6433d0407baSopenharmony_ci	select TIMER_OF if OF
6443d0407baSopenharmony_ci	depends on HAS_IOMEM
6453d0407baSopenharmony_ci	select CLKSRC_MMIO
6463d0407baSopenharmony_ci	help
6473d0407baSopenharmony_ci	  Enable this option to use the Low Power controller timer
6483d0407baSopenharmony_ci	  as clocksource.
6493d0407baSopenharmony_ci
6503d0407baSopenharmony_ciconfig ATCPIT100_TIMER
6513d0407baSopenharmony_ci	bool "ATCPIT100 timer driver"
6523d0407baSopenharmony_ci	depends on NDS32 || COMPILE_TEST
6533d0407baSopenharmony_ci	depends on HAS_IOMEM
6543d0407baSopenharmony_ci	select TIMER_OF
6553d0407baSopenharmony_ci	default NDS32
6563d0407baSopenharmony_ci	help
6573d0407baSopenharmony_ci	  This option enables support for the Andestech ATCPIT100 timers.
6583d0407baSopenharmony_ci
6593d0407baSopenharmony_ciconfig RISCV_TIMER
6603d0407baSopenharmony_ci	bool "Timer for the RISC-V platform" if COMPILE_TEST
6613d0407baSopenharmony_ci	depends on GENERIC_SCHED_CLOCK && RISCV && RISCV_SBI
6623d0407baSopenharmony_ci	select TIMER_PROBE
6633d0407baSopenharmony_ci	select TIMER_OF
6643d0407baSopenharmony_ci	help
6653d0407baSopenharmony_ci	  This enables the per-hart timer built into all RISC-V systems, which
6663d0407baSopenharmony_ci	  is accessed via both the SBI and the rdcycle instruction.  This is
6673d0407baSopenharmony_ci	  required for all RISC-V systems.
6683d0407baSopenharmony_ci
6693d0407baSopenharmony_ciconfig CLINT_TIMER
6703d0407baSopenharmony_ci	bool "CLINT Timer for the RISC-V platform" if COMPILE_TEST
6713d0407baSopenharmony_ci	depends on GENERIC_SCHED_CLOCK && RISCV
6723d0407baSopenharmony_ci	select TIMER_PROBE
6733d0407baSopenharmony_ci	select TIMER_OF
6743d0407baSopenharmony_ci	help
6753d0407baSopenharmony_ci	  This option enables the CLINT timer for RISC-V systems.  The CLINT
6763d0407baSopenharmony_ci	  driver is usually used for NoMMU RISC-V systems.
6773d0407baSopenharmony_ci
6783d0407baSopenharmony_ciconfig CSKY_MP_TIMER
6793d0407baSopenharmony_ci	bool "SMP Timer for the C-SKY platform" if COMPILE_TEST
6803d0407baSopenharmony_ci	depends on CSKY
6813d0407baSopenharmony_ci	select TIMER_OF
6823d0407baSopenharmony_ci	help
6833d0407baSopenharmony_ci	  Say yes here to enable C-SKY SMP timer driver used for C-SKY SMP
6843d0407baSopenharmony_ci	  system.
6853d0407baSopenharmony_ci	  csky,mptimer is not only used in SMP system, it also could be used in
6863d0407baSopenharmony_ci	  single core system. It's not a mmio reg and it uses mtcr/mfcr instruction.
6873d0407baSopenharmony_ci
6883d0407baSopenharmony_ciconfig GX6605S_TIMER
6893d0407baSopenharmony_ci	bool "Gx6605s SOC system timer driver" if COMPILE_TEST
6903d0407baSopenharmony_ci	depends on CSKY
6913d0407baSopenharmony_ci	select CLKSRC_MMIO
6923d0407baSopenharmony_ci	select TIMER_OF
6933d0407baSopenharmony_ci	help
6943d0407baSopenharmony_ci	  This option enables support for gx6605s SOC's timer.
6953d0407baSopenharmony_ci
6963d0407baSopenharmony_ciconfig MILBEAUT_TIMER
6973d0407baSopenharmony_ci	bool "Milbeaut timer driver" if COMPILE_TEST
6983d0407baSopenharmony_ci	depends on OF
6993d0407baSopenharmony_ci	depends on ARM
7003d0407baSopenharmony_ci	select TIMER_OF
7013d0407baSopenharmony_ci	select CLKSRC_MMIO
7023d0407baSopenharmony_ci	help
7033d0407baSopenharmony_ci	  Enables the support for Milbeaut timer driver.
7043d0407baSopenharmony_ci
7053d0407baSopenharmony_ciconfig INGENIC_TIMER
7063d0407baSopenharmony_ci	bool "Clocksource/timer using the TCU in Ingenic JZ SoCs"
7073d0407baSopenharmony_ci	default MACH_INGENIC
7083d0407baSopenharmony_ci	depends on MIPS || COMPILE_TEST
7093d0407baSopenharmony_ci	depends on COMMON_CLK
7103d0407baSopenharmony_ci	select MFD_SYSCON
7113d0407baSopenharmony_ci	select TIMER_OF
7123d0407baSopenharmony_ci	select IRQ_DOMAIN
7133d0407baSopenharmony_ci	help
7143d0407baSopenharmony_ci	  Support for the timer/counter unit of the Ingenic JZ SoCs.
7153d0407baSopenharmony_ci
7163d0407baSopenharmony_ciconfig INGENIC_SYSOST
7173d0407baSopenharmony_ci	bool "Clocksource/timer using the SYSOST in Ingenic X SoCs"
7183d0407baSopenharmony_ci	depends on MIPS || COMPILE_TEST
7193d0407baSopenharmony_ci	depends on COMMON_CLK
7203d0407baSopenharmony_ci	select MFD_SYSCON
7213d0407baSopenharmony_ci	select TIMER_OF
7223d0407baSopenharmony_ci	select IRQ_DOMAIN
7233d0407baSopenharmony_ci	help
7243d0407baSopenharmony_ci	  Support for the SYSOST of the Ingenic X Series SoCs.
7253d0407baSopenharmony_ci
7263d0407baSopenharmony_ciconfig INGENIC_OST
7273d0407baSopenharmony_ci	bool "Clocksource using the OST in Ingenic JZ SoCs"
7283d0407baSopenharmony_ci	depends on MIPS || COMPILE_TEST
7293d0407baSopenharmony_ci	depends on COMMON_CLK
7303d0407baSopenharmony_ci	select MFD_SYSCON
7313d0407baSopenharmony_ci	help
7323d0407baSopenharmony_ci	  Support for the Operating System Timer of the Ingenic JZ SoCs.
7333d0407baSopenharmony_ci
7343d0407baSopenharmony_ciconfig MICROCHIP_PIT64B
7353d0407baSopenharmony_ci	bool "Microchip PIT64B support"
7363d0407baSopenharmony_ci	depends on OF || COMPILE_TEST
7373d0407baSopenharmony_ci	select CLKSRC_MMIO
7383d0407baSopenharmony_ci	select TIMER_OF
7393d0407baSopenharmony_ci	help
7403d0407baSopenharmony_ci	  This option enables Microchip PIT64B timer for Atmel
7413d0407baSopenharmony_ci	  based system. It supports the oneshot, the periodic
7423d0407baSopenharmony_ci	  modes and high resolution. It is used as a clocksource
7433d0407baSopenharmony_ci	  and a clockevent.
7443d0407baSopenharmony_ci
7453d0407baSopenharmony_ciendmenu
746