xref: /openbmc/linux/drivers/clocksource/Kconfig (revision 067bc914)
158394271SJean Delvaremenu "Clock Source drivers"
22f8a26c1SArnd Bergmann	depends on GENERIC_CLOCKEVENTS
358394271SJean Delvare
4bb0eb050SDaniel Lezcanoconfig TIMER_OF
5ae278a93SStephen Warren	bool
6bb0eb050SDaniel Lezcano	select TIMER_PROBE
7aad83b15SMarc Zyngier
8fa1bffabSDaniel Lezcanoconfig TIMER_ACPI
9aad83b15SMarc Zyngier	bool
10bb0eb050SDaniel Lezcano	select TIMER_PROBE
11aad83b15SMarc Zyngier
12bb0eb050SDaniel Lezcanoconfig TIMER_PROBE
13aad83b15SMarc Zyngier	bool
14ae278a93SStephen Warren
1589c0b8e2SRussell Kingconfig CLKSRC_I8253
1689c0b8e2SRussell King	bool
17442c8176SRussell King
18e6220bdcSThomas Gleixnerconfig CLKEVT_I8253
19e6220bdcSThomas Gleixner	bool
20e6220bdcSThomas Gleixner
2115f304b6SRalf Baechleconfig I8253_LOCK
2215f304b6SRalf Baechle	bool
2315f304b6SRalf Baechle
2415f304b6SRalf Baechleconfig CLKBLD_I8253
25e6220bdcSThomas Gleixner	def_bool y if CLKSRC_I8253 || CLKEVT_I8253 || I8253_LOCK
2615f304b6SRalf Baechle
27442c8176SRussell Kingconfig CLKSRC_MMIO
28442c8176SRussell King	bool
2906c3df49SJamie Iles
302ea879a7SDaniel Lezcanoconfig BCM2835_TIMER
312ea879a7SDaniel Lezcano	bool "BCM2835 timer driver" if COMPILE_TEST
322ea879a7SDaniel Lezcano	select CLKSRC_MMIO
332ea879a7SDaniel Lezcano	help
342ea879a7SDaniel Lezcano	  Enables the support for the BCM2835 timer driver.
352ea879a7SDaniel Lezcano
361cad71e3SDaniel Lezcanoconfig BCM_KONA_TIMER
371cad71e3SDaniel Lezcano	bool "BCM mobile timer driver" if COMPILE_TEST
381cad71e3SDaniel Lezcano	select CLKSRC_MMIO
391cad71e3SDaniel Lezcano	help
401cad71e3SDaniel Lezcano	  Enables the support for the BCM Kona mobile timer driver.
411cad71e3SDaniel Lezcano
429b8bb773SBaruch Siachconfig DIGICOLOR_TIMER
43e6c1db13SDaniel Lezcano	bool "Digicolor timer driver" if COMPILE_TEST
442be6d9bfSArnd Bergmann	select CLKSRC_MMIO
45d7023e62SRichard Weinberger	depends on HAS_IOMEM
46e6c1db13SDaniel Lezcano	help
47e6c1db13SDaniel Lezcano	  Enables the support for the digicolor timer driver.
489b8bb773SBaruch Siach
4906c3df49SJamie Ilesconfig DW_APB_TIMER
505b097f6bSDaniel Lezcano	bool "DW APB timer driver" if COMPILE_TEST
515b097f6bSDaniel Lezcano	help
525b097f6bSDaniel Lezcano	  Enables the support for the dw_apb timer.
53489bcceaSMattias Wallin
54cfda5901SDinh Nguyenconfig DW_APB_TIMER_OF
55cfda5901SDinh Nguyen	bool
561b4eca0fSHeiko Stuebner	select DW_APB_TIMER
57bb0eb050SDaniel Lezcano	select TIMER_OF
58cfda5901SDinh Nguyen
59f5bf0ee4SLinus Walleijconfig FTTMR010_TIMER
60f5bf0ee4SLinus Walleij	bool "Faraday Technology timer driver" if COMPILE_TEST
614750535bSLinus Walleij	depends on HAS_IOMEM
624750535bSLinus Walleij	select CLKSRC_MMIO
63bb0eb050SDaniel Lezcano	select TIMER_OF
644750535bSLinus Walleij	select MFD_SYSCON
654750535bSLinus Walleij	help
66f5bf0ee4SLinus Walleij	  Enables support for the Faraday Technology timer block
67f5bf0ee4SLinus Walleij	  FTTMR010.
684750535bSLinus Walleij
69468b8c4cSDaniel Lezcanoconfig ROCKCHIP_TIMER
7040ada2aaSDaniel Lezcano	bool "Rockchip timer driver" if COMPILE_TEST
7140ada2aaSDaniel Lezcano	depends on ARM || ARM64
72bb0eb050SDaniel Lezcano	select TIMER_OF
735e0a39d0SAlexander Kochetkov	select CLKSRC_MMIO
7440ada2aaSDaniel Lezcano	help
7540ada2aaSDaniel Lezcano	  Enables the support for the rockchip timer driver.
76468b8c4cSDaniel Lezcano
776fe9cbd1SGregory CLEMENTconfig ARMADA_370_XP_TIMER
789519e80cSDaniel Lezcano	bool "Armada 370 and XP timer driver" if COMPILE_TEST
799519e80cSDaniel Lezcano	depends on ARM
80bb0eb050SDaniel Lezcano	select TIMER_OF
812be6d9bfSArnd Bergmann	select CLKSRC_MMIO
829519e80cSDaniel Lezcano	help
839519e80cSDaniel Lezcano	  Enables the support for the Armada 370 and XP timer driver.
846fe9cbd1SGregory CLEMENT
85e4a6b378SCarlo Caioneconfig MESON6_TIMER
860b7a7bb7SDaniel Lezcano	bool "Meson6 timer driver" if COMPILE_TEST
877b6b0a45SBeniamino Galvani	select CLKSRC_MMIO
880b7a7bb7SDaniel Lezcano	help
890b7a7bb7SDaniel Lezcano	  Enables the support for the Meson6 timer driver.
90e4a6b378SCarlo Caione
910c1dcfd5SSebastian Hesselbarthconfig ORION_TIMER
92c9165549SDaniel Lezcano	bool "Orion timer driver" if COMPILE_TEST
93c9165549SDaniel Lezcano	depends on ARM
94bb0eb050SDaniel Lezcano	select TIMER_OF
950c1dcfd5SSebastian Hesselbarth	select CLKSRC_MMIO
96c9165549SDaniel Lezcano	help
97c9165549SDaniel Lezcano	  Enables the support for the Orion timer driver
980c1dcfd5SSebastian Hesselbarth
994be78a86SAndreas Färberconfig OWL_TIMER
1004be78a86SAndreas Färber	bool "Owl timer driver" if COMPILE_TEST
1014be78a86SAndreas Färber	select CLKSRC_MMIO
1024be78a86SAndreas Färber	help
1034be78a86SAndreas Färber	  Enables the support for the Actions Semi Owl timer driver.
1044be78a86SAndreas Färber
105119fd635SMaxime Ripardconfig SUN4I_TIMER
106b4fcd48bSDaniel Lezcano	bool "Sun4i timer driver" if COMPILE_TEST
107d7023e62SRichard Weinberger	depends on HAS_IOMEM
10871c568c0SMaxime Ripard	select CLKSRC_MMIO
109239751edSDaniel Lezcano	select TIMER_OF
110b4fcd48bSDaniel Lezcano	help
111b4fcd48bSDaniel Lezcano	  Enables support for the Sun4i timer.
112b2ac5d75SMaxime Ripard
11367905540SMaxime Ripardconfig SUN5I_HSTIMER
114f0c5afb7SDaniel Lezcano	bool "Sun5i timer driver" if COMPILE_TEST
11567905540SMaxime Ripard	select CLKSRC_MMIO
116f0c5afb7SDaniel Lezcano	depends on COMMON_CLK
117f0c5afb7SDaniel Lezcano	help
118f0c5afb7SDaniel Lezcano	  Enables support the Sun5i timer.
11967905540SMaxime Ripard
120910978e7SThierry Redingconfig TEGRA_TIMER
121adce4bc8SDaniel Lezcano	bool "Tegra timer driver" if COMPILE_TEST
1222be6d9bfSArnd Bergmann	select CLKSRC_MMIO
123adce4bc8SDaniel Lezcano	depends on ARM
124adce4bc8SDaniel Lezcano	help
125adce4bc8SDaniel Lezcano	  Enables support for the Tegra driver.
126910978e7SThierry Reding
127ff7ec345STony Priskconfig VT8500_TIMER
128b4bdf7efSDaniel Lezcano	bool "VT8500 timer driver" if COMPILE_TEST
129d7023e62SRichard Weinberger	depends on HAS_IOMEM
130b4bdf7efSDaniel Lezcano	help
131b4bdf7efSDaniel Lezcano	  Enables support for the VT8500 driver.
132ff7ec345STony Prisk
1334f0f234fSMichal Simekconfig CADENCE_TTC_TIMER
13457f49318SDaniel Lezcano	bool "Cadence TTC timer driver" if COMPILE_TEST
13557f49318SDaniel Lezcano	depends on COMMON_CLK
13657f49318SDaniel Lezcano	help
13757f49318SDaniel Lezcano	  Enables support for the cadence ttc driver.
1384f0f234fSMichal Simek
139a8b1b9fcSDaniel Lezcanoconfig ASM9260_TIMER
140b9755841SDaniel Lezcano	bool "ASM9260 timer driver" if COMPILE_TEST
141a8b1b9fcSDaniel Lezcano	select CLKSRC_MMIO
142bb0eb050SDaniel Lezcano	select TIMER_OF
143b9755841SDaniel Lezcano	help
144b9755841SDaniel Lezcano	  Enables support for the ASM9260 timer.
145a8b1b9fcSDaniel Lezcano
146694e33a7SLinus Walleijconfig CLKSRC_NOMADIK_MTU
14770329653SDaniel Lezcano	bool "Nomakdik clocksource driver" if COMPILE_TEST
14870329653SDaniel Lezcano	depends on ARM
149694e33a7SLinus Walleij	select CLKSRC_MMIO
150694e33a7SLinus Walleij	help
151694e33a7SLinus Walleij	  Support for Multi Timer Unit. MTU provides access
152694e33a7SLinus Walleij	  to multiple interrupt generating programmable
153694e33a7SLinus Walleij	  32-bit free running decrementing counters.
154694e33a7SLinus Walleij
155694e33a7SLinus Walleijconfig CLKSRC_NOMADIK_MTU_SCHED_CLOCK
156694e33a7SLinus Walleij	bool
157694e33a7SLinus Walleij	depends on CLKSRC_NOMADIK_MTU
158694e33a7SLinus Walleij	help
159694e33a7SLinus Walleij	  Use the Multi Timer Unit as the sched_clock.
160694e33a7SLinus Walleij
161489bcceaSMattias Wallinconfig CLKSRC_DBX500_PRCMU
1621becd6edSDaniel Lezcano	bool "Clocksource PRCMU Timer" if COMPILE_TEST
163d7023e62SRichard Weinberger	depends on HAS_IOMEM
164489bcceaSMattias Wallin	help
165489bcceaSMattias Wallin	  Use the always on PRCMU Timer as clocksource
166489bcceaSMattias Wallin
167ecf0efdcSDaniel Lezcanoconfig CLPS711X_TIMER
168ecf0efdcSDaniel Lezcano	bool "Cirrus logic timer driver" if COMPILE_TEST
169ecf0efdcSDaniel Lezcano	select CLKSRC_MMIO
170ecf0efdcSDaniel Lezcano	help
171ecf0efdcSDaniel Lezcano	  Enables support for the Cirrus Logic PS711 timer.
172ecf0efdcSDaniel Lezcano
173b56d5d21SDaniel Lezcanoconfig ATLAS7_TIMER
174b56d5d21SDaniel Lezcano	bool "Atlas7 timer driver" if COMPILE_TEST
175b56d5d21SDaniel Lezcano	select CLKSRC_MMIO
176b56d5d21SDaniel Lezcano	help
177b56d5d21SDaniel Lezcano	  Enables support for the Atlas7 timer.
178b56d5d21SDaniel Lezcano
179d81c50a0SDaniel Lezcanoconfig MXS_TIMER
180d81c50a0SDaniel Lezcano	bool "Mxs timer driver" if COMPILE_TEST
181d81c50a0SDaniel Lezcano	select CLKSRC_MMIO
182d81c50a0SDaniel Lezcano	select STMP_DEVICE
183d81c50a0SDaniel Lezcano	help
184d81c50a0SDaniel Lezcano	  Enables support for the Mxs timer.
185d81c50a0SDaniel Lezcano
186f3550d49SDaniel Lezcanoconfig PRIMA2_TIMER
187f3550d49SDaniel Lezcano	bool "Prima2 timer driver" if COMPILE_TEST
188f3550d49SDaniel Lezcano	select CLKSRC_MMIO
189f3550d49SDaniel Lezcano	help
190f3550d49SDaniel Lezcano	  Enables support for the Prima2 timer.
191f3550d49SDaniel Lezcano
19285f98db4SDaniel Lezcanoconfig U300_TIMER
19385f98db4SDaniel Lezcano	bool "U300 timer driver" if COMPILE_TEST
19485f98db4SDaniel Lezcano	depends on ARM
19585f98db4SDaniel Lezcano	select CLKSRC_MMIO
19685f98db4SDaniel Lezcano	help
19785f98db4SDaniel Lezcano	  Enables support for the U300 timer.
19885f98db4SDaniel Lezcano
199d683b9dcSDaniel Lezcanoconfig NSPIRE_TIMER
200d683b9dcSDaniel Lezcano	bool "NSpire timer driver" if COMPILE_TEST
201d683b9dcSDaniel Lezcano	select CLKSRC_MMIO
202d683b9dcSDaniel Lezcano	help
203d683b9dcSDaniel Lezcano	  Enables support for the Nspire timer.
204d683b9dcSDaniel Lezcano
205c12547a0SDaniel Lezcanoconfig KEYSTONE_TIMER
206c12547a0SDaniel Lezcano	bool "Keystone timer driver" if COMPILE_TEST
207c12547a0SDaniel Lezcano	depends on ARM || ARM64
208c12547a0SDaniel Lezcano	select CLKSRC_MMIO
209c12547a0SDaniel Lezcano	help
210c12547a0SDaniel Lezcano	  Enables support for the Keystone timer.
211c12547a0SDaniel Lezcano
212568c0342SDaniel Lezcanoconfig INTEGRATOR_AP_TIMER
213568c0342SDaniel Lezcano	bool "Integrator-ap timer driver" if COMPILE_TEST
214568c0342SDaniel Lezcano	select CLKSRC_MMIO
215568c0342SDaniel Lezcano	help
216568c0342SDaniel Lezcano	  Enables support for the Integrator-ap timer.
217568c0342SDaniel Lezcano
218489bcceaSMattias Wallinconfig CLKSRC_DBX500_PRCMU_SCHED_CLOCK
219489bcceaSMattias Wallin	bool "Clocksource PRCMU Timer sched_clock"
220694e33a7SLinus Walleij	depends on (CLKSRC_DBX500_PRCMU && !CLKSRC_NOMADIK_MTU_SCHED_CLOCK)
221489bcceaSMattias Wallin	default y
222489bcceaSMattias Wallin	help
223489bcceaSMattias Wallin	  Use the always on PRCMU Timer as sched_clock
224985c0679SMarc Zyngier
2259c9b7818SUwe Kleine-Königconfig CLKSRC_EFM32
2269c9b7818SUwe Kleine-König	bool "Clocksource for Energy Micro's EFM32 SoCs" if !ARCH_EFM32
2279c9b7818SUwe Kleine-König	depends on OF && ARM && (ARCH_EFM32 || COMPILE_TEST)
22809ca2757SAxel Lin	select CLKSRC_MMIO
2299c9b7818SUwe Kleine-König	default ARCH_EFM32
2309c9b7818SUwe Kleine-König	help
2319c9b7818SUwe Kleine-König	  Support to use the timers of EFM32 SoCs as clock source and clock
2329c9b7818SUwe Kleine-König	  event device.
2339c9b7818SUwe Kleine-König
234050dd322SJoachim Eastwoodconfig CLKSRC_LPC32XX
235ddcf48c7SDaniel Lezcano	bool "Clocksource for LPC32XX" if COMPILE_TEST
2362f8a26c1SArnd Bergmann	depends on HAS_IOMEM
2371b18fd20SEzequiel Garcia	depends on ARM
238050dd322SJoachim Eastwood	select CLKSRC_MMIO
239bb0eb050SDaniel Lezcano	select TIMER_OF
240ddcf48c7SDaniel Lezcano	help
241ddcf48c7SDaniel Lezcano	  Support for the LPC32XX clocksource.
242050dd322SJoachim Eastwood
24384583983SEzequiel Garciaconfig CLKSRC_PISTACHIO
244dfdb1652SDaniel Lezcano	bool "Clocksource for Pistachio SoC" if COMPILE_TEST
2452f8a26c1SArnd Bergmann	depends on HAS_IOMEM
246bb0eb050SDaniel Lezcano	select TIMER_OF
247dfdb1652SDaniel Lezcano	help
248dfdb1652SDaniel Lezcano	  Enables the clocksource for the Pistachio SoC.
24984583983SEzequiel Garcia
250fe851f56SFelipe Balbiconfig CLKSRC_TI_32K
251fe851f56SFelipe Balbi	bool "Texas Instruments 32.768 Hz Clocksource" if COMPILE_TEST
252dfedaf10SFelipe Balbi	depends on GENERIC_SCHED_CLOCK
253bb0eb050SDaniel Lezcano	select TIMER_OF if OF
254fe851f56SFelipe Balbi	help
255fe851f56SFelipe Balbi	  This option enables support for Texas Instruments 32.768 Hz clocksource
256fe851f56SFelipe Balbi	  available on many OMAP-like platforms.
257fe851f56SFelipe Balbi
258a5322457SNoam Camusconfig CLKSRC_NPS
259a5322457SNoam Camus	bool "NPS400 clocksource driver" if COMPILE_TEST
260a5322457SNoam Camus	depends on !PHYS_ADDR_T_64BIT
261a5322457SNoam Camus	select CLKSRC_MMIO
262bb0eb050SDaniel Lezcano	select TIMER_OF if OF
263a5322457SNoam Camus	help
264a5322457SNoam Camus	  NPS400 clocksource support.
265a5322457SNoam Camus	  Got 64 bit counter with update rate up to 1000MHz.
266a5322457SNoam Camus	  This counter is accessed via couple of 32 bit memory mapped registers.
267a5322457SNoam Camus
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
272e37e4593SMaxime Coquelin
2730302637fSVladimir Murzinconfig CLKSRC_MPS2
2740302637fSVladimir Murzin	bool "Clocksource for MPS2 SoCs" if COMPILE_TEST
2750302637fSVladimir Murzin	depends on GENERIC_SCHED_CLOCK
2760302637fSVladimir Murzin	select CLKSRC_MMIO
277bb0eb050SDaniel Lezcano	select TIMER_OF
2780302637fSVladimir Murzin
279c4c9a040SVineet Guptaconfig ARC_TIMERS
280c4c9a040SVineet Gupta	bool "Support for 32-bit TIMERn counters in ARC Cores" if COMPILE_TEST
281bb0eb050SDaniel Lezcano	select TIMER_OF
282c4c9a040SVineet Gupta	help
283c4c9a040SVineet Gupta	  These are legacy 32-bit TIMER0 and TIMER1 counters found on all ARC cores
284c4c9a040SVineet Gupta	  (ARC700 as well as ARC HS38).
285c4c9a040SVineet Gupta	  TIMER0 serves as clockevent while TIMER1 provides clocksource
286c4c9a040SVineet Gupta
287c4c9a040SVineet Guptaconfig ARC_TIMERS_64BIT
288c4c9a040SVineet Gupta	bool "Support for 64-bit counters in ARC HS38 cores" if COMPILE_TEST
289c4c9a040SVineet Gupta	depends on ARC_TIMERS
290bb0eb050SDaniel Lezcano	select TIMER_OF
291c4c9a040SVineet Gupta	help
292c4c9a040SVineet Gupta	  This enables 2 different 64-bit timers: RTC (for UP) and GFRC (for SMP)
293c4c9a040SVineet Gupta	  RTC is implemented inside the core, while GFRC sits outside the core in
294c4c9a040SVineet Gupta	  ARConnect IP block. Driver automatically picks one of them for clocksource
295c4c9a040SVineet Gupta	  as appropriate.
296c4c9a040SVineet Gupta
2978a4da6e3SMark Rutlandconfig ARM_ARCH_TIMER
2988a4da6e3SMark Rutland	bool
299bb0eb050SDaniel Lezcano	select TIMER_OF if OF
300fa1bffabSDaniel Lezcano	select TIMER_ACPI if ACPI
301a2c5d4edSJames Hogan
302037f6377SWill Deaconconfig ARM_ARCH_TIMER_EVTSTREAM
30346fd5c6bSWill Deacon	bool "Enable ARM architected timer event stream generation by default"
304037f6377SWill Deacon	default y if ARM_ARCH_TIMER
30577f7ce9aSStephen Boyd	depends on ARM_ARCH_TIMER
306037f6377SWill Deacon	help
30746fd5c6bSWill Deacon	  This option enables support by default for event stream generation
30846fd5c6bSWill Deacon	  based on the ARM architected timer. It is used for waking up CPUs
30946fd5c6bSWill Deacon	  executing the wfe instruction at a frequency represented as a
31046fd5c6bSWill Deacon	  power-of-2 divisor of the clock rate. The behaviour can also be
31146fd5c6bSWill Deacon	  overridden on the command line using the
31246fd5c6bSWill Deacon	  clocksource.arm_arch_timer.evtstream parameter.
313037f6377SWill Deacon	  The main use of the event stream is wfe-based timeouts of userspace
314037f6377SWill Deacon	  locking implementations. It might also be useful for imposing timeout
315037f6377SWill Deacon	  on wfe to safeguard against any programming errors in case an expected
316037f6377SWill Deacon	  event is not generated.
317037f6377SWill Deacon	  This must be disabled for hardware validation purposes to detect any
318037f6377SWill Deacon	  hardware anomalies of missing events.
319037f6377SWill Deacon
32016d10ef2SDing Tianhongconfig ARM_ARCH_TIMER_OOL_WORKAROUND
32116d10ef2SDing Tianhong	bool
32216d10ef2SDing Tianhong
323f6dc1576SScott Woodconfig FSL_ERRATUM_A008585
324f6dc1576SScott Wood	bool "Workaround for Freescale/NXP Erratum A-008585"
325f6dc1576SScott Wood	default y
326f6dc1576SScott Wood	depends on ARM_ARCH_TIMER && ARM64
32716d10ef2SDing Tianhong	select ARM_ARCH_TIMER_OOL_WORKAROUND
328f6dc1576SScott Wood	help
329f6dc1576SScott Wood	  This option enables a workaround for Freescale/NXP Erratum
330f6dc1576SScott Wood	  A-008585 ("ARM generic timer may contain an erroneous
331f6dc1576SScott Wood	  value").  The workaround will only be active if the
332f6dc1576SScott Wood	  fsl,erratum-a008585 property is found in the timer node.
333f6dc1576SScott Wood
334bb42ca47SDing Tianhongconfig HISILICON_ERRATUM_161010101
335bb42ca47SDing Tianhong	bool "Workaround for Hisilicon Erratum 161010101"
336bb42ca47SDing Tianhong	default y
337bb42ca47SDing Tianhong	select ARM_ARCH_TIMER_OOL_WORKAROUND
338bb42ca47SDing Tianhong	depends on ARM_ARCH_TIMER && ARM64
339bb42ca47SDing Tianhong	help
340bb42ca47SDing Tianhong	  This option enables a workaround for Hisilicon Erratum
341bb42ca47SDing Tianhong	  161010101. The workaround will be active if the hisilicon,erratum-161010101
342bb42ca47SDing Tianhong	  property is found in the timer node.
343bb42ca47SDing Tianhong
344fa8d815fSMarc Zyngierconfig ARM64_ERRATUM_858921
345fa8d815fSMarc Zyngier	bool "Workaround for Cortex-A73 erratum 858921"
346fa8d815fSMarc Zyngier	default y
347fa8d815fSMarc Zyngier	select ARM_ARCH_TIMER_OOL_WORKAROUND
348fa8d815fSMarc Zyngier	depends on ARM_ARCH_TIMER && ARM64
349fa8d815fSMarc Zyngier	help
350fa8d815fSMarc Zyngier	  This option enables a workaround applicable to Cortex-A73
351fa8d815fSMarc Zyngier	  (all versions), whose counter may return incorrect values.
352fa8d815fSMarc Zyngier	  The workaround will be dynamically enabled when an affected
353fa8d815fSMarc Zyngier	  core is detected.
354fa8d815fSMarc Zyngier
355c1b40e44SStuart Menefyconfig ARM_GLOBAL_TIMER
35667a87a43SDaniel Lezcano	bool "Support for the ARM global timer" if COMPILE_TEST
357bb0eb050SDaniel Lezcano	select TIMER_OF if OF
35867a87a43SDaniel Lezcano	depends on ARM
359c1b40e44SStuart Menefy	help
360c1b40e44SStuart Menefy	  This options enables support for the ARM global timer unit
361c1b40e44SStuart Menefy
3620b7402dcSSudeep Hollaconfig ARM_TIMER_SP804
3630b7402dcSSudeep Holla	bool "Support for Dual Timer SP804 module"
364002af195SGuenter Roeck	depends on GENERIC_SCHED_CLOCK && CLKDEV_LOOKUP
3650b7402dcSSudeep Holla	select CLKSRC_MMIO
366bb0eb050SDaniel Lezcano	select TIMER_OF if OF
3670b7402dcSSudeep Holla
368c1b40e44SStuart Menefyconfig CLKSRC_ARM_GLOBAL_TIMER_SCHED_CLOCK
369c1b40e44SStuart Menefy	bool
370c1b40e44SStuart Menefy	depends on ARM_GLOBAL_TIMER
371c1b40e44SStuart Menefy	default y
372c1b40e44SStuart Menefy	help
373c1b40e44SStuart Menefy	 Use ARM global timer clock source as sched_clock
374c1b40e44SStuart Menefy
3754958ebb3SMaxime Coquelinconfig ARMV7M_SYSTICK
376e2146d86SDaniel Lezcano	bool "Support for the ARMv7M system time" if COMPILE_TEST
377bb0eb050SDaniel Lezcano	select TIMER_OF if OF
3784958ebb3SMaxime Coquelin	select CLKSRC_MMIO
3794958ebb3SMaxime Coquelin	help
3804958ebb3SMaxime Coquelin	  This options enables support for the ARMv7M system timer unit
3814958ebb3SMaxime Coquelin
382b052ff30SMaxime Ripardconfig ATMEL_PIT
383bb0eb050SDaniel Lezcano	select TIMER_OF if OF
384b052ff30SMaxime Ripard	def_bool SOC_AT91SAM9 || SOC_SAMA5
385b052ff30SMaxime Ripard
386b53cdd03SAlexandre Belloniconfig ATMEL_ST
387b988d3f0SDaniel Lezcano	bool "Atmel ST timer support" if COMPILE_TEST
388bb0eb050SDaniel Lezcano	select TIMER_OF
3897ab7ef74SAlexandre Belloni	select MFD_SYSCON
390b988d3f0SDaniel Lezcano	help
391b988d3f0SDaniel Lezcano	  Support for the Atmel ST timer.
392b53cdd03SAlexandre Belloni
393a2c5d4edSJames Hoganconfig CLKSRC_METAG_GENERIC
394a2c5d4edSJames Hogan	def_bool y if METAG
395a2c5d4edSJames Hogan	help
396a2c5d4edSJames Hogan	  This option enables support for the Meta per-thread timers.
3976938d75aSThomas Abraham
3986938d75aSThomas Abrahamconfig CLKSRC_EXYNOS_MCT
39939366ef4SDaniel Lezcano	bool "Exynos multi core timer driver" if COMPILE_TEST
400f1a4c1f3SChanwoo Choi	depends on ARM || ARM64
4016938d75aSThomas Abraham	help
4026938d75aSThomas Abraham	  Support for Multi Core Timer controller on Exynos SoCs.
403241a9871SArnd Bergmann
404f1189989STomasz Figaconfig CLKSRC_SAMSUNG_PWM
405de37b0b5SAlexandre Belloni	bool "PWM timer driver for Samsung S3C, S5P" if COMPILE_TEST
406d7023e62SRichard Weinberger	depends on HAS_IOMEM
407f1189989STomasz Figa	help
408f1189989STomasz Figa	  This is a new clocksource driver for the PWM timer found in
409f1189989STomasz Figa	  Samsung S3C, S5P and Exynos SoCs, replacing an earlier driver
410f1189989STomasz Figa	  for all devicetree enabled platforms. This driver will be
411f1189989STomasz Figa	  needed only on systems that do not have the Exynos MCT available.
412c1967249SJingchang Lu
4132529c3a3SXiubo Liconfig FSL_FTM_TIMER
414ef49336bSDaniel Lezcano	bool "Freescale FlexTimer Module driver" if COMPILE_TEST
415d7023e62SRichard Weinberger	depends on HAS_IOMEM
41603724ac3SDaniel Lezcano	select CLKSRC_MMIO
4172529c3a3SXiubo Li	help
4182529c3a3SXiubo Li	  Support for Freescale FlexTimer Module (FTM) timer.
4192529c3a3SXiubo Li
420c1967249SJingchang Luconfig VF_PIT_TIMER
421c1967249SJingchang Lu	bool
4222be6d9bfSArnd Bergmann	select CLKSRC_MMIO
423c1967249SJingchang Lu	help
424c1967249SJingchang Lu	  Support for Period Interrupt Timer on Freescale Vybrid Family SoCs.
425fd3f1270SMagnus Damm
42689355274SNeil Armstrongconfig OXNAS_RPS_TIMER
42789355274SNeil Armstrong	bool "Oxford Semiconductor OXNAS RPS Timers driver" if COMPILE_TEST
428bb0eb050SDaniel Lezcano	select TIMER_OF
42989355274SNeil Armstrong	select CLKSRC_MMIO
43089355274SNeil Armstrong	help
43189355274SNeil Armstrong	  This enables support for the Oxford Semiconductor OXNAS RPS timers.
43289355274SNeil Armstrong
433fd3f1270SMagnus Dammconfig SYS_SUPPORTS_SH_CMT
434fd3f1270SMagnus Damm        bool
435fd3f1270SMagnus Damm
436ecb3530dSMatthias Bruggerconfig MTK_TIMER
437fbca9eabSDaniel Lezcano	bool "Mediatek timer driver" if COMPILE_TEST
4382f8a26c1SArnd Bergmann	depends on HAS_IOMEM
439bb0eb050SDaniel Lezcano	select TIMER_OF
440ecb3530dSMatthias Brugger	select CLKSRC_MMIO
441fbca9eabSDaniel Lezcano	help
442fbca9eabSDaniel Lezcano	  Support for Mediatek timer driver.
443ecb3530dSMatthias Brugger
444*067bc914SBaolin Wangconfig SPRD_TIMER
445*067bc914SBaolin Wang	bool "Spreadtrum timer driver" if COMPILE_TEST
446*067bc914SBaolin Wang	depends on HAS_IOMEM
447*067bc914SBaolin Wang	select TIMER_OF
448*067bc914SBaolin Wang	help
449*067bc914SBaolin Wang	  Enables support for the Spreadtrum timer driver.
450*067bc914SBaolin Wang
451fd3f1270SMagnus Dammconfig SYS_SUPPORTS_SH_MTU2
452fd3f1270SMagnus Damm        bool
453fd3f1270SMagnus Damm
454fd3f1270SMagnus Dammconfig SYS_SUPPORTS_SH_TMU
455fd3f1270SMagnus Damm        bool
456fd3f1270SMagnus Damm
457fd3f1270SMagnus Dammconfig SYS_SUPPORTS_EM_STI
458fd3f1270SMagnus Damm        bool
459fd3f1270SMagnus Damm
4609995f4f1SRich Felkerconfig CLKSRC_JCORE_PIT
4619995f4f1SRich Felker	bool "J-Core PIT timer driver" if COMPILE_TEST
4629995f4f1SRich Felker	depends on OF
4639995f4f1SRich Felker	depends on HAS_IOMEM
4649995f4f1SRich Felker	select CLKSRC_MMIO
4659995f4f1SRich Felker	help
4669995f4f1SRich Felker	  This enables build of clocksource and clockevent driver for
4679995f4f1SRich Felker	  the integrated PIT in the J-Core synthesizable, open source SoC.
4689995f4f1SRich Felker
469fd3f1270SMagnus Dammconfig SH_TIMER_CMT
470fd3f1270SMagnus Damm	bool "Renesas CMT timer driver" if COMPILE_TEST
47111bc26feSRichard Weinberger	depends on HAS_IOMEM
472fd3f1270SMagnus Damm	default SYS_SUPPORTS_SH_CMT
473fd3f1270SMagnus Damm	help
474fd3f1270SMagnus Damm	  This enables build of a clocksource and clockevent driver for
475fd3f1270SMagnus Damm	  the Compare Match Timer (CMT) hardware available in 16/32/48-bit
476fd3f1270SMagnus Damm	  variants on a wide range of Mobile and Automotive SoCs from Renesas.
477fd3f1270SMagnus Damm
478fd3f1270SMagnus Dammconfig SH_TIMER_MTU2
479fd3f1270SMagnus Damm	bool "Renesas MTU2 timer driver" if COMPILE_TEST
48011bc26feSRichard Weinberger	depends on HAS_IOMEM
481fd3f1270SMagnus Damm	default SYS_SUPPORTS_SH_MTU2
482fd3f1270SMagnus Damm	help
483fd3f1270SMagnus Damm	  This enables build of a clockevent driver for the Multi-Function
4847e139187SKuninori Morimoto	  Timer Pulse Unit 2 (MTU2) hardware available on SoCs from Renesas.
485fd3f1270SMagnus Damm	  This hardware comes with 16 bit-timer registers.
486fd3f1270SMagnus Damm
487fb6002a8SChris Brandtconfig RENESAS_OSTM
488fb6002a8SChris Brandt	bool "Renesas OSTM timer driver" if COMPILE_TEST
489fb6002a8SChris Brandt	select CLKSRC_MMIO
490fb6002a8SChris Brandt	help
491fb6002a8SChris Brandt	  Enables the support for the Renesas OSTM.
492fb6002a8SChris Brandt
493fd3f1270SMagnus Dammconfig SH_TIMER_TMU
494fd3f1270SMagnus Damm	bool "Renesas TMU timer driver" if COMPILE_TEST
49511bc26feSRichard Weinberger	depends on HAS_IOMEM
496fd3f1270SMagnus Damm	default SYS_SUPPORTS_SH_TMU
497fd3f1270SMagnus Damm	help
498fd3f1270SMagnus Damm	  This enables build of a clocksource and clockevent driver for
499fd3f1270SMagnus Damm	  the 32-bit Timer Unit (TMU) hardware available on a wide range
500fd3f1270SMagnus Damm	  SoCs from Renesas.
501fd3f1270SMagnus Damm
502fd3f1270SMagnus Dammconfig EM_TIMER_STI
503fd3f1270SMagnus Damm	bool "Renesas STI timer driver" if COMPILE_TEST
5042f8a26c1SArnd Bergmann	depends on HAS_IOMEM
505fd3f1270SMagnus Damm	default SYS_SUPPORTS_EM_STI
506fd3f1270SMagnus Damm	help
507fd3f1270SMagnus Damm	  This enables build of a clocksource and clockevent driver for
508fd3f1270SMagnus Damm	  the 48-bit System Timer (STI) hardware available on a SoCs
509fd3f1270SMagnus Damm	  such as EMEV2 from former NEC Electronics.
510dfc25e45SLinus Torvalds
5113f8e8ceeSKumar Galaconfig CLKSRC_QCOM
5123dc0e9f6SDaniel Lezcano	bool "Qualcomm MSM timer" if COMPILE_TEST
5133dc0e9f6SDaniel Lezcano	depends on ARM
514bb0eb050SDaniel Lezcano	select TIMER_OF
5153dc0e9f6SDaniel Lezcano	help
5163dc0e9f6SDaniel Lezcano	  This enables the clocksource and the per CPU clockevent driver for the
5173dc0e9f6SDaniel Lezcano	  Qualcomm SoCs.
518220e2a8dSPawel Moll
519220e2a8dSPawel Mollconfig CLKSRC_VERSATILE
5205cc87a4dSDaniel Lezcano	bool "ARM Versatile (Express) reference platforms clock source" if COMPILE_TEST
5215cc87a4dSDaniel Lezcano	depends on GENERIC_SCHED_CLOCK && !ARCH_USES_GETTIMEOFFSET
522bb0eb050SDaniel Lezcano	select TIMER_OF
523220e2a8dSPawel Moll	default y if MFD_VEXPRESS_SYSREG
524220e2a8dSPawel Moll	help
525220e2a8dSPawel Moll	  This option enables clock source based on free running
526220e2a8dSPawel Moll	  counter available in the "System Registers" block of
527220e2a8dSPawel Moll	  ARM Versatile, RealView and Versatile Express reference
528220e2a8dSPawel Moll	  platforms.
52958394271SJean Delvare
530fa5635a2SAndrew Brestickerconfig CLKSRC_MIPS_GIC
531fa5635a2SAndrew Bresticker	bool
532fa5635a2SAndrew Bresticker	depends on MIPS_GIC
533bb0eb050SDaniel Lezcano	select TIMER_OF
534fa5635a2SAndrew Bresticker
535ccd63ce4SMarc Gonzalezconfig CLKSRC_TANGO_XTAL
5365a7351f0SDaniel Lezcano	bool "Clocksource for Tango SoC" if COMPILE_TEST
5375a7351f0SDaniel Lezcano	depends on ARM
538bb0eb050SDaniel Lezcano	select TIMER_OF
5390881841fSDaniel Lezcano	select CLKSRC_MMIO
5405a7351f0SDaniel Lezcano	help
5415a7351f0SDaniel Lezcano	  This enables the clocksource for Tango SoC
542ccd63ce4SMarc Gonzalez
543e074ff86SDmitry Eremin-Solenikovconfig CLKSRC_PXA
5445ae996cbSDaniel Lezcano	bool "Clocksource for PXA or SA-11x0 platform" if COMPILE_TEST
545d7023e62SRichard Weinberger	depends on HAS_IOMEM
5465ae996cbSDaniel Lezcano	select CLKSRC_MMIO
547e074ff86SDmitry Eremin-Solenikov	help
548e074ff86SDmitry Eremin-Solenikov	  This enables OST0 support available on PXA and SA-11x0
549e074ff86SDmitry Eremin-Solenikov	  platforms.
550618b902dSYoshinori Sato
55197a23bebSDaniel Lezcanoconfig H8300_TMR8
55246e7c3c6SDaniel Lezcano        bool "Clockevent timer for the H8300 platform" if COMPILE_TEST
5532f8a26c1SArnd Bergmann        depends on HAS_IOMEM
55446e7c3c6SDaniel Lezcano	help
55546e7c3c6SDaniel Lezcano	  This enables the 8 bits timer for the H8300 platform.
55697a23bebSDaniel Lezcano
557618b902dSYoshinori Satoconfig H8300_TMR16
55846e7c3c6SDaniel Lezcano        bool "Clockevent timer for the H83069 platform" if COMPILE_TEST
5592f8a26c1SArnd Bergmann        depends on HAS_IOMEM
56046e7c3c6SDaniel Lezcano	help
56146e7c3c6SDaniel Lezcano	  This enables the 16 bits timer for the H8300 platform with the
56246e7c3c6SDaniel Lezcano	  H83069 cpu.
563618b902dSYoshinori Sato
564618b902dSYoshinori Satoconfig H8300_TPU
56546e7c3c6SDaniel Lezcano        bool "Clocksource for the H8300 platform" if COMPILE_TEST
5662f8a26c1SArnd Bergmann        depends on HAS_IOMEM
56746e7c3c6SDaniel Lezcano	help
56846e7c3c6SDaniel Lezcano	  This enables the clocksource for the H8300 platform with the
56946e7c3c6SDaniel Lezcano	  H8S2678 cpu.
570618b902dSYoshinori Sato
571bea5af41SShawn Guoconfig CLKSRC_IMX_GPT
572bea5af41SShawn Guo	bool "Clocksource using i.MX GPT" if COMPILE_TEST
573bea5af41SShawn Guo	depends on ARM && CLKDEV_LOOKUP
574bea5af41SShawn Guo	select CLKSRC_MMIO
575bea5af41SShawn Guo
576059ab7b8SDong Aishengconfig CLKSRC_IMX_TPM
577059ab7b8SDong Aisheng	bool "Clocksource using i.MX TPM" if COMPILE_TEST
5782f8a26c1SArnd Bergmann	depends on ARM && CLKDEV_LOOKUP
579059ab7b8SDong Aisheng	select CLKSRC_MMIO
580059ab7b8SDong Aisheng	help
581059ab7b8SDong Aisheng	  Enable this option to use IMX Timer/PWM Module (TPM) timer as
582059ab7b8SDong Aisheng	  clocksource.
583059ab7b8SDong Aisheng
58470bef01cSLee Jonesconfig CLKSRC_ST_LPC
585baacaf83SDaniel Lezcano	bool "Low power clocksource found in the LPC" if COMPILE_TEST
586bb0eb050SDaniel Lezcano	select TIMER_OF if OF
587863ee050SRichard Weinberger	depends on HAS_IOMEM
5882be6d9bfSArnd Bergmann	select CLKSRC_MMIO
58970bef01cSLee Jones	help
59070bef01cSLee Jones	  Enable this option to use the Low Power controller timer
59170bef01cSLee Jones	  as clocksource.
59270bef01cSLee Jones
59358394271SJean Delvareendmenu
594