xref: /linux/drivers/clocksource/Kconfig (revision 6376c0770656f3bdf7f411faf068371b6932aeca)
1# SPDX-License-Identifier: GPL-2.0-only
2menu "Clock Source drivers"
3	depends on GENERIC_CLOCKEVENTS
4
5config TIMER_OF
6	bool
7	select TIMER_PROBE
8
9config TIMER_ACPI
10	bool
11	select TIMER_PROBE
12
13config TIMER_PROBE
14	bool
15
16config CLKSRC_I8253
17	bool
18
19config CLKEVT_I8253
20	bool
21
22config I8253_LOCK
23	bool
24
25config OMAP_DM_SYSTIMER
26	bool
27	select TIMER_OF
28
29config CLKBLD_I8253
30	def_bool y if CLKSRC_I8253 || CLKEVT_I8253 || I8253_LOCK
31
32config CLKSRC_MMIO
33	bool
34
35config BCM2835_TIMER
36	bool "BCM2835 timer driver" if COMPILE_TEST
37	select CLKSRC_MMIO
38	help
39	  Enables the support for the BCM2835 timer driver.
40
41config BCM_KONA_TIMER
42	bool "BCM mobile timer driver" if COMPILE_TEST
43	select CLKSRC_MMIO
44	help
45	  Enables the support for the BCM Kona mobile timer driver.
46
47config DAVINCI_TIMER
48	bool "Texas Instruments DaVinci timer driver" if COMPILE_TEST
49	help
50	  Enables the support for the TI DaVinci timer driver.
51
52config DIGICOLOR_TIMER
53	bool "Digicolor timer driver" if COMPILE_TEST
54	select CLKSRC_MMIO
55	depends on HAS_IOMEM
56	help
57	  Enables the support for the digicolor timer driver.
58
59config OMAP_DM_TIMER
60	bool "OMAP dual-mode timer driver" if ARCH_K3 || COMPILE_TEST
61	default y if ARCH_K3
62	select TIMER_OF
63	help
64	  Enables the support for the TI dual-mode timer driver.
65
66config DW_APB_TIMER
67	bool "DW APB timer driver" if COMPILE_TEST
68	help
69	  Enables the support for the dw_apb timer.
70
71config DW_APB_TIMER_OF
72	bool
73	select DW_APB_TIMER
74	select TIMER_OF
75
76config ECONET_EN751221_TIMER
77	bool "EcoNet EN751221 High Precision Timer" if COMPILE_TEST
78	depends on HAS_IOMEM
79	select CLKSRC_MMIO
80	select TIMER_OF
81	help
82	  Support for CPU timer found on EcoNet MIPS based SoCs.
83
84config FTTMR010_TIMER
85	bool "Faraday Technology timer driver" if COMPILE_TEST
86	depends on HAS_IOMEM
87	select CLKSRC_MMIO
88	select TIMER_OF
89	select MFD_SYSCON
90	help
91	  Enables support for the Faraday Technology timer block
92	  FTTMR010.
93
94config IXP4XX_TIMER
95	bool "Intel XScale IXP4xx timer driver" if COMPILE_TEST
96	depends on HAS_IOMEM
97	select CLKSRC_MMIO
98	select TIMER_OF
99	help
100	  Enables support for the Intel XScale IXP4xx SoC timer.
101
102config ROCKCHIP_TIMER
103	bool "Rockchip timer driver" if COMPILE_TEST
104	depends on ARM || ARM64
105	select TIMER_OF
106	select CLKSRC_MMIO
107	help
108	  Enables the support for the Rockchip timer driver.
109
110config ARMADA_370_XP_TIMER
111	bool "Armada 370 and XP timer driver" if COMPILE_TEST
112	depends on ARM
113	select TIMER_OF
114	select CLKSRC_MMIO
115	help
116	  Enables the support for the Armada 370 and XP timer driver.
117
118config MESON6_TIMER
119	bool "Meson6 timer driver" if COMPILE_TEST
120	select CLKSRC_MMIO
121	help
122	  Enables the support for the Meson6 timer driver.
123
124config ORION_TIMER
125	bool "Orion timer driver" if COMPILE_TEST
126	depends on ARM
127	select TIMER_OF
128	select CLKSRC_MMIO
129	help
130	  Enables the support for the Orion timer driver
131
132config OWL_TIMER
133	bool "Owl timer driver" if COMPILE_TEST
134	select CLKSRC_MMIO
135	help
136	  Enables the support for the Actions Semi Owl timer driver.
137
138config RDA_TIMER
139	bool "RDA timer driver" if COMPILE_TEST
140	select CLKSRC_MMIO
141	select TIMER_OF
142	help
143	  Enables the support for the RDA Micro timer driver.
144
145config REALTEK_OTTO_TIMER
146	bool "Clocksource/timer for the Realtek Otto platform" if COMPILE_TEST
147	select TIMER_OF
148	help
149	  This driver adds support for the timers found in the Realtek RTL83xx
150	  and RTL93xx SoCs series. This includes chips such as RTL8380, RTL8381
151	  and RTL832, as well as chips from the RTL839x series, such as RTL8390
152	  RT8391, RTL8392, RTL8393 and RTL8396 and chips of the RTL930x series
153	  such as RTL9301, RTL9302 or RTL9303.
154
155config SUN4I_TIMER
156	bool "Sun4i timer driver" if COMPILE_TEST
157	depends on HAS_IOMEM
158	select CLKSRC_MMIO
159	select TIMER_OF
160	help
161	  Enables support for the Sun4i timer.
162
163config SUN5I_HSTIMER
164	bool "Sun5i timer driver" if COMPILE_TEST
165	select CLKSRC_MMIO
166	depends on COMMON_CLK
167	help
168	  Enables support the Sun5i timer.
169
170config TEGRA_TIMER
171	bool "Tegra timer driver" if COMPILE_TEST
172	select CLKSRC_MMIO
173	select TIMER_OF
174	depends on ARCH_TEGRA || COMPILE_TEST
175	help
176	  Enables support for the Tegra driver.
177
178config TEGRA186_TIMER
179	bool "NVIDIA Tegra186 timer driver"
180	depends on ARCH_TEGRA || COMPILE_TEST
181	depends on WATCHDOG && WATCHDOG_CORE
182	help
183	  Enables support for the timers and watchdogs found on NVIDIA
184	  Tegra186 and later SoCs.
185
186config VT8500_TIMER
187	bool "VT8500 timer driver" if COMPILE_TEST
188	depends on HAS_IOMEM
189	help
190	  Enables support for the VT8500 driver.
191
192config NPCM7XX_TIMER
193	bool "NPCM7xx timer driver" if COMPILE_TEST
194	depends on HAS_IOMEM
195	select TIMER_OF
196	select CLKSRC_MMIO
197	help
198	  Enable 24-bit TIMER0 and TIMER1 counters in the NPCM7xx architecture,
199	  where TIMER0 serves as clockevent and TIMER1 serves as clocksource.
200
201config CADENCE_TTC_TIMER
202	bool "Cadence TTC timer driver" if COMPILE_TEST
203	depends on COMMON_CLK
204	help
205	  Enables support for the Cadence TTC driver.
206
207config ASM9260_TIMER
208	bool "ASM9260 timer driver" if COMPILE_TEST
209	select CLKSRC_MMIO
210	select TIMER_OF
211	help
212	  Enables support for the ASM9260 timer.
213
214config CLKSRC_NOMADIK_MTU
215	bool "Nomakdik clocksource driver" if COMPILE_TEST
216	depends on ARM
217	select CLKSRC_MMIO
218	help
219	  Support for Multi Timer Unit. MTU provides access
220	  to multiple interrupt generating programmable
221	  32-bit free running decrementing counters.
222
223config CLKSRC_DBX500_PRCMU
224	bool "Clocksource PRCMU Timer" if COMPILE_TEST
225	depends on HAS_IOMEM
226	help
227	  Use the always on PRCMU Timer as clocksource.
228
229config CLPS711X_TIMER
230	bool "Cirrus Logic timer driver" if COMPILE_TEST
231	select CLKSRC_MMIO
232	help
233	  Enables support for the Cirrus Logic PS711 timer.
234
235config MXS_TIMER
236	bool "MXS timer driver" if COMPILE_TEST
237	select CLKSRC_MMIO
238	select STMP_DEVICE
239	help
240	  Enables support for the MXS timer.
241
242config NSPIRE_TIMER
243	bool "NSpire timer driver" if COMPILE_TEST
244	select CLKSRC_MMIO
245	help
246	  Enables support for the Nspire timer.
247
248config KEYSTONE_TIMER
249	bool "Keystone timer driver" if COMPILE_TEST
250	depends on ARM || ARM64
251	select CLKSRC_MMIO
252	help
253	  Enables support for the Keystone timer.
254
255config INTEGRATOR_AP_TIMER
256	bool "Integrator-AP timer driver" if COMPILE_TEST
257	select CLKSRC_MMIO
258	help
259	  Enables support for the Integrator-AP timer.
260
261config CLKSRC_LPC32XX
262	bool "Clocksource for LPC32XX" if COMPILE_TEST
263	depends on HAS_IOMEM
264	depends on ARM
265	select CLKSRC_MMIO
266	select TIMER_OF
267	help
268	  Support for the LPC32XX clocksource.
269
270config CLKSRC_PISTACHIO
271	bool "Clocksource for Pistachio SoC"
272	depends on HAS_IOMEM
273	depends on MIPS || COMPILE_TEST
274	select TIMER_OF
275	help
276	  Enables the clocksource for the Pistachio SoC.
277
278config CLKSRC_TI_32K
279	bool "Texas Instruments 32.768 Hz Clocksource" if COMPILE_TEST
280	depends on GENERIC_SCHED_CLOCK
281	select TIMER_OF if OF
282	help
283	  This option enables support for Texas Instruments 32.768 Hz clocksource
284	  available on many OMAP-like platforms.
285
286config CLKSRC_STM32
287	bool "Clocksource for STM32 SoCs" if !ARCH_STM32
288	depends on OF && ARM && (ARCH_STM32 || COMPILE_TEST)
289	select CLKSRC_MMIO
290	select TIMER_OF
291
292config CLKSRC_STM32_LP
293	bool "Low power clocksource for STM32 SoCs"
294	depends on MFD_STM32_LPTIMER || COMPILE_TEST
295
296config CLKSRC_MPS2
297	bool "Clocksource for MPS2 SoCs" if COMPILE_TEST
298	depends on GENERIC_SCHED_CLOCK
299	select CLKSRC_MMIO
300	select TIMER_OF
301
302config ARC_TIMERS
303	bool "Support for 32-bit TIMERn counters in ARC Cores" if COMPILE_TEST
304	depends on GENERIC_SCHED_CLOCK
305	select TIMER_OF
306	help
307	  These are legacy 32-bit TIMER0 and TIMER1 counters found on all ARC cores
308	  (ARC700 as well as ARC HS38).
309	  TIMER0 serves as clockevent while TIMER1 provides clocksource.
310
311config ARC_TIMERS_64BIT
312	bool "Support for 64-bit counters in ARC HS38 cores" if COMPILE_TEST
313	depends on ARC_TIMERS
314	select TIMER_OF
315	help
316	  This enables 2 different 64-bit timers: RTC (for UP) and GFRC (for SMP).
317	  RTC is implemented inside the core, while GFRC sits outside the core in
318	  ARConnect IP block. Driver automatically picks one of them for clocksource
319	  as appropriate.
320
321config ARM_ARCH_TIMER
322	bool
323	select TIMER_OF if OF
324	select TIMER_ACPI if ACPI
325
326config ARM_ARCH_TIMER_EVTSTREAM
327	bool "Enable ARM architected timer event stream generation by default"
328	default y if ARM_ARCH_TIMER
329	depends on ARM_ARCH_TIMER
330	help
331	  This option enables support by default for event stream generation
332	  based on the ARM architected timer. It is used for waking up CPUs
333	  executing the wfe instruction at a frequency represented as a
334	  power-of-2 divisor of the clock rate. The behaviour can also be
335	  overridden on the command line using the
336	  clocksource.arm_arch_timer.evtstream parameter.
337	  The main use of the event stream is wfe-based timeouts of userspace
338	  locking implementations. It might also be useful for imposing timeout
339	  on wfe to safeguard against any programming errors in case an expected
340	  event is not generated.
341	  This must be disabled for hardware validation purposes to detect any
342	  hardware anomalies of missing events.
343
344config ARM_ARCH_TIMER_OOL_WORKAROUND
345	bool
346
347config FSL_ERRATUM_A008585
348	bool "Workaround for Freescale/NXP Erratum A-008585"
349	default y
350	depends on ARM_ARCH_TIMER && ARM64
351	select ARM_ARCH_TIMER_OOL_WORKAROUND
352	help
353	  This option enables a workaround for Freescale/NXP Erratum
354	  A-008585 ("ARM generic timer may contain an erroneous
355	  value").  The workaround will only be active if the
356	  fsl,erratum-a008585 property is found in the timer node.
357
358config HISILICON_ERRATUM_161010101
359	bool "Workaround for Hisilicon Erratum 161010101"
360	default y
361	select ARM_ARCH_TIMER_OOL_WORKAROUND
362	depends on ARM_ARCH_TIMER && ARM64
363	help
364	  This option enables a workaround for Hisilicon Erratum
365	  161010101. The workaround will be active if the hisilicon,erratum-161010101
366	  property is found in the timer node.
367
368config ARM64_ERRATUM_858921
369	bool "Workaround for Cortex-A73 erratum 858921"
370	default y
371	select ARM_ARCH_TIMER_OOL_WORKAROUND
372	depends on ARM_ARCH_TIMER && ARM64
373	help
374	  This option enables a workaround applicable to Cortex-A73
375	  (all versions), whose counter may return incorrect values.
376	  The workaround will be dynamically enabled when an affected
377	  core is detected.
378
379config SUN50I_ERRATUM_UNKNOWN1
380	bool "Workaround for Allwinner A64 erratum UNKNOWN1"
381	default y
382	depends on ARM_ARCH_TIMER && ARM64 && ARCH_SUNXI
383	select ARM_ARCH_TIMER_OOL_WORKAROUND
384	help
385	  This option enables a workaround for instability in the timer on
386	  the Allwinner A64 SoC. The workaround will only be active if the
387	  allwinner,erratum-unknown1 property is found in the timer node.
388
389config ARM_GLOBAL_TIMER
390	bool "Support for the ARM global timer" if COMPILE_TEST
391	select TIMER_OF if OF
392	depends on ARM
393	help
394	  This option enables support for the ARM global timer unit.
395
396config ARM_GT_INITIAL_PRESCALER_VAL
397	int "ARM global timer initial prescaler value"
398	default 2 if ARCH_ZYNQ
399	default 1
400	depends on ARM_GLOBAL_TIMER
401	help
402	  When the ARM global timer initializes, its current rate is declared
403	  to the kernel and maintained forever. Should its parent clock
404	  change, the driver tries to fix the timer's internal prescaler.
405	  On some machs (i.e. Zynq) the initial prescaler value thus poses
406	  bounds about how much the parent clock is allowed to decrease or
407	  increase wrt the initial clock value.
408	  This affects CPU_FREQ max delta from the initial frequency.
409
410config ARM_TIMER_SP804
411	bool "Support for Dual Timer SP804 module"
412	depends on ARM || ARM64 || COMPILE_TEST
413	depends on GENERIC_SCHED_CLOCK && HAVE_CLK
414	select CLKSRC_MMIO
415	select TIMER_OF if OF
416
417config CLKSRC_ARM_GLOBAL_TIMER_SCHED_CLOCK
418	bool
419	depends on ARM_GLOBAL_TIMER
420	default y
421	help
422	  Use ARM global timer clock source as sched_clock.
423
424config ARMV7M_SYSTICK
425	bool "Support for the ARMv7M system time" if COMPILE_TEST
426	select TIMER_OF if OF
427	select CLKSRC_MMIO
428	help
429	  This option enables support for the ARMv7M system timer unit.
430
431config ATMEL_PIT
432	bool "Atmel PIT support" if COMPILE_TEST
433	depends on HAS_IOMEM
434	select TIMER_OF if OF
435	help
436	  Support for the Periodic Interval Timer found on Atmel SoCs.
437
438config ATMEL_ST
439	bool "Atmel ST timer support" if COMPILE_TEST
440	depends on HAS_IOMEM
441	select TIMER_OF
442	select MFD_SYSCON
443	help
444	  Support for the Atmel ST timer.
445
446config ATMEL_TCB_CLKSRC
447	bool "Atmel TC Block timer driver" if COMPILE_TEST
448	depends on ARM && OF && HAS_IOMEM
449	select TIMER_OF
450	help
451	  Support for Timer Counter Blocks on Atmel SoCs.
452
453config CLKSRC_EXYNOS_MCT
454	bool "Exynos multi core timer driver" if COMPILE_TEST
455	depends on ARM || ARM64
456	depends on ARCH_ARTPEC || ARCH_EXYNOS || COMPILE_TEST
457	help
458	  Support for Multi Core Timer controller on Exynos SoCs.
459
460config CLKSRC_SAMSUNG_PWM
461	bool "PWM timer driver for Samsung S3C, S5P" if COMPILE_TEST
462	depends on HAS_IOMEM
463	depends on ARCH_EXYNOS || ARCH_S3C64XX || ARCH_S5PV210 || COMPILE_TEST
464	help
465	  This is a new clocksource driver for the PWM timer found in
466	  Samsung S3C, S5P and Exynos SoCs, replacing an earlier driver
467	  for all devicetree enabled platforms. This driver will be
468	  needed only on systems that do not have the Exynos MCT available.
469
470config FSL_FTM_TIMER
471	bool "Freescale FlexTimer Module driver" if COMPILE_TEST
472	depends on HAS_IOMEM
473	select CLKSRC_MMIO
474	help
475	  Support for Freescale FlexTimer Module (FTM) timer.
476
477config VF_PIT_TIMER
478	bool
479	select CLKSRC_MMIO
480	help
481	  Support for Periodic Interrupt Timer on Freescale Vybrid Family SoCs.
482
483config SYS_SUPPORTS_SH_CMT
484	bool
485
486config MTK_TIMER
487	bool "Mediatek timer driver" if COMPILE_TEST
488	depends on HAS_IOMEM
489	select TIMER_OF
490	select CLKSRC_MMIO
491	help
492	  Support for Mediatek timer driver.
493
494config MTK_CPUX_TIMER
495	bool "MediaTek CPUX timer driver" if COMPILE_TEST
496	depends on HAS_IOMEM
497	default ARCH_MEDIATEK
498	select TIMER_OF
499	select CLKSRC_MMIO
500	help
501	  Support for MediaTek CPUXGPT timer driver.
502
503config SPRD_TIMER
504	bool "Spreadtrum timer driver" if EXPERT
505	depends on HAS_IOMEM
506	depends on (ARCH_SPRD || COMPILE_TEST)
507	default ARCH_SPRD
508	select TIMER_OF
509	help
510	  Enables support for the Spreadtrum timer driver.
511
512config SYS_SUPPORTS_SH_MTU2
513	bool
514
515config SYS_SUPPORTS_SH_TMU
516	bool
517
518config SYS_SUPPORTS_EM_STI
519	bool
520
521config CLKSRC_JCORE_PIT
522	bool "J-Core PIT timer driver" if COMPILE_TEST
523	depends on OF
524	depends on HAS_IOMEM
525	select CLKSRC_MMIO
526	help
527	  This enables build of clocksource and clockevent driver for
528	  the integrated PIT in the J-Core synthesizable, open source SoC.
529
530config SH_TIMER_CMT
531	bool "Renesas CMT timer driver" if COMPILE_TEST
532	depends on HAS_IOMEM
533	default SYS_SUPPORTS_SH_CMT
534	help
535	  This enables build of a clocksource and clockevent driver for
536	  the Compare Match Timer (CMT) hardware available in 16/32/48-bit
537	  variants on a wide range of Mobile and Automotive SoCs from Renesas.
538
539config SH_TIMER_MTU2
540	bool "Renesas MTU2 timer driver" if COMPILE_TEST
541	depends on HAS_IOMEM
542	default SYS_SUPPORTS_SH_MTU2
543	help
544	  This enables build of a clockevent driver for the Multi-Function
545	  Timer Pulse Unit 2 (MTU2) hardware available on SoCs from Renesas.
546	  This hardware comes with 16-bit timer registers.
547
548config RENESAS_OSTM
549	bool "Renesas OSTM timer driver"
550	depends on ARCH_RENESAS || COMPILE_TEST
551	select CLKSRC_MMIO
552	select TIMER_OF
553	help
554	  Enables the support for the Renesas OSTM.
555
556config SH_TIMER_TMU
557	bool "Renesas TMU timer driver" if COMPILE_TEST
558	depends on HAS_IOMEM
559	default SYS_SUPPORTS_SH_TMU
560	help
561	  This enables build of a clocksource and clockevent driver for
562	  the 32-bit Timer Unit (TMU) hardware available on a wide range
563	  SoCs from Renesas.
564
565config EM_TIMER_STI
566	bool "Renesas STI timer driver" if COMPILE_TEST
567	depends on HAS_IOMEM
568	default SYS_SUPPORTS_EM_STI
569	help
570	  This enables build of a clocksource and clockevent driver for
571	  the 48-bit System Timer (STI) hardware available on a SoCs
572	  such as EMEV2 from former NEC Electronics.
573
574config CLKSRC_QCOM
575	bool "Qualcomm MSM timer" if COMPILE_TEST
576	depends on ARM
577	select TIMER_OF
578	help
579	  This enables the clocksource and the per CPU clockevent driver for the
580	  Qualcomm SoCs.
581
582config CLKSRC_VERSATILE
583	bool "ARM Versatile (Express) reference platforms clock source" if COMPILE_TEST
584	depends on GENERIC_SCHED_CLOCK
585	select TIMER_OF
586	default y if (ARCH_VEXPRESS || ARCH_VERSATILE) && ARM
587	help
588	  This option enables clock source based on free running
589	  counter available in the "System Registers" block of
590	  ARM Versatile and Versatile Express reference platforms.
591
592config CLKSRC_MIPS_GIC
593	bool
594	depends on MIPS_GIC
595	select CLOCKSOURCE_WATCHDOG
596	select TIMER_OF
597
598config CLKSRC_PXA
599	bool "Clocksource for PXA or SA-11x0 platform" if COMPILE_TEST
600	depends on HAS_IOMEM
601	select CLKSRC_MMIO
602	help
603	  This enables OST0 support available on PXA and SA-11x0
604	  platforms.
605
606config CLKSRC_IMX_GPT
607	bool "Clocksource using i.MX GPT" if COMPILE_TEST
608	depends on (ARM || ARM64) && HAVE_CLK
609	select CLKSRC_MMIO
610
611config CLKSRC_IMX_TPM
612	bool "Clocksource using i.MX TPM" if COMPILE_TEST
613	depends on (ARM || ARM64) && HAVE_CLK
614	select CLKSRC_MMIO
615	select TIMER_OF
616	help
617	  Enable this option to use IMX Timer/PWM Module (TPM) timer as
618	  clocksource.
619
620config TIMER_IMX_SYS_CTR
621	bool "i.MX system counter timer" if COMPILE_TEST
622	select TIMER_OF
623	help
624	  Enable this option to use i.MX system counter timer as a
625	  clockevent.
626
627config CLKSRC_LOONGSON1_PWM
628	bool "Clocksource using Loongson1 PWM"
629	depends on MACH_LOONGSON32 || COMPILE_TEST
630	select MIPS_EXTERNAL_TIMER
631	select TIMER_OF
632	help
633	  Enable this option to use Loongson1 PWM timer as clocksource
634	  instead of the performance counter.
635
636config CLKSRC_ST_LPC
637	bool "Low power clocksource found in the LPC" if COMPILE_TEST
638	select TIMER_OF if OF
639	depends on HAS_IOMEM
640	select CLKSRC_MMIO
641	help
642	  Enable this option to use the Low Power controller timer
643	  as clocksource.
644
645config GXP_TIMER
646	bool "GXP timer driver" if COMPILE_TEST && !ARCH_HPE
647	default ARCH_HPE
648	select TIMER_OF if OF
649	help
650	  Provides a driver for the timer control found on HPE
651	  GXP SOCs. This is required for all GXP SOCs.
652
653config RISCV_TIMER
654	bool "Timer for the RISC-V platform" if COMPILE_TEST
655	depends on GENERIC_SCHED_CLOCK && RISCV && RISCV_SBI
656	select TIMER_PROBE
657	select TIMER_OF
658	help
659	  This enables the per-hart timer built into all RISC-V systems, which
660	  is accessed via both the SBI and the rdcycle instruction.  This is
661	  required for all RISC-V systems.
662
663config CLINT_TIMER
664	bool "CLINT Timer for the RISC-V platform" if COMPILE_TEST
665	depends on GENERIC_SCHED_CLOCK && RISCV
666	select TIMER_PROBE
667	select TIMER_OF
668	help
669	  This option enables the CLINT timer for RISC-V systems.  The CLINT
670	  driver is usually used for NoMMU RISC-V systems.
671
672config CSKY_MP_TIMER
673	bool "SMP Timer for the C-SKY platform" if COMPILE_TEST
674	depends on CSKY
675	select TIMER_OF
676	help
677	  Say yes here to enable C-SKY SMP timer driver used for C-SKY SMP
678	  system.
679	  csky,mptimer is not only used in SMP system, it also could be used in
680	  single core system. It's not a mmio reg and it uses mtcr/mfcr instruction.
681
682config GX6605S_TIMER
683	bool "Gx6605s SOC system timer driver" if COMPILE_TEST
684	depends on CSKY
685	select CLKSRC_MMIO
686	select TIMER_OF
687	help
688	  This option enables support for gx6605s SOC's timer.
689
690config MILBEAUT_TIMER
691	bool "Milbeaut timer driver" if COMPILE_TEST
692	depends on OF
693	depends on ARM
694	select TIMER_OF
695	select CLKSRC_MMIO
696	help
697	  Enables the support for Milbeaut timer driver.
698
699config MSC313E_TIMER
700	bool "MSC313E timer driver" if COMPILE_TEST
701	select TIMER_OF
702	select CLKSRC_MMIO
703	help
704	  Enables support for the MStar MSC313E timer driver.
705	  This provides access to multiple interrupt generating
706	  programmable 32-bit free running incrementing counters.
707
708config INGENIC_TIMER
709	bool "Clocksource/timer using the TCU in Ingenic JZ SoCs"
710	default MACH_INGENIC
711	depends on MIPS || COMPILE_TEST
712	depends on COMMON_CLK
713	select MFD_SYSCON
714	select TIMER_OF
715	select IRQ_DOMAIN
716	help
717	  Support for the timer/counter unit of the Ingenic JZ SoCs.
718
719config INGENIC_SYSOST
720	bool "Clocksource/timer using the SYSOST in Ingenic X SoCs"
721	depends on MIPS || COMPILE_TEST
722	depends on COMMON_CLK
723	select MFD_SYSCON
724	select TIMER_OF
725	select IRQ_DOMAIN
726	help
727	  Support for the SYSOST of the Ingenic X Series SoCs.
728
729config INGENIC_OST
730	bool "Clocksource using the OST in Ingenic JZ SoCs"
731	depends on MIPS || COMPILE_TEST
732	depends on COMMON_CLK
733	select MFD_SYSCON
734	help
735	  Support for the Operating System Timer of the Ingenic JZ SoCs.
736
737config MICROCHIP_PIT64B
738	bool "Microchip PIT64B support"
739	depends on OF && ARM
740	select TIMER_OF
741	help
742	  This option enables Microchip PIT64B timer for Atmel
743	  based system. It supports the oneshot, the periodic
744	  modes and high resolution. It is used as a clocksource
745	  and a clockevent.
746
747config GOLDFISH_TIMER
748	bool "Clocksource using goldfish-rtc"
749	depends on M68K || COMPILE_TEST
750	depends on RTC_DRV_GOLDFISH
751	help
752	  Support for the timer/counter of goldfish-rtc
753
754config EP93XX_TIMER
755	bool "Cirrus Logic ep93xx timer driver" if COMPILE_TEST
756	depends on ARCH_EP93XX
757	depends on GENERIC_CLOCKEVENTS
758	depends on HAS_IOMEM
759	select CLKSRC_MMIO
760	select TIMER_OF
761	help
762	  Enables support for the Cirrus Logic timer block
763	  EP93XX.
764
765config RALINK_TIMER
766	bool "Ralink System Tick Counter"
767	depends on SOC_RT305X || SOC_MT7620 || COMPILE_TEST
768	select CLKSRC_MMIO
769	select TIMER_OF
770	help
771	  Enables support for system tick counter present on
772	  Ralink SoCs RT3352 and MT7620.
773
774config NXP_STM_TIMER
775	bool "NXP System Timer Module driver"
776	depends on ARCH_S32 || COMPILE_TEST
777	select CLKSRC_MMIO
778	help
779          Enables the support for NXP System Timer Module found in the
780          s32g NXP platform series.
781
782endmenu
783