xref: /openbmc/linux/drivers/clocksource/Kconfig (revision 110a2535)
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
161*110a2535SDaniel 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
4378602a80bSKrzysztof Kozlowski	depends on 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
4448602a80bSKrzysztof Kozlowski	depends on ARCH_EXYNOS || ARCH_S3C24XX || 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
46489355274SNeil Armstrongconfig OXNAS_RPS_TIMER
46589355274SNeil Armstrong	bool "Oxford Semiconductor OXNAS RPS Timers driver" if COMPILE_TEST
466bb0eb050SDaniel Lezcano	select TIMER_OF
46789355274SNeil Armstrong	select CLKSRC_MMIO
46889355274SNeil Armstrong	help
46989355274SNeil Armstrong	  This enables support for the Oxford Semiconductor OXNAS RPS timers.
47089355274SNeil Armstrong
471fd3f1270SMagnus Dammconfig SYS_SUPPORTS_SH_CMT
472fd3f1270SMagnus Damm	bool
473fd3f1270SMagnus Damm
474ecb3530dSMatthias Bruggerconfig MTK_TIMER
475fbca9eabSDaniel Lezcano	bool "Mediatek timer driver" if COMPILE_TEST
4762f8a26c1SArnd Bergmann	depends on HAS_IOMEM
477bb0eb050SDaniel Lezcano	select TIMER_OF
478ecb3530dSMatthias Brugger	select CLKSRC_MMIO
479fbca9eabSDaniel Lezcano	help
480fbca9eabSDaniel Lezcano	  Support for Mediatek timer driver.
481ecb3530dSMatthias Brugger
482067bc914SBaolin Wangconfig SPRD_TIMER
4838a1ece26SChunyan Zhang	bool "Spreadtrum timer driver" if EXPERT
484067bc914SBaolin Wang	depends on HAS_IOMEM
4858a1ece26SChunyan Zhang	depends on (ARCH_SPRD || COMPILE_TEST)
4868a1ece26SChunyan Zhang	default ARCH_SPRD
487067bc914SBaolin Wang	select TIMER_OF
488067bc914SBaolin Wang	help
489067bc914SBaolin Wang	  Enables support for the Spreadtrum timer driver.
490067bc914SBaolin Wang
491fd3f1270SMagnus Dammconfig SYS_SUPPORTS_SH_MTU2
492fd3f1270SMagnus Damm	bool
493fd3f1270SMagnus Damm
494fd3f1270SMagnus Dammconfig SYS_SUPPORTS_SH_TMU
495fd3f1270SMagnus Damm	bool
496fd3f1270SMagnus Damm
497fd3f1270SMagnus Dammconfig SYS_SUPPORTS_EM_STI
498fd3f1270SMagnus Damm	bool
499fd3f1270SMagnus Damm
5009995f4f1SRich Felkerconfig CLKSRC_JCORE_PIT
5019995f4f1SRich Felker	bool "J-Core PIT timer driver" if COMPILE_TEST
5029995f4f1SRich Felker	depends on OF
5039995f4f1SRich Felker	depends on HAS_IOMEM
5049995f4f1SRich Felker	select CLKSRC_MMIO
5059995f4f1SRich Felker	help
5069995f4f1SRich Felker	  This enables build of clocksource and clockevent driver for
5079995f4f1SRich Felker	  the integrated PIT in the J-Core synthesizable, open source SoC.
5089995f4f1SRich Felker
509fd3f1270SMagnus Dammconfig SH_TIMER_CMT
510fd3f1270SMagnus Damm	bool "Renesas CMT timer driver" if COMPILE_TEST
51111bc26feSRichard Weinberger	depends on HAS_IOMEM
512fd3f1270SMagnus Damm	default SYS_SUPPORTS_SH_CMT
513fd3f1270SMagnus Damm	help
514fd3f1270SMagnus Damm	  This enables build of a clocksource and clockevent driver for
515fd3f1270SMagnus Damm	  the Compare Match Timer (CMT) hardware available in 16/32/48-bit
516fd3f1270SMagnus Damm	  variants on a wide range of Mobile and Automotive SoCs from Renesas.
517fd3f1270SMagnus Damm
518fd3f1270SMagnus Dammconfig SH_TIMER_MTU2
519fd3f1270SMagnus Damm	bool "Renesas MTU2 timer driver" if COMPILE_TEST
52011bc26feSRichard Weinberger	depends on HAS_IOMEM
521fd3f1270SMagnus Damm	default SYS_SUPPORTS_SH_MTU2
522fd3f1270SMagnus Damm	help
523fd3f1270SMagnus Damm	  This enables build of a clockevent driver for the Multi-Function
5247e139187SKuninori Morimoto	  Timer Pulse Unit 2 (MTU2) hardware available on SoCs from Renesas.
52506293463SRandy Dunlap	  This hardware comes with 16-bit timer registers.
526fd3f1270SMagnus Damm
527fb6002a8SChris Brandtconfig RENESAS_OSTM
528a2807f65SBiju Das	bool "Renesas OSTM timer driver"
529a2807f65SBiju Das	depends on ARCH_RENESAS || COMPILE_TEST
530fb6002a8SChris Brandt	select CLKSRC_MMIO
53122731423SGeert Uytterhoeven	select TIMER_OF
532fb6002a8SChris Brandt	help
533fb6002a8SChris Brandt	  Enables the support for the Renesas OSTM.
534fb6002a8SChris Brandt
535fd3f1270SMagnus Dammconfig SH_TIMER_TMU
536fd3f1270SMagnus Damm	bool "Renesas TMU timer driver" if COMPILE_TEST
53711bc26feSRichard Weinberger	depends on HAS_IOMEM
538fd3f1270SMagnus Damm	default SYS_SUPPORTS_SH_TMU
539fd3f1270SMagnus Damm	help
540fd3f1270SMagnus Damm	  This enables build of a clocksource and clockevent driver for
541fd3f1270SMagnus Damm	  the 32-bit Timer Unit (TMU) hardware available on a wide range
542fd3f1270SMagnus Damm	  SoCs from Renesas.
543fd3f1270SMagnus Damm
544fd3f1270SMagnus Dammconfig EM_TIMER_STI
545fd3f1270SMagnus Damm	bool "Renesas STI timer driver" if COMPILE_TEST
5462f8a26c1SArnd Bergmann	depends on HAS_IOMEM
547fd3f1270SMagnus Damm	default SYS_SUPPORTS_EM_STI
548fd3f1270SMagnus Damm	help
549fd3f1270SMagnus Damm	  This enables build of a clocksource and clockevent driver for
550fd3f1270SMagnus Damm	  the 48-bit System Timer (STI) hardware available on a SoCs
551fd3f1270SMagnus Damm	  such as EMEV2 from former NEC Electronics.
552dfc25e45SLinus Torvalds
5533f8e8ceeSKumar Galaconfig CLKSRC_QCOM
5543dc0e9f6SDaniel Lezcano	bool "Qualcomm MSM timer" if COMPILE_TEST
5553dc0e9f6SDaniel Lezcano	depends on ARM
556bb0eb050SDaniel Lezcano	select TIMER_OF
5573dc0e9f6SDaniel Lezcano	help
5583dc0e9f6SDaniel Lezcano	  This enables the clocksource and the per CPU clockevent driver for the
5593dc0e9f6SDaniel Lezcano	  Qualcomm SoCs.
560220e2a8dSPawel Moll
561220e2a8dSPawel Mollconfig CLKSRC_VERSATILE
5625cc87a4dSDaniel Lezcano	bool "ARM Versatile (Express) reference platforms clock source" if COMPILE_TEST
56377f6c0b8SArnd Bergmann	depends on GENERIC_SCHED_CLOCK
564bb0eb050SDaniel Lezcano	select TIMER_OF
565bfed0edeSRob Herring	default y if (ARCH_VEXPRESS || ARCH_VERSATILE) && ARM
566220e2a8dSPawel Moll	help
567220e2a8dSPawel Moll	  This option enables clock source based on free running
568220e2a8dSPawel Moll	  counter available in the "System Registers" block of
569bfed0edeSRob Herring	  ARM Versatile and Versatile Express reference platforms.
57058394271SJean Delvare
571fa5635a2SAndrew Brestickerconfig CLKSRC_MIPS_GIC
572fa5635a2SAndrew Bresticker	bool
573fa5635a2SAndrew Bresticker	depends on MIPS_GIC
5747d7de1a6SSerge Semin	select CLOCKSOURCE_WATCHDOG
575bb0eb050SDaniel Lezcano	select TIMER_OF
576fa5635a2SAndrew Bresticker
577e074ff86SDmitry Eremin-Solenikovconfig CLKSRC_PXA
5785ae996cbSDaniel Lezcano	bool "Clocksource for PXA or SA-11x0 platform" if COMPILE_TEST
579d7023e62SRichard Weinberger	depends on HAS_IOMEM
5805ae996cbSDaniel Lezcano	select CLKSRC_MMIO
581e074ff86SDmitry Eremin-Solenikov	help
582e074ff86SDmitry Eremin-Solenikov	  This enables OST0 support available on PXA and SA-11x0
583e074ff86SDmitry Eremin-Solenikov	  platforms.
584618b902dSYoshinori Sato
58597a23bebSDaniel Lezcanoconfig H8300_TMR8
58646e7c3c6SDaniel Lezcano	bool "Clockevent timer for the H8300 platform" if COMPILE_TEST
5872f8a26c1SArnd Bergmann	depends on HAS_IOMEM
58846e7c3c6SDaniel Lezcano	help
58946e7c3c6SDaniel Lezcano	  This enables the 8 bits timer for the H8300 platform.
59097a23bebSDaniel Lezcano
591618b902dSYoshinori Satoconfig H8300_TMR16
59246e7c3c6SDaniel Lezcano	bool "Clockevent timer for the H83069 platform" if COMPILE_TEST
5932f8a26c1SArnd Bergmann	depends on HAS_IOMEM
59446e7c3c6SDaniel Lezcano	help
59546e7c3c6SDaniel Lezcano	  This enables the 16 bits timer for the H8300 platform with the
59606293463SRandy Dunlap	  H83069 CPU.
597618b902dSYoshinori Sato
598618b902dSYoshinori Satoconfig H8300_TPU
59946e7c3c6SDaniel Lezcano	bool "Clocksource for the H8300 platform" if COMPILE_TEST
6002f8a26c1SArnd Bergmann	depends on HAS_IOMEM
60146e7c3c6SDaniel Lezcano	help
60246e7c3c6SDaniel Lezcano	  This enables the clocksource for the H8300 platform with the
60306293463SRandy Dunlap	  H8S2678 CPU.
604618b902dSYoshinori Sato
605bea5af41SShawn Guoconfig CLKSRC_IMX_GPT
606bea5af41SShawn Guo	bool "Clocksource using i.MX GPT" if COMPILE_TEST
6072f4574ddSArnd Bergmann	depends on (ARM || ARM64) && HAVE_CLK
608bea5af41SShawn Guo	select CLKSRC_MMIO
609bea5af41SShawn Guo
610059ab7b8SDong Aishengconfig CLKSRC_IMX_TPM
611059ab7b8SDong Aisheng	bool "Clocksource using i.MX TPM" if COMPILE_TEST
6122f4574ddSArnd Bergmann	depends on (ARM || ARM64) && HAVE_CLK
613059ab7b8SDong Aisheng	select CLKSRC_MMIO
614a6d0812aSAnson Huang	select TIMER_OF
615059ab7b8SDong Aisheng	help
616059ab7b8SDong Aisheng	  Enable this option to use IMX Timer/PWM Module (TPM) timer as
617059ab7b8SDong Aisheng	  clocksource.
618059ab7b8SDong Aisheng
6197117a44bSBai Pingconfig TIMER_IMX_SYS_CTR
6207117a44bSBai Ping	bool "i.MX system counter timer" if COMPILE_TEST
6217117a44bSBai Ping	select TIMER_OF
6227117a44bSBai Ping	help
6237117a44bSBai Ping	  Enable this option to use i.MX system counter timer as a
6247117a44bSBai Ping	  clockevent.
6257117a44bSBai Ping
62670bef01cSLee Jonesconfig CLKSRC_ST_LPC
627baacaf83SDaniel Lezcano	bool "Low power clocksource found in the LPC" if COMPILE_TEST
628bb0eb050SDaniel Lezcano	select TIMER_OF if OF
629863ee050SRichard Weinberger	depends on HAS_IOMEM
6302be6d9bfSArnd Bergmann	select CLKSRC_MMIO
63170bef01cSLee Jones	help
63270bef01cSLee Jones	  Enable this option to use the Low Power controller timer
63370bef01cSLee Jones	  as clocksource.
63470bef01cSLee Jones
63562b01943SPalmer Dabbeltconfig RISCV_TIMER
6362bc3fc87SAnup Patel	bool "Timer for the RISC-V platform" if COMPILE_TEST
637ab310544SKefeng Wang	depends on GENERIC_SCHED_CLOCK && RISCV && RISCV_SBI
63862b01943SPalmer Dabbelt	select TIMER_PROBE
63962b01943SPalmer Dabbelt	select TIMER_OF
64062b01943SPalmer Dabbelt	help
64162b01943SPalmer Dabbelt	  This enables the per-hart timer built into all RISC-V systems, which
64262b01943SPalmer Dabbelt	  is accessed via both the SBI and the rdcycle instruction.  This is
64362b01943SPalmer Dabbelt	  required for all RISC-V systems.
64462b01943SPalmer Dabbelt
6452ac6795fSAnup Patelconfig CLINT_TIMER
6462ac6795fSAnup Patel	bool "CLINT Timer for the RISC-V platform" if COMPILE_TEST
6472ac6795fSAnup Patel	depends on GENERIC_SCHED_CLOCK && RISCV
6482ac6795fSAnup Patel	select TIMER_PROBE
6492ac6795fSAnup Patel	select TIMER_OF
6502ac6795fSAnup Patel	help
6512ac6795fSAnup Patel	  This option enables the CLINT timer for RISC-V systems.  The CLINT
6522ac6795fSAnup Patel	  driver is usually used for NoMMU RISC-V systems.
6532ac6795fSAnup Patel
654a7ad38b0SGuo Renconfig CSKY_MP_TIMER
655a7ad38b0SGuo Ren	bool "SMP Timer for the C-SKY platform" if COMPILE_TEST
656a7ad38b0SGuo Ren	depends on CSKY
657a7ad38b0SGuo Ren	select TIMER_OF
658a7ad38b0SGuo Ren	help
659a7ad38b0SGuo Ren	  Say yes here to enable C-SKY SMP timer driver used for C-SKY SMP
660a7ad38b0SGuo Ren	  system.
66106293463SRandy Dunlap	  csky,mptimer is not only used in SMP system, it also could be used in
66206293463SRandy Dunlap	  single core system. It's not a mmio reg and it uses mtcr/mfcr instruction.
663a7ad38b0SGuo Ren
66433745c3cSGuo Renconfig GX6605S_TIMER
66533745c3cSGuo Ren	bool "Gx6605s SOC system timer driver" if COMPILE_TEST
66633745c3cSGuo Ren	depends on CSKY
66733745c3cSGuo Ren	select CLKSRC_MMIO
66833745c3cSGuo Ren	select TIMER_OF
66933745c3cSGuo Ren	help
67033745c3cSGuo Ren	  This option enables support for gx6605s SOC's timer.
67133745c3cSGuo Ren
672b58f28f3SSugaya Taichiconfig MILBEAUT_TIMER
673b58f28f3SSugaya Taichi	bool "Milbeaut timer driver" if COMPILE_TEST
674b58f28f3SSugaya Taichi	depends on OF
675b58f28f3SSugaya Taichi	depends on ARM
676b58f28f3SSugaya Taichi	select TIMER_OF
677b58f28f3SSugaya Taichi	select CLKSRC_MMIO
678b58f28f3SSugaya Taichi	help
679b58f28f3SSugaya Taichi	  Enables the support for Milbeaut timer driver.
680b58f28f3SSugaya Taichi
6815fc1f93fSRomain Perierconfig MSC313E_TIMER
6825fc1f93fSRomain Perier	bool "MSC313E timer driver" if COMPILE_TEST
6835fc1f93fSRomain Perier	select TIMER_OF
6845fc1f93fSRomain Perier	select CLKSRC_MMIO
6855fc1f93fSRomain Perier	help
6865fc1f93fSRomain Perier	  Enables support for the MStar MSC313E timer driver.
6875fc1f93fSRomain Perier	  This provides access to multiple interrupt generating
6885fc1f93fSRomain Perier	  programmable 32-bit free running incrementing counters.
6895fc1f93fSRomain Perier
69034e93683SPaul Cercueilconfig INGENIC_TIMER
69134e93683SPaul Cercueil	bool "Clocksource/timer using the TCU in Ingenic JZ SoCs"
69234e93683SPaul Cercueil	default MACH_INGENIC
69334e93683SPaul Cercueil	depends on MIPS || COMPILE_TEST
69434e93683SPaul Cercueil	depends on COMMON_CLK
69534e93683SPaul Cercueil	select MFD_SYSCON
69634e93683SPaul Cercueil	select TIMER_OF
69734e93683SPaul Cercueil	select IRQ_DOMAIN
69834e93683SPaul Cercueil	help
69934e93683SPaul Cercueil	  Support for the timer/counter unit of the Ingenic JZ SoCs.
70034e93683SPaul Cercueil
7015ecafc12S周琰杰 (Zhou Yanjie)config INGENIC_SYSOST
7025ecafc12S周琰杰 (Zhou Yanjie)	bool "Clocksource/timer using the SYSOST in Ingenic X SoCs"
7035ecafc12S周琰杰 (Zhou Yanjie)	depends on MIPS || COMPILE_TEST
7045ecafc12S周琰杰 (Zhou Yanjie)	depends on COMMON_CLK
7055ecafc12S周琰杰 (Zhou Yanjie)	select MFD_SYSCON
7065ecafc12S周琰杰 (Zhou Yanjie)	select TIMER_OF
7075ecafc12S周琰杰 (Zhou Yanjie)	select IRQ_DOMAIN
7085ecafc12S周琰杰 (Zhou Yanjie)	help
7095ecafc12S周琰杰 (Zhou Yanjie)	  Support for the SYSOST of the Ingenic X Series SoCs.
7105ecafc12S周琰杰 (Zhou Yanjie)
711ca7b72b5SMaarten ter Huurneconfig INGENIC_OST
7125ecafc12S周琰杰 (Zhou Yanjie)	bool "Clocksource using the OST in Ingenic JZ SoCs"
713ca7b72b5SMaarten ter Huurne	depends on MIPS || COMPILE_TEST
714ca7b72b5SMaarten ter Huurne	depends on COMMON_CLK
715ca7b72b5SMaarten ter Huurne	select MFD_SYSCON
716ca7b72b5SMaarten ter Huurne	help
717ca7b72b5SMaarten ter Huurne	  Support for the Operating System Timer of the Ingenic JZ SoCs.
718ca7b72b5SMaarten ter Huurne
719625022a5SClaudiu Bezneaconfig MICROCHIP_PIT64B
720625022a5SClaudiu Beznea	bool "Microchip PIT64B support"
721625022a5SClaudiu Beznea	depends on OF || COMPILE_TEST
72225259f7aSMichael Ellerman	select TIMER_OF
723625022a5SClaudiu Beznea	help
724625022a5SClaudiu Beznea	  This option enables Microchip PIT64B timer for Atmel
725625022a5SClaudiu Beznea	  based system. It supports the oneshot, the periodic
726625022a5SClaudiu Beznea	  modes and high resolution. It is used as a clocksource
727625022a5SClaudiu Beznea	  and a clockevent.
728625022a5SClaudiu Beznea
72958394271SJean Delvareendmenu
730