xref: /openbmc/linux/drivers/clocksource/Kconfig (revision 56f99cdc)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
258394271SJean Delvaremenu "Clock Source drivers"
32f8a26c1SArnd Bergmann	depends on GENERIC_CLOCKEVENTS
458394271SJean Delvare
5bb0eb050SDaniel Lezcanoconfig TIMER_OF
6ae278a93SStephen Warren	bool
7bb0eb050SDaniel Lezcano	select TIMER_PROBE
8aad83b15SMarc Zyngier
9fa1bffabSDaniel Lezcanoconfig TIMER_ACPI
10aad83b15SMarc Zyngier	bool
11bb0eb050SDaniel Lezcano	select TIMER_PROBE
12aad83b15SMarc Zyngier
13bb0eb050SDaniel Lezcanoconfig TIMER_PROBE
14aad83b15SMarc Zyngier	bool
15ae278a93SStephen Warren
1689c0b8e2SRussell Kingconfig CLKSRC_I8253
1789c0b8e2SRussell King	bool
18442c8176SRussell King
19e6220bdcSThomas Gleixnerconfig CLKEVT_I8253
20e6220bdcSThomas Gleixner	bool
21e6220bdcSThomas Gleixner
2215f304b6SRalf Baechleconfig I8253_LOCK
2315f304b6SRalf Baechle	bool
2415f304b6SRalf Baechle
25ab0bbef3STony Lindgrenconfig OMAP_DM_SYSTIMER
26af04aa85SKeerthy	bool
27eda9a4f7SKees Cook	select TIMER_OF
28af04aa85SKeerthy
2915f304b6SRalf Baechleconfig CLKBLD_I8253
30e6220bdcSThomas Gleixner	def_bool y if CLKSRC_I8253 || CLKEVT_I8253 || I8253_LOCK
3115f304b6SRalf Baechle
32442c8176SRussell Kingconfig CLKSRC_MMIO
33442c8176SRussell King	bool
3406c3df49SJamie Iles
352ea879a7SDaniel Lezcanoconfig BCM2835_TIMER
362ea879a7SDaniel Lezcano	bool "BCM2835 timer driver" if COMPILE_TEST
372ea879a7SDaniel Lezcano	select CLKSRC_MMIO
382ea879a7SDaniel Lezcano	help
392ea879a7SDaniel Lezcano	  Enables the support for the BCM2835 timer driver.
402ea879a7SDaniel Lezcano
411cad71e3SDaniel Lezcanoconfig BCM_KONA_TIMER
421cad71e3SDaniel Lezcano	bool "BCM mobile timer driver" if COMPILE_TEST
431cad71e3SDaniel Lezcano	select CLKSRC_MMIO
441cad71e3SDaniel Lezcano	help
451cad71e3SDaniel Lezcano	  Enables the support for the BCM Kona mobile timer driver.
461cad71e3SDaniel Lezcano
47721154f9SBartosz Golaszewskiconfig DAVINCI_TIMER
48721154f9SBartosz Golaszewski	bool "Texas Instruments DaVinci timer driver" if COMPILE_TEST
49721154f9SBartosz Golaszewski	help
50721154f9SBartosz Golaszewski	  Enables the support for the TI DaVinci timer driver.
51721154f9SBartosz Golaszewski
529b8bb773SBaruch Siachconfig DIGICOLOR_TIMER
53e6c1db13SDaniel Lezcano	bool "Digicolor timer driver" if COMPILE_TEST
542be6d9bfSArnd Bergmann	select CLKSRC_MMIO
55d7023e62SRichard Weinberger	depends on HAS_IOMEM
56e6c1db13SDaniel Lezcano	help
57e6c1db13SDaniel Lezcano	  Enables the support for the digicolor timer driver.
589b8bb773SBaruch Siach
59ab0bbef3STony Lindgrenconfig OMAP_DM_TIMER
60775343f9STony Lindgren	bool "OMAP dual-mode timer driver" if ARCH_K3 || COMPILE_TEST
61775343f9STony Lindgren	default y if ARCH_K3
62ab0bbef3STony Lindgren	select TIMER_OF
63ab0bbef3STony Lindgren	help
64ab0bbef3STony Lindgren	  Enables the support for the TI dual-mode timer driver.
65ab0bbef3STony Lindgren
6606c3df49SJamie Ilesconfig DW_APB_TIMER
675b097f6bSDaniel Lezcano	bool "DW APB timer driver" if COMPILE_TEST
685b097f6bSDaniel Lezcano	help
695b097f6bSDaniel Lezcano	  Enables the support for the dw_apb timer.
70489bcceaSMattias Wallin
71cfda5901SDinh Nguyenconfig DW_APB_TIMER_OF
72cfda5901SDinh Nguyen	bool
731b4eca0fSHeiko Stuebner	select DW_APB_TIMER
74bb0eb050SDaniel Lezcano	select TIMER_OF
75cfda5901SDinh Nguyen
76f5bf0ee4SLinus Walleijconfig FTTMR010_TIMER
77f5bf0ee4SLinus Walleij	bool "Faraday Technology timer driver" if COMPILE_TEST
784750535bSLinus Walleij	depends on HAS_IOMEM
794750535bSLinus Walleij	select CLKSRC_MMIO
80bb0eb050SDaniel Lezcano	select TIMER_OF
814750535bSLinus Walleij	select MFD_SYSCON
824750535bSLinus Walleij	help
83f5bf0ee4SLinus Walleij	  Enables support for the Faraday Technology timer block
84f5bf0ee4SLinus Walleij	  FTTMR010.
854750535bSLinus Walleij
8613e0b405SLinus Walleijconfig IXP4XX_TIMER
8713e0b405SLinus Walleij	bool "Intel XScale IXP4xx timer driver" if COMPILE_TEST
8813e0b405SLinus Walleij	depends on HAS_IOMEM
8913e0b405SLinus Walleij	select CLKSRC_MMIO
9041929c9fSLinus Walleij	select TIMER_OF
9113e0b405SLinus Walleij	help
9213e0b405SLinus Walleij	  Enables support for the Intel XScale IXP4xx SoC timer.
9313e0b405SLinus Walleij
94468b8c4cSDaniel Lezcanoconfig ROCKCHIP_TIMER
9540ada2aaSDaniel Lezcano	bool "Rockchip timer driver" if COMPILE_TEST
9640ada2aaSDaniel Lezcano	depends on ARM || ARM64
97bb0eb050SDaniel Lezcano	select TIMER_OF
985e0a39d0SAlexander Kochetkov	select CLKSRC_MMIO
9940ada2aaSDaniel Lezcano	help
10006293463SRandy Dunlap	  Enables the support for the Rockchip timer driver.
101468b8c4cSDaniel Lezcano
1026fe9cbd1SGregory CLEMENTconfig ARMADA_370_XP_TIMER
1039519e80cSDaniel Lezcano	bool "Armada 370 and XP timer driver" if COMPILE_TEST
1049519e80cSDaniel Lezcano	depends on ARM
105bb0eb050SDaniel Lezcano	select TIMER_OF
1062be6d9bfSArnd Bergmann	select CLKSRC_MMIO
1079519e80cSDaniel Lezcano	help
1089519e80cSDaniel Lezcano	  Enables the support for the Armada 370 and XP timer driver.
1096fe9cbd1SGregory CLEMENT
110e4a6b378SCarlo Caioneconfig MESON6_TIMER
1110b7a7bb7SDaniel Lezcano	bool "Meson6 timer driver" if COMPILE_TEST
1127b6b0a45SBeniamino Galvani	select CLKSRC_MMIO
1130b7a7bb7SDaniel Lezcano	help
1140b7a7bb7SDaniel Lezcano	  Enables the support for the Meson6 timer driver.
115e4a6b378SCarlo Caione
1160c1dcfd5SSebastian Hesselbarthconfig ORION_TIMER
117c9165549SDaniel Lezcano	bool "Orion timer driver" if COMPILE_TEST
118c9165549SDaniel Lezcano	depends on ARM
119bb0eb050SDaniel Lezcano	select TIMER_OF
1200c1dcfd5SSebastian Hesselbarth	select CLKSRC_MMIO
121c9165549SDaniel Lezcano	help
122c9165549SDaniel Lezcano	  Enables the support for the Orion timer driver
1230c1dcfd5SSebastian Hesselbarth
1244be78a86SAndreas Färberconfig OWL_TIMER
1254be78a86SAndreas Färber	bool "Owl timer driver" if COMPILE_TEST
1264be78a86SAndreas Färber	select CLKSRC_MMIO
1274be78a86SAndreas Färber	help
1284be78a86SAndreas Färber	  Enables the support for the Actions Semi Owl timer driver.
1294be78a86SAndreas Färber
1307f83a132SManivannan Sadhasivamconfig RDA_TIMER
1317f83a132SManivannan Sadhasivam	bool "RDA timer driver" if COMPILE_TEST
1327f83a132SManivannan Sadhasivam	select CLKSRC_MMIO
1337f83a132SManivannan Sadhasivam	select TIMER_OF
1347f83a132SManivannan Sadhasivam	help
1357f83a132SManivannan Sadhasivam	  Enables the support for the RDA Micro timer driver.
1367f83a132SManivannan Sadhasivam
137119fd635SMaxime Ripardconfig SUN4I_TIMER
138b4fcd48bSDaniel Lezcano	bool "Sun4i timer driver" if COMPILE_TEST
139d7023e62SRichard Weinberger	depends on HAS_IOMEM
14071c568c0SMaxime Ripard	select CLKSRC_MMIO
141239751edSDaniel Lezcano	select TIMER_OF
142b4fcd48bSDaniel Lezcano	help
143b4fcd48bSDaniel Lezcano	  Enables support for the Sun4i timer.
144b2ac5d75SMaxime Ripard
14567905540SMaxime Ripardconfig SUN5I_HSTIMER
146f0c5afb7SDaniel Lezcano	bool "Sun5i timer driver" if COMPILE_TEST
14767905540SMaxime Ripard	select CLKSRC_MMIO
148f0c5afb7SDaniel Lezcano	depends on COMMON_CLK
149f0c5afb7SDaniel Lezcano	help
150f0c5afb7SDaniel Lezcano	  Enables support the Sun5i timer.
15167905540SMaxime Ripard
152910978e7SThierry Redingconfig TEGRA_TIMER
153adce4bc8SDaniel Lezcano	bool "Tegra timer driver" if COMPILE_TEST
1542be6d9bfSArnd Bergmann	select CLKSRC_MMIO
155b4822dc7SJoseph Lo	select TIMER_OF
156acb4bb3fSDmitry Osipenko	depends on ARCH_TEGRA || COMPILE_TEST
157adce4bc8SDaniel Lezcano	help
158adce4bc8SDaniel Lezcano	  Enables support for the Tegra driver.
159910978e7SThierry Reding
16042cee19aSThierry Redingconfig TEGRA186_TIMER
161110a2535SDaniel Lezcano	bool "NVIDIA Tegra186 timer driver"
16242cee19aSThierry Reding	depends on ARCH_TEGRA || COMPILE_TEST
16342cee19aSThierry Reding	depends on WATCHDOG && WATCHDOG_CORE
16442cee19aSThierry Reding	help
16542cee19aSThierry Reding	  Enables support for the timers and watchdogs found on NVIDIA
16642cee19aSThierry Reding	  Tegra186 and later SoCs.
16742cee19aSThierry Reding
168ff7ec345STony Priskconfig VT8500_TIMER
169b4bdf7efSDaniel Lezcano	bool "VT8500 timer driver" if COMPILE_TEST
170d7023e62SRichard Weinberger	depends on HAS_IOMEM
171b4bdf7efSDaniel Lezcano	help
172b4bdf7efSDaniel Lezcano	  Enables support for the VT8500 driver.
173ff7ec345STony Prisk
1741c00289eSTomer Maimonconfig NPCM7XX_TIMER
1751c00289eSTomer Maimon	bool "NPCM7xx timer driver" if COMPILE_TEST
1761c00289eSTomer Maimon	depends on HAS_IOMEM
17799834eeaSArnd Bergmann	select TIMER_OF
1781c00289eSTomer Maimon	select CLKSRC_MMIO
1791c00289eSTomer Maimon	help
1801c00289eSTomer Maimon	  Enable 24-bit TIMER0 and TIMER1 counters in the NPCM7xx architecture,
18106293463SRandy Dunlap	  where TIMER0 serves as clockevent and TIMER1 serves as clocksource.
1821c00289eSTomer Maimon
1834f0f234fSMichal Simekconfig CADENCE_TTC_TIMER
18457f49318SDaniel Lezcano	bool "Cadence TTC timer driver" if COMPILE_TEST
18557f49318SDaniel Lezcano	depends on COMMON_CLK
18657f49318SDaniel Lezcano	help
18706293463SRandy Dunlap	  Enables support for the Cadence TTC driver.
1884f0f234fSMichal Simek
189a8b1b9fcSDaniel Lezcanoconfig ASM9260_TIMER
190b9755841SDaniel Lezcano	bool "ASM9260 timer driver" if COMPILE_TEST
191a8b1b9fcSDaniel Lezcano	select CLKSRC_MMIO
192bb0eb050SDaniel Lezcano	select TIMER_OF
193b9755841SDaniel Lezcano	help
194b9755841SDaniel Lezcano	  Enables support for the ASM9260 timer.
195a8b1b9fcSDaniel Lezcano
196694e33a7SLinus Walleijconfig CLKSRC_NOMADIK_MTU
19770329653SDaniel Lezcano	bool "Nomakdik clocksource driver" if COMPILE_TEST
19870329653SDaniel Lezcano	depends on ARM
199694e33a7SLinus Walleij	select CLKSRC_MMIO
200694e33a7SLinus Walleij	help
201694e33a7SLinus Walleij	  Support for Multi Timer Unit. MTU provides access
202694e33a7SLinus Walleij	  to multiple interrupt generating programmable
203694e33a7SLinus Walleij	  32-bit free running decrementing counters.
204694e33a7SLinus Walleij
205489bcceaSMattias Wallinconfig CLKSRC_DBX500_PRCMU
2061becd6edSDaniel Lezcano	bool "Clocksource PRCMU Timer" if COMPILE_TEST
207d7023e62SRichard Weinberger	depends on HAS_IOMEM
208489bcceaSMattias Wallin	help
20906293463SRandy Dunlap	  Use the always on PRCMU Timer as clocksource.
210489bcceaSMattias Wallin
211ecf0efdcSDaniel Lezcanoconfig CLPS711X_TIMER
21206293463SRandy Dunlap	bool "Cirrus Logic timer driver" if COMPILE_TEST
213ecf0efdcSDaniel Lezcano	select CLKSRC_MMIO
214ecf0efdcSDaniel Lezcano	help
215ecf0efdcSDaniel Lezcano	  Enables support for the Cirrus Logic PS711 timer.
216ecf0efdcSDaniel Lezcano
217d81c50a0SDaniel Lezcanoconfig MXS_TIMER
21806293463SRandy Dunlap	bool "MXS timer driver" if COMPILE_TEST
219d81c50a0SDaniel Lezcano	select CLKSRC_MMIO
220d81c50a0SDaniel Lezcano	select STMP_DEVICE
221d81c50a0SDaniel Lezcano	help
22206293463SRandy Dunlap	  Enables support for the MXS timer.
223d81c50a0SDaniel Lezcano
224d683b9dcSDaniel Lezcanoconfig NSPIRE_TIMER
225d683b9dcSDaniel Lezcano	bool "NSpire timer driver" if COMPILE_TEST
226d683b9dcSDaniel Lezcano	select CLKSRC_MMIO
227d683b9dcSDaniel Lezcano	help
228d683b9dcSDaniel Lezcano	  Enables support for the Nspire timer.
229d683b9dcSDaniel Lezcano
230c12547a0SDaniel Lezcanoconfig KEYSTONE_TIMER
231c12547a0SDaniel Lezcano	bool "Keystone timer driver" if COMPILE_TEST
232c12547a0SDaniel Lezcano	depends on ARM || ARM64
233c12547a0SDaniel Lezcano	select CLKSRC_MMIO
234c12547a0SDaniel Lezcano	help
235c12547a0SDaniel Lezcano	  Enables support for the Keystone timer.
236c12547a0SDaniel Lezcano
237568c0342SDaniel Lezcanoconfig INTEGRATOR_AP_TIMER
23806293463SRandy Dunlap	bool "Integrator-AP timer driver" if COMPILE_TEST
239568c0342SDaniel Lezcano	select CLKSRC_MMIO
240568c0342SDaniel Lezcano	help
24106293463SRandy Dunlap	  Enables support for the Integrator-AP timer.
242568c0342SDaniel Lezcano
243050dd322SJoachim Eastwoodconfig CLKSRC_LPC32XX
244ddcf48c7SDaniel Lezcano	bool "Clocksource for LPC32XX" if COMPILE_TEST
2452f8a26c1SArnd Bergmann	depends on HAS_IOMEM
2461b18fd20SEzequiel Garcia	depends on ARM
247050dd322SJoachim Eastwood	select CLKSRC_MMIO
248bb0eb050SDaniel Lezcano	select TIMER_OF
249ddcf48c7SDaniel Lezcano	help
250ddcf48c7SDaniel Lezcano	  Support for the LPC32XX clocksource.
251050dd322SJoachim Eastwood
25284583983SEzequiel Garciaconfig CLKSRC_PISTACHIO
2531e4fd60bSJiaxun Yang	bool "Clocksource for Pistachio SoC"
2542f8a26c1SArnd Bergmann	depends on HAS_IOMEM
2551e4fd60bSJiaxun Yang	depends on MIPS || COMPILE_TEST
256bb0eb050SDaniel Lezcano	select TIMER_OF
257dfdb1652SDaniel Lezcano	help
258dfdb1652SDaniel Lezcano	  Enables the clocksource for the Pistachio SoC.
25984583983SEzequiel Garcia
260fe851f56SFelipe Balbiconfig CLKSRC_TI_32K
261fe851f56SFelipe Balbi	bool "Texas Instruments 32.768 Hz Clocksource" if COMPILE_TEST
262dfedaf10SFelipe Balbi	depends on GENERIC_SCHED_CLOCK
263bb0eb050SDaniel Lezcano	select TIMER_OF if OF
264fe851f56SFelipe Balbi	help
265fe851f56SFelipe Balbi	  This option enables support for Texas Instruments 32.768 Hz clocksource
266fe851f56SFelipe Balbi	  available on many OMAP-like platforms.
267fe851f56SFelipe Balbi
268e37e4593SMaxime Coquelinconfig CLKSRC_STM32
2691cb6c215SPaul Gortmaker	bool "Clocksource for STM32 SoCs" if !ARCH_STM32
2701cb6c215SPaul Gortmaker	depends on OF && ARM && (ARCH_STM32 || COMPILE_TEST)
271e37e4593SMaxime Coquelin	select CLKSRC_MMIO
272d04af490SBenjamin Gaignard	select TIMER_OF
273e37e4593SMaxime Coquelin
27448b41c5eSBenjamin Gaignardconfig CLKSRC_STM32_LP
27548b41c5eSBenjamin Gaignard	bool "Low power clocksource for STM32 SoCs"
27648b41c5eSBenjamin Gaignard	depends on MFD_STM32_LPTIMER || COMPILE_TEST
27748b41c5eSBenjamin Gaignard
2780302637fSVladimir Murzinconfig CLKSRC_MPS2
2790302637fSVladimir Murzin	bool "Clocksource for MPS2 SoCs" if COMPILE_TEST
2800302637fSVladimir Murzin	depends on GENERIC_SCHED_CLOCK
2810302637fSVladimir Murzin	select CLKSRC_MMIO
282bb0eb050SDaniel Lezcano	select TIMER_OF
2830302637fSVladimir Murzin
284c4c9a040SVineet Guptaconfig ARC_TIMERS
285c4c9a040SVineet Gupta	bool "Support for 32-bit TIMERn counters in ARC Cores" if COMPILE_TEST
286bf287607SAlexey Brodkin	depends on GENERIC_SCHED_CLOCK
287bb0eb050SDaniel Lezcano	select TIMER_OF
288c4c9a040SVineet Gupta	help
289c4c9a040SVineet Gupta	  These are legacy 32-bit TIMER0 and TIMER1 counters found on all ARC cores
290c4c9a040SVineet Gupta	  (ARC700 as well as ARC HS38).
29106293463SRandy Dunlap	  TIMER0 serves as clockevent while TIMER1 provides clocksource.
292c4c9a040SVineet Gupta
293c4c9a040SVineet Guptaconfig ARC_TIMERS_64BIT
294c4c9a040SVineet Gupta	bool "Support for 64-bit counters in ARC HS38 cores" if COMPILE_TEST
295c4c9a040SVineet Gupta	depends on ARC_TIMERS
296bb0eb050SDaniel Lezcano	select TIMER_OF
297c4c9a040SVineet Gupta	help
29806293463SRandy Dunlap	  This enables 2 different 64-bit timers: RTC (for UP) and GFRC (for SMP).
299c4c9a040SVineet Gupta	  RTC is implemented inside the core, while GFRC sits outside the core in
300c4c9a040SVineet Gupta	  ARConnect IP block. Driver automatically picks one of them for clocksource
301c4c9a040SVineet Gupta	  as appropriate.
302c4c9a040SVineet Gupta
3038a4da6e3SMark Rutlandconfig ARM_ARCH_TIMER
3048a4da6e3SMark Rutland	bool
305bb0eb050SDaniel Lezcano	select TIMER_OF if OF
306fa1bffabSDaniel Lezcano	select TIMER_ACPI if ACPI
307a2c5d4edSJames Hogan
308037f6377SWill Deaconconfig ARM_ARCH_TIMER_EVTSTREAM
30946fd5c6bSWill Deacon	bool "Enable ARM architected timer event stream generation by default"
310037f6377SWill Deacon	default y if ARM_ARCH_TIMER
31177f7ce9aSStephen Boyd	depends on ARM_ARCH_TIMER
312037f6377SWill Deacon	help
31346fd5c6bSWill Deacon	  This option enables support by default for event stream generation
31446fd5c6bSWill Deacon	  based on the ARM architected timer. It is used for waking up CPUs
31546fd5c6bSWill Deacon	  executing the wfe instruction at a frequency represented as a
31646fd5c6bSWill Deacon	  power-of-2 divisor of the clock rate. The behaviour can also be
31746fd5c6bSWill Deacon	  overridden on the command line using the
31846fd5c6bSWill Deacon	  clocksource.arm_arch_timer.evtstream parameter.
319037f6377SWill Deacon	  The main use of the event stream is wfe-based timeouts of userspace
320037f6377SWill Deacon	  locking implementations. It might also be useful for imposing timeout
321037f6377SWill Deacon	  on wfe to safeguard against any programming errors in case an expected
322037f6377SWill Deacon	  event is not generated.
323037f6377SWill Deacon	  This must be disabled for hardware validation purposes to detect any
324037f6377SWill Deacon	  hardware anomalies of missing events.
325037f6377SWill Deacon
32616d10ef2SDing Tianhongconfig ARM_ARCH_TIMER_OOL_WORKAROUND
32716d10ef2SDing Tianhong	bool
32816d10ef2SDing Tianhong
329f6dc1576SScott Woodconfig FSL_ERRATUM_A008585
330f6dc1576SScott Wood	bool "Workaround for Freescale/NXP Erratum A-008585"
331f6dc1576SScott Wood	default y
332f6dc1576SScott Wood	depends on ARM_ARCH_TIMER && ARM64
33316d10ef2SDing Tianhong	select ARM_ARCH_TIMER_OOL_WORKAROUND
334f6dc1576SScott Wood	help
335f6dc1576SScott Wood	  This option enables a workaround for Freescale/NXP Erratum
336f6dc1576SScott Wood	  A-008585 ("ARM generic timer may contain an erroneous
337f6dc1576SScott Wood	  value").  The workaround will only be active if the
338f6dc1576SScott Wood	  fsl,erratum-a008585 property is found in the timer node.
339f6dc1576SScott Wood
340bb42ca47SDing Tianhongconfig HISILICON_ERRATUM_161010101
341bb42ca47SDing Tianhong	bool "Workaround for Hisilicon Erratum 161010101"
342bb42ca47SDing Tianhong	default y
343bb42ca47SDing Tianhong	select ARM_ARCH_TIMER_OOL_WORKAROUND
344bb42ca47SDing Tianhong	depends on ARM_ARCH_TIMER && ARM64
345bb42ca47SDing Tianhong	help
346bb42ca47SDing Tianhong	  This option enables a workaround for Hisilicon Erratum
347bb42ca47SDing Tianhong	  161010101. The workaround will be active if the hisilicon,erratum-161010101
348bb42ca47SDing Tianhong	  property is found in the timer node.
349bb42ca47SDing Tianhong
350fa8d815fSMarc Zyngierconfig ARM64_ERRATUM_858921
351fa8d815fSMarc Zyngier	bool "Workaround for Cortex-A73 erratum 858921"
352fa8d815fSMarc Zyngier	default y
353fa8d815fSMarc Zyngier	select ARM_ARCH_TIMER_OOL_WORKAROUND
354fa8d815fSMarc Zyngier	depends on ARM_ARCH_TIMER && ARM64
355fa8d815fSMarc Zyngier	help
356fa8d815fSMarc Zyngier	  This option enables a workaround applicable to Cortex-A73
357fa8d815fSMarc Zyngier	  (all versions), whose counter may return incorrect values.
358fa8d815fSMarc Zyngier	  The workaround will be dynamically enabled when an affected
359fa8d815fSMarc Zyngier	  core is detected.
360fa8d815fSMarc Zyngier
361c950ca8cSSamuel Hollandconfig SUN50I_ERRATUM_UNKNOWN1
362c950ca8cSSamuel Holland	bool "Workaround for Allwinner A64 erratum UNKNOWN1"
363c950ca8cSSamuel Holland	default y
364c950ca8cSSamuel Holland	depends on ARM_ARCH_TIMER && ARM64 && ARCH_SUNXI
365c950ca8cSSamuel Holland	select ARM_ARCH_TIMER_OOL_WORKAROUND
366c950ca8cSSamuel Holland	help
367c950ca8cSSamuel Holland	  This option enables a workaround for instability in the timer on
368c950ca8cSSamuel Holland	  the Allwinner A64 SoC. The workaround will only be active if the
369c950ca8cSSamuel Holland	  allwinner,erratum-unknown1 property is found in the timer node.
370c950ca8cSSamuel Holland
371c1b40e44SStuart Menefyconfig ARM_GLOBAL_TIMER
37267a87a43SDaniel Lezcano	bool "Support for the ARM global timer" if COMPILE_TEST
373bb0eb050SDaniel Lezcano	select TIMER_OF if OF
37467a87a43SDaniel Lezcano	depends on ARM
375c1b40e44SStuart Menefy	help
37606293463SRandy Dunlap	  This option enables support for the ARM global timer unit.
377c1b40e44SStuart Menefy
378171b45a4SAndrea Merelloconfig ARM_GT_INITIAL_PRESCALER_VAL
379171b45a4SAndrea Merello	int "ARM global timer initial prescaler value"
38068e2215eSAndrea Merello	default 2 if ARCH_ZYNQ
381171b45a4SAndrea Merello	default 1
382171b45a4SAndrea Merello	depends on ARM_GLOBAL_TIMER
383171b45a4SAndrea Merello	help
384171b45a4SAndrea Merello	  When the ARM global timer initializes, its current rate is declared
3856f6f3e31SRandy Dunlap	  to the kernel and maintained forever. Should its parent clock
386171b45a4SAndrea Merello	  change, the driver tries to fix the timer's internal prescaler.
387171b45a4SAndrea Merello	  On some machs (i.e. Zynq) the initial prescaler value thus poses
388171b45a4SAndrea Merello	  bounds about how much the parent clock is allowed to decrease or
389171b45a4SAndrea Merello	  increase wrt the initial clock value.
390171b45a4SAndrea Merello	  This affects CPU_FREQ max delta from the initial frequency.
391171b45a4SAndrea Merello
3920b7402dcSSudeep Hollaconfig ARM_TIMER_SP804
393dfc82faaSDavid Abdurachmanov	bool "Support for Dual Timer SP804 module" if COMPILE_TEST
3942f4574ddSArnd Bergmann	depends on GENERIC_SCHED_CLOCK && HAVE_CLK
3950b7402dcSSudeep Holla	select CLKSRC_MMIO
396bb0eb050SDaniel Lezcano	select TIMER_OF if OF
3970b7402dcSSudeep Holla
398c1b40e44SStuart Menefyconfig CLKSRC_ARM_GLOBAL_TIMER_SCHED_CLOCK
399c1b40e44SStuart Menefy	bool
400c1b40e44SStuart Menefy	depends on ARM_GLOBAL_TIMER
401c1b40e44SStuart Menefy	default y
402c1b40e44SStuart Menefy	help
40306293463SRandy Dunlap	  Use ARM global timer clock source as sched_clock.
404c1b40e44SStuart Menefy
4054958ebb3SMaxime Coquelinconfig ARMV7M_SYSTICK
406e2146d86SDaniel Lezcano	bool "Support for the ARMv7M system time" if COMPILE_TEST
407bb0eb050SDaniel Lezcano	select TIMER_OF if OF
4084958ebb3SMaxime Coquelin	select CLKSRC_MMIO
4094958ebb3SMaxime Coquelin	help
41006293463SRandy Dunlap	  This option enables support for the ARMv7M system timer unit.
4114958ebb3SMaxime Coquelin
412b052ff30SMaxime Ripardconfig ATMEL_PIT
4132f982703SAlexandre Belloni	bool "Atmel PIT support" if COMPILE_TEST
4142f982703SAlexandre Belloni	depends on HAS_IOMEM
415bb0eb050SDaniel Lezcano	select TIMER_OF if OF
4162f982703SAlexandre Belloni	help
4172f982703SAlexandre Belloni	  Support for the Periodic Interval Timer found on Atmel SoCs.
418b052ff30SMaxime Ripard
419b53cdd03SAlexandre Belloniconfig ATMEL_ST
420b988d3f0SDaniel Lezcano	bool "Atmel ST timer support" if COMPILE_TEST
421bd2746f0SMasahiro Yamada	depends on HAS_IOMEM
422bb0eb050SDaniel Lezcano	select TIMER_OF
4237ab7ef74SAlexandre Belloni	select MFD_SYSCON
424b988d3f0SDaniel Lezcano	help
425b988d3f0SDaniel Lezcano	  Support for the Atmel ST timer.
426b53cdd03SAlexandre Belloni
4276275f494SAlexandre Belloniconfig ATMEL_TCB_CLKSRC
4286275f494SAlexandre Belloni	bool "Atmel TC Block timer driver" if COMPILE_TEST
4291ce861ceSAlexandre Belloni	depends on ARM && HAS_IOMEM
4306275f494SAlexandre Belloni	select TIMER_OF if OF
4316275f494SAlexandre Belloni	help
4326275f494SAlexandre Belloni	  Support for Timer Counter Blocks on Atmel SoCs.
4336275f494SAlexandre Belloni
4346938d75aSThomas Abrahamconfig CLKSRC_EXYNOS_MCT
43539366ef4SDaniel Lezcano	bool "Exynos multi core timer driver" if COMPILE_TEST
436f1a4c1f3SChanwoo Choi	depends on ARM || ARM64
43755ccdab7SVincent Whitchurch	depends on ARCH_ARTPEC || ARCH_EXYNOS || COMPILE_TEST
4386938d75aSThomas Abraham	help
4396938d75aSThomas Abraham	  Support for Multi Core Timer controller on Exynos SoCs.
440241a9871SArnd Bergmann
441f1189989STomasz Figaconfig CLKSRC_SAMSUNG_PWM
442de37b0b5SAlexandre Belloni	bool "PWM timer driver for Samsung S3C, S5P" if COMPILE_TEST
443d7023e62SRichard Weinberger	depends on HAS_IOMEM
4441ea35b35SArnd Bergmann	depends on ARCH_EXYNOS || ARCH_S3C64XX || ARCH_S5PV210 || COMPILE_TEST
445f1189989STomasz Figa	help
446f1189989STomasz Figa	  This is a new clocksource driver for the PWM timer found in
447f1189989STomasz Figa	  Samsung S3C, S5P and Exynos SoCs, replacing an earlier driver
448f1189989STomasz Figa	  for all devicetree enabled platforms. This driver will be
449f1189989STomasz Figa	  needed only on systems that do not have the Exynos MCT available.
450c1967249SJingchang Lu
4512529c3a3SXiubo Liconfig FSL_FTM_TIMER
452ef49336bSDaniel Lezcano	bool "Freescale FlexTimer Module driver" if COMPILE_TEST
453d7023e62SRichard Weinberger	depends on HAS_IOMEM
45403724ac3SDaniel Lezcano	select CLKSRC_MMIO
4552529c3a3SXiubo Li	help
4562529c3a3SXiubo Li	  Support for Freescale FlexTimer Module (FTM) timer.
4572529c3a3SXiubo Li
458c1967249SJingchang Luconfig VF_PIT_TIMER
459c1967249SJingchang Lu	bool
4602be6d9bfSArnd Bergmann	select CLKSRC_MMIO
461c1967249SJingchang Lu	help
46206293463SRandy Dunlap	  Support for Periodic Interrupt Timer on Freescale Vybrid Family SoCs.
463fd3f1270SMagnus Damm
464fd3f1270SMagnus Dammconfig SYS_SUPPORTS_SH_CMT
465fd3f1270SMagnus Damm	bool
466fd3f1270SMagnus Damm
467ecb3530dSMatthias Bruggerconfig MTK_TIMER
468fbca9eabSDaniel Lezcano	bool "Mediatek timer driver" if COMPILE_TEST
4692f8a26c1SArnd Bergmann	depends on HAS_IOMEM
470bb0eb050SDaniel Lezcano	select TIMER_OF
471ecb3530dSMatthias Brugger	select CLKSRC_MMIO
472fbca9eabSDaniel Lezcano	help
473fbca9eabSDaniel Lezcano	  Support for Mediatek timer driver.
474ecb3530dSMatthias Brugger
47549d576eaSAngeloGioacchino Del Regnoconfig MTK_CPUX_TIMER
47649d576eaSAngeloGioacchino Del Regno	bool "MediaTek CPUX timer driver" if COMPILE_TEST
47749d576eaSAngeloGioacchino Del Regno	depends on HAS_IOMEM
47849d576eaSAngeloGioacchino Del Regno	default ARCH_MEDIATEK
47949d576eaSAngeloGioacchino Del Regno	select TIMER_OF
48049d576eaSAngeloGioacchino Del Regno	select CLKSRC_MMIO
48149d576eaSAngeloGioacchino Del Regno	help
48249d576eaSAngeloGioacchino Del Regno	  Support for MediaTek CPUXGPT timer driver.
48349d576eaSAngeloGioacchino Del Regno
484067bc914SBaolin Wangconfig SPRD_TIMER
4858a1ece26SChunyan Zhang	bool "Spreadtrum timer driver" if EXPERT
486067bc914SBaolin Wang	depends on HAS_IOMEM
4878a1ece26SChunyan Zhang	depends on (ARCH_SPRD || COMPILE_TEST)
4888a1ece26SChunyan Zhang	default ARCH_SPRD
489067bc914SBaolin Wang	select TIMER_OF
490067bc914SBaolin Wang	help
491067bc914SBaolin Wang	  Enables support for the Spreadtrum timer driver.
492067bc914SBaolin Wang
493fd3f1270SMagnus Dammconfig SYS_SUPPORTS_SH_MTU2
494fd3f1270SMagnus Damm	bool
495fd3f1270SMagnus Damm
496fd3f1270SMagnus Dammconfig SYS_SUPPORTS_SH_TMU
497fd3f1270SMagnus Damm	bool
498fd3f1270SMagnus Damm
499fd3f1270SMagnus Dammconfig SYS_SUPPORTS_EM_STI
500fd3f1270SMagnus Damm	bool
501fd3f1270SMagnus Damm
5029995f4f1SRich Felkerconfig CLKSRC_JCORE_PIT
5039995f4f1SRich Felker	bool "J-Core PIT timer driver" if COMPILE_TEST
5049995f4f1SRich Felker	depends on OF
5059995f4f1SRich Felker	depends on HAS_IOMEM
5069995f4f1SRich Felker	select CLKSRC_MMIO
5079995f4f1SRich Felker	help
5089995f4f1SRich Felker	  This enables build of clocksource and clockevent driver for
5099995f4f1SRich Felker	  the integrated PIT in the J-Core synthesizable, open source SoC.
5109995f4f1SRich Felker
511fd3f1270SMagnus Dammconfig SH_TIMER_CMT
512fd3f1270SMagnus Damm	bool "Renesas CMT timer driver" if COMPILE_TEST
51311bc26feSRichard Weinberger	depends on HAS_IOMEM
514fd3f1270SMagnus Damm	default SYS_SUPPORTS_SH_CMT
515fd3f1270SMagnus Damm	help
516fd3f1270SMagnus Damm	  This enables build of a clocksource and clockevent driver for
517fd3f1270SMagnus Damm	  the Compare Match Timer (CMT) hardware available in 16/32/48-bit
518fd3f1270SMagnus Damm	  variants on a wide range of Mobile and Automotive SoCs from Renesas.
519fd3f1270SMagnus Damm
520fd3f1270SMagnus Dammconfig SH_TIMER_MTU2
521fd3f1270SMagnus Damm	bool "Renesas MTU2 timer driver" if COMPILE_TEST
52211bc26feSRichard Weinberger	depends on HAS_IOMEM
523fd3f1270SMagnus Damm	default SYS_SUPPORTS_SH_MTU2
524fd3f1270SMagnus Damm	help
525fd3f1270SMagnus Damm	  This enables build of a clockevent driver for the Multi-Function
5267e139187SKuninori Morimoto	  Timer Pulse Unit 2 (MTU2) hardware available on SoCs from Renesas.
52706293463SRandy Dunlap	  This hardware comes with 16-bit timer registers.
528fd3f1270SMagnus Damm
529fb6002a8SChris Brandtconfig RENESAS_OSTM
530a2807f65SBiju Das	bool "Renesas OSTM timer driver"
531a2807f65SBiju Das	depends on ARCH_RENESAS || COMPILE_TEST
532fb6002a8SChris Brandt	select CLKSRC_MMIO
53322731423SGeert Uytterhoeven	select TIMER_OF
534fb6002a8SChris Brandt	help
535fb6002a8SChris Brandt	  Enables the support for the Renesas OSTM.
536fb6002a8SChris Brandt
537fd3f1270SMagnus Dammconfig SH_TIMER_TMU
538fd3f1270SMagnus Damm	bool "Renesas TMU timer driver" if COMPILE_TEST
53911bc26feSRichard Weinberger	depends on HAS_IOMEM
540fd3f1270SMagnus Damm	default SYS_SUPPORTS_SH_TMU
541fd3f1270SMagnus Damm	help
542fd3f1270SMagnus Damm	  This enables build of a clocksource and clockevent driver for
543fd3f1270SMagnus Damm	  the 32-bit Timer Unit (TMU) hardware available on a wide range
544fd3f1270SMagnus Damm	  SoCs from Renesas.
545fd3f1270SMagnus Damm
546fd3f1270SMagnus Dammconfig EM_TIMER_STI
547fd3f1270SMagnus Damm	bool "Renesas STI timer driver" if COMPILE_TEST
5482f8a26c1SArnd Bergmann	depends on HAS_IOMEM
549fd3f1270SMagnus Damm	default SYS_SUPPORTS_EM_STI
550fd3f1270SMagnus Damm	help
551fd3f1270SMagnus Damm	  This enables build of a clocksource and clockevent driver for
552fd3f1270SMagnus Damm	  the 48-bit System Timer (STI) hardware available on a SoCs
553fd3f1270SMagnus Damm	  such as EMEV2 from former NEC Electronics.
554dfc25e45SLinus Torvalds
5553f8e8ceeSKumar Galaconfig CLKSRC_QCOM
5563dc0e9f6SDaniel Lezcano	bool "Qualcomm MSM timer" if COMPILE_TEST
5573dc0e9f6SDaniel Lezcano	depends on ARM
558bb0eb050SDaniel Lezcano	select TIMER_OF
5593dc0e9f6SDaniel Lezcano	help
5603dc0e9f6SDaniel Lezcano	  This enables the clocksource and the per CPU clockevent driver for the
5613dc0e9f6SDaniel Lezcano	  Qualcomm SoCs.
562220e2a8dSPawel Moll
563220e2a8dSPawel Mollconfig CLKSRC_VERSATILE
5645cc87a4dSDaniel Lezcano	bool "ARM Versatile (Express) reference platforms clock source" if COMPILE_TEST
56577f6c0b8SArnd Bergmann	depends on GENERIC_SCHED_CLOCK
566bb0eb050SDaniel Lezcano	select TIMER_OF
567bfed0edeSRob Herring	default y if (ARCH_VEXPRESS || ARCH_VERSATILE) && ARM
568220e2a8dSPawel Moll	help
569220e2a8dSPawel Moll	  This option enables clock source based on free running
570220e2a8dSPawel Moll	  counter available in the "System Registers" block of
571bfed0edeSRob Herring	  ARM Versatile and Versatile Express reference platforms.
57258394271SJean Delvare
573fa5635a2SAndrew Brestickerconfig CLKSRC_MIPS_GIC
574fa5635a2SAndrew Bresticker	bool
575fa5635a2SAndrew Bresticker	depends on MIPS_GIC
5767d7de1a6SSerge Semin	select CLOCKSOURCE_WATCHDOG
577bb0eb050SDaniel Lezcano	select TIMER_OF
578fa5635a2SAndrew Bresticker
579e074ff86SDmitry Eremin-Solenikovconfig CLKSRC_PXA
5805ae996cbSDaniel Lezcano	bool "Clocksource for PXA or SA-11x0 platform" if COMPILE_TEST
581d7023e62SRichard Weinberger	depends on HAS_IOMEM
5825ae996cbSDaniel Lezcano	select CLKSRC_MMIO
583e074ff86SDmitry Eremin-Solenikov	help
584e074ff86SDmitry Eremin-Solenikov	  This enables OST0 support available on PXA and SA-11x0
585e074ff86SDmitry Eremin-Solenikov	  platforms.
586618b902dSYoshinori Sato
587bea5af41SShawn Guoconfig CLKSRC_IMX_GPT
588bea5af41SShawn Guo	bool "Clocksource using i.MX GPT" if COMPILE_TEST
5892f4574ddSArnd Bergmann	depends on (ARM || ARM64) && HAVE_CLK
590bea5af41SShawn Guo	select CLKSRC_MMIO
591bea5af41SShawn Guo
592059ab7b8SDong Aishengconfig CLKSRC_IMX_TPM
593059ab7b8SDong Aisheng	bool "Clocksource using i.MX TPM" if COMPILE_TEST
5942f4574ddSArnd Bergmann	depends on (ARM || ARM64) && HAVE_CLK
595059ab7b8SDong Aisheng	select CLKSRC_MMIO
596a6d0812aSAnson Huang	select TIMER_OF
597059ab7b8SDong Aisheng	help
598059ab7b8SDong Aisheng	  Enable this option to use IMX Timer/PWM Module (TPM) timer as
599059ab7b8SDong Aisheng	  clocksource.
600059ab7b8SDong Aisheng
6017117a44bSBai Pingconfig TIMER_IMX_SYS_CTR
6027117a44bSBai Ping	bool "i.MX system counter timer" if COMPILE_TEST
6037117a44bSBai Ping	select TIMER_OF
6047117a44bSBai Ping	help
6057117a44bSBai Ping	  Enable this option to use i.MX system counter timer as a
6067117a44bSBai Ping	  clockevent.
6077117a44bSBai Ping
608*e738521aSKeguang Zhangconfig CLKSRC_LOONGSON1_PWM
609*e738521aSKeguang Zhang	bool "Clocksource using Loongson1 PWM"
610*e738521aSKeguang Zhang	depends on MACH_LOONGSON32 || COMPILE_TEST
611*e738521aSKeguang Zhang	select MIPS_EXTERNAL_TIMER
612*e738521aSKeguang Zhang	select TIMER_OF
613*e738521aSKeguang Zhang	help
614*e738521aSKeguang Zhang	  Enable this option to use Loongson1 PWM timer as clocksource
615*e738521aSKeguang Zhang	  instead of the performance counter.
616*e738521aSKeguang Zhang
61770bef01cSLee Jonesconfig CLKSRC_ST_LPC
618baacaf83SDaniel Lezcano	bool "Low power clocksource found in the LPC" if COMPILE_TEST
619bb0eb050SDaniel Lezcano	select TIMER_OF if OF
620863ee050SRichard Weinberger	depends on HAS_IOMEM
6212be6d9bfSArnd Bergmann	select CLKSRC_MMIO
62270bef01cSLee Jones	help
62370bef01cSLee Jones	  Enable this option to use the Low Power controller timer
62470bef01cSLee Jones	  as clocksource.
62570bef01cSLee Jones
6265184f4bfSNick Hawkinsconfig GXP_TIMER
6275184f4bfSNick Hawkins	bool "GXP timer driver" if COMPILE_TEST && !ARCH_HPE
6285184f4bfSNick Hawkins	default ARCH_HPE
6295184f4bfSNick Hawkins	select TIMER_OF if OF
6305184f4bfSNick Hawkins	help
6315184f4bfSNick Hawkins	  Provides a driver for the timer control found on HPE
6325184f4bfSNick Hawkins	  GXP SOCs. This is required for all GXP SOCs.
6335184f4bfSNick Hawkins
63462b01943SPalmer Dabbeltconfig RISCV_TIMER
6352bc3fc87SAnup Patel	bool "Timer for the RISC-V platform" if COMPILE_TEST
636ab310544SKefeng Wang	depends on GENERIC_SCHED_CLOCK && RISCV && RISCV_SBI
63762b01943SPalmer Dabbelt	select TIMER_PROBE
63862b01943SPalmer Dabbelt	select TIMER_OF
63962b01943SPalmer Dabbelt	help
64062b01943SPalmer Dabbelt	  This enables the per-hart timer built into all RISC-V systems, which
64162b01943SPalmer Dabbelt	  is accessed via both the SBI and the rdcycle instruction.  This is
64262b01943SPalmer Dabbelt	  required for all RISC-V systems.
64362b01943SPalmer Dabbelt
6442ac6795fSAnup Patelconfig CLINT_TIMER
6452ac6795fSAnup Patel	bool "CLINT Timer for the RISC-V platform" if COMPILE_TEST
6462ac6795fSAnup Patel	depends on GENERIC_SCHED_CLOCK && RISCV
6472ac6795fSAnup Patel	select TIMER_PROBE
6482ac6795fSAnup Patel	select TIMER_OF
6492ac6795fSAnup Patel	help
6502ac6795fSAnup Patel	  This option enables the CLINT timer for RISC-V systems.  The CLINT
6512ac6795fSAnup Patel	  driver is usually used for NoMMU RISC-V systems.
6522ac6795fSAnup Patel
653a7ad38b0SGuo Renconfig CSKY_MP_TIMER
654a7ad38b0SGuo Ren	bool "SMP Timer for the C-SKY platform" if COMPILE_TEST
655a7ad38b0SGuo Ren	depends on CSKY
656a7ad38b0SGuo Ren	select TIMER_OF
657a7ad38b0SGuo Ren	help
658a7ad38b0SGuo Ren	  Say yes here to enable C-SKY SMP timer driver used for C-SKY SMP
659a7ad38b0SGuo Ren	  system.
66006293463SRandy Dunlap	  csky,mptimer is not only used in SMP system, it also could be used in
66106293463SRandy Dunlap	  single core system. It's not a mmio reg and it uses mtcr/mfcr instruction.
662a7ad38b0SGuo Ren
66333745c3cSGuo Renconfig GX6605S_TIMER
66433745c3cSGuo Ren	bool "Gx6605s SOC system timer driver" if COMPILE_TEST
66533745c3cSGuo Ren	depends on CSKY
66633745c3cSGuo Ren	select CLKSRC_MMIO
66733745c3cSGuo Ren	select TIMER_OF
66833745c3cSGuo Ren	help
66933745c3cSGuo Ren	  This option enables support for gx6605s SOC's timer.
67033745c3cSGuo Ren
671b58f28f3SSugaya Taichiconfig MILBEAUT_TIMER
672b58f28f3SSugaya Taichi	bool "Milbeaut timer driver" if COMPILE_TEST
673b58f28f3SSugaya Taichi	depends on OF
674b58f28f3SSugaya Taichi	depends on ARM
675b58f28f3SSugaya Taichi	select TIMER_OF
676b58f28f3SSugaya Taichi	select CLKSRC_MMIO
677b58f28f3SSugaya Taichi	help
678b58f28f3SSugaya Taichi	  Enables the support for Milbeaut timer driver.
679b58f28f3SSugaya Taichi
6805fc1f93fSRomain Perierconfig MSC313E_TIMER
6815fc1f93fSRomain Perier	bool "MSC313E timer driver" if COMPILE_TEST
6825fc1f93fSRomain Perier	select TIMER_OF
6835fc1f93fSRomain Perier	select CLKSRC_MMIO
6845fc1f93fSRomain Perier	help
6855fc1f93fSRomain Perier	  Enables support for the MStar MSC313E timer driver.
6865fc1f93fSRomain Perier	  This provides access to multiple interrupt generating
6875fc1f93fSRomain Perier	  programmable 32-bit free running incrementing counters.
6885fc1f93fSRomain Perier
68934e93683SPaul Cercueilconfig INGENIC_TIMER
69034e93683SPaul Cercueil	bool "Clocksource/timer using the TCU in Ingenic JZ SoCs"
69134e93683SPaul Cercueil	default MACH_INGENIC
69234e93683SPaul Cercueil	depends on MIPS || COMPILE_TEST
69334e93683SPaul Cercueil	depends on COMMON_CLK
69434e93683SPaul Cercueil	select MFD_SYSCON
69534e93683SPaul Cercueil	select TIMER_OF
69634e93683SPaul Cercueil	select IRQ_DOMAIN
69734e93683SPaul Cercueil	help
69834e93683SPaul Cercueil	  Support for the timer/counter unit of the Ingenic JZ SoCs.
69934e93683SPaul Cercueil
7005ecafc12S周琰杰 (Zhou Yanjie)config INGENIC_SYSOST
7015ecafc12S周琰杰 (Zhou Yanjie)	bool "Clocksource/timer using the SYSOST in Ingenic X SoCs"
7025ecafc12S周琰杰 (Zhou Yanjie)	depends on MIPS || COMPILE_TEST
7035ecafc12S周琰杰 (Zhou Yanjie)	depends on COMMON_CLK
7045ecafc12S周琰杰 (Zhou Yanjie)	select MFD_SYSCON
7055ecafc12S周琰杰 (Zhou Yanjie)	select TIMER_OF
7065ecafc12S周琰杰 (Zhou Yanjie)	select IRQ_DOMAIN
7075ecafc12S周琰杰 (Zhou Yanjie)	help
7085ecafc12S周琰杰 (Zhou Yanjie)	  Support for the SYSOST of the Ingenic X Series SoCs.
7095ecafc12S周琰杰 (Zhou Yanjie)
710ca7b72b5SMaarten ter Huurneconfig INGENIC_OST
7115ecafc12S周琰杰 (Zhou Yanjie)	bool "Clocksource using the OST in Ingenic JZ SoCs"
712ca7b72b5SMaarten ter Huurne	depends on MIPS || COMPILE_TEST
713ca7b72b5SMaarten ter Huurne	depends on COMMON_CLK
714ca7b72b5SMaarten ter Huurne	select MFD_SYSCON
715ca7b72b5SMaarten ter Huurne	help
716ca7b72b5SMaarten ter Huurne	  Support for the Operating System Timer of the Ingenic JZ SoCs.
717ca7b72b5SMaarten ter Huurne
718625022a5SClaudiu Bezneaconfig MICROCHIP_PIT64B
719625022a5SClaudiu Beznea	bool "Microchip PIT64B support"
720d19c8b2eSClaudiu Beznea	depends on OF && ARM
72125259f7aSMichael Ellerman	select TIMER_OF
722625022a5SClaudiu Beznea	help
723625022a5SClaudiu Beznea	  This option enables Microchip PIT64B timer for Atmel
724625022a5SClaudiu Beznea	  based system. It supports the oneshot, the periodic
725625022a5SClaudiu Beznea	  modes and high resolution. It is used as a clocksource
726625022a5SClaudiu Beznea	  and a clockevent.
727625022a5SClaudiu Beznea
728c92e7ef1SLaurent Vivierconfig GOLDFISH_TIMER
729c92e7ef1SLaurent Vivier	bool "Clocksource using goldfish-rtc"
730c92e7ef1SLaurent Vivier	depends on M68K || COMPILE_TEST
731c92e7ef1SLaurent Vivier	depends on RTC_DRV_GOLDFISH
732c92e7ef1SLaurent Vivier	help
733c92e7ef1SLaurent Vivier	  Support for the timer/counter of goldfish-rtc
734c92e7ef1SLaurent Vivier
73558394271SJean Delvareendmenu
736