]> git.karo-electronics.de Git - karo-tx-linux.git/blob - drivers/clocksource/Kconfig
clocksource/drivers/armv7m_systick: Add the COMPILE_TEST option
[karo-tx-linux.git] / drivers / clocksource / Kconfig
1 menu "Clock Source drivers"
2         depends on !ARCH_USES_GETTIMEOFFSET
3
4 config CLKSRC_OF
5         bool
6         select CLKSRC_PROBE
7
8 config CLKSRC_ACPI
9         bool
10         select CLKSRC_PROBE
11
12 config CLKSRC_PROBE
13         bool
14
15 config CLKSRC_I8253
16         bool
17
18 config CLKEVT_I8253
19         bool
20
21 config I8253_LOCK
22         bool
23
24 config CLKBLD_I8253
25         def_bool y if CLKSRC_I8253 || CLKEVT_I8253 || I8253_LOCK
26
27 config CLKSRC_MMIO
28         bool
29
30 config BCM2835_TIMER
31         bool "BCM2835 timer driver" if COMPILE_TEST
32         depends on GENERIC_CLOCKEVENTS
33         select CLKSRC_MMIO
34         help
35           Enables the support for the BCM2835 timer driver.
36
37 config DIGICOLOR_TIMER
38         bool "Digicolor timer driver" if COMPILE_TEST
39         depends on GENERIC_CLOCKEVENTS
40         select CLKSRC_MMIO
41         depends on HAS_IOMEM
42         help
43           Enables the support for the digicolor timer driver.
44
45 config DW_APB_TIMER
46         bool "DW APB timer driver" if COMPILE_TEST
47         depends on GENERIC_CLOCKEVENTS
48         help
49           Enables the support for the dw_apb timer.
50
51 config DW_APB_TIMER_OF
52         bool
53         select DW_APB_TIMER
54         select CLKSRC_OF
55
56 config ROCKCHIP_TIMER
57         bool "Rockchip timer driver" if COMPILE_TEST
58         depends on ARM || ARM64
59         select CLKSRC_OF
60         help
61           Enables the support for the rockchip timer driver.
62
63 config ARMADA_370_XP_TIMER
64         bool "Armada 370 and XP timer driver" if COMPILE_TEST
65         depends on ARM
66         select CLKSRC_OF
67         select CLKSRC_MMIO
68         help
69           Enables the support for the Armada 370 and XP timer driver.
70
71 config MESON6_TIMER
72         bool "Meson6 timer driver" if COMPILE_TEST
73         depends on GENERIC_CLOCKEVENTS
74         select CLKSRC_MMIO
75         help
76           Enables the support for the Meson6 timer driver.
77
78 config ORION_TIMER
79         bool "Orion timer driver" if COMPILE_TEST
80         depends on ARM
81         select CLKSRC_OF
82         select CLKSRC_MMIO
83         help
84           Enables the support for the Orion timer driver
85
86 config SUN4I_TIMER
87         bool "Sun4i timer driver" if COMPILE_TEST
88         depends on GENERIC_CLOCKEVENTS
89         depends on HAS_IOMEM
90         select CLKSRC_MMIO
91         help
92           Enables support for the Sun4i timer.
93
94 config SUN5I_HSTIMER
95         bool "Sun5i timer driver" if COMPILE_TEST
96         select CLKSRC_MMIO
97         depends on COMMON_CLK
98         help
99           Enables support the Sun5i timer.
100
101 config TEGRA_TIMER
102         bool "Tegra timer driver" if COMPILE_TEST
103         select CLKSRC_MMIO
104         depends on ARM
105         help
106           Enables support for the Tegra driver.
107
108 config VT8500_TIMER
109         bool "VT8500 timer driver" if COMPILE_TEST
110         depends on GENERIC_CLOCKEVENTS
111         depends on HAS_IOMEM
112         help
113           Enables support for the VT8500 driver.
114
115 config CADENCE_TTC_TIMER
116         bool "Cadence TTC timer driver" if COMPILE_TEST
117         depends on COMMON_CLK
118         help
119           Enables support for the cadence ttc driver.
120
121 config ASM9260_TIMER
122         bool "ASM9260 timer driver" if COMPILE_TEST
123         depends on GENERIC_CLOCKEVENTS
124         select CLKSRC_MMIO
125         select CLKSRC_OF
126         help
127           Enables support for the ASM9260 timer.
128
129 config CLKSRC_NOMADIK_MTU
130         bool "Nomakdik clocksource driver" if COMPILE_TEST
131         depends on ARM
132         select CLKSRC_MMIO
133         help
134           Support for Multi Timer Unit. MTU provides access
135           to multiple interrupt generating programmable
136           32-bit free running decrementing counters.
137
138 config CLKSRC_NOMADIK_MTU_SCHED_CLOCK
139         bool
140         depends on CLKSRC_NOMADIK_MTU
141         help
142           Use the Multi Timer Unit as the sched_clock.
143
144 config CLKSRC_DBX500_PRCMU
145         bool "Clocksource PRCMU Timer" if COMPILE_TEST
146         depends on GENERIC_CLOCKEVENTS
147         depends on HAS_IOMEM
148         help
149           Use the always on PRCMU Timer as clocksource
150
151 config CLKSRC_DBX500_PRCMU_SCHED_CLOCK
152         bool "Clocksource PRCMU Timer sched_clock"
153         depends on (CLKSRC_DBX500_PRCMU && !CLKSRC_NOMADIK_MTU_SCHED_CLOCK)
154         default y
155         help
156           Use the always on PRCMU Timer as sched_clock
157
158 config CLKSRC_EFM32
159         bool "Clocksource for Energy Micro's EFM32 SoCs" if !ARCH_EFM32
160         depends on OF && ARM && (ARCH_EFM32 || COMPILE_TEST)
161         select CLKSRC_MMIO
162         default ARCH_EFM32
163         help
164           Support to use the timers of EFM32 SoCs as clock source and clock
165           event device.
166
167 config CLKSRC_LPC32XX
168         bool "Clocksource for LPC32XX" if COMPILE_TEST
169         depends on GENERIC_CLOCKEVENTS && HAS_IOMEM
170         depends on ARM
171         select CLKSRC_MMIO
172         select CLKSRC_OF
173         help
174           Support for the LPC32XX clocksource.
175
176 config CLKSRC_PISTACHIO
177         bool "Clocksource for Pistachio SoC" if COMPILE_TEST
178         depends on HAS_IOMEM
179         select CLKSRC_OF
180         help
181           Enables the clocksource for the Pistachio SoC.
182
183 config CLKSRC_TI_32K
184         bool "Texas Instruments 32.768 Hz Clocksource" if COMPILE_TEST
185         depends on GENERIC_SCHED_CLOCK
186         select CLKSRC_OF if OF
187         help
188           This option enables support for Texas Instruments 32.768 Hz clocksource
189           available on many OMAP-like platforms.
190
191 config CLKSRC_NPS
192         bool "NPS400 clocksource driver" if COMPILE_TEST
193         depends on !PHYS_ADDR_T_64BIT
194         select CLKSRC_MMIO
195         select CLKSRC_OF if OF
196         help
197           NPS400 clocksource support.
198           Got 64 bit counter with update rate up to 1000MHz.
199           This counter is accessed via couple of 32 bit memory mapped registers.
200
201 config CLKSRC_STM32
202         bool "Clocksource for STM32 SoCs" if !ARCH_STM32
203         depends on OF && ARM && (ARCH_STM32 || COMPILE_TEST)
204         select CLKSRC_MMIO
205
206 config CLKSRC_MPS2
207         bool "Clocksource for MPS2 SoCs" if COMPILE_TEST
208         depends on GENERIC_SCHED_CLOCK
209         select CLKSRC_MMIO
210         select CLKSRC_OF
211
212 config ARM_ARCH_TIMER
213         bool
214         select CLKSRC_OF if OF
215         select CLKSRC_ACPI if ACPI
216
217 config ARM_ARCH_TIMER_EVTSTREAM
218         bool "Support for ARM architected timer event stream generation"
219         default y if ARM_ARCH_TIMER
220         depends on ARM_ARCH_TIMER
221         help
222           This option enables support for event stream generation based on
223           the ARM architected timer. It is used for waking up CPUs executing
224           the wfe instruction at a frequency represented as a power-of-2
225           divisor of the clock rate.
226           The main use of the event stream is wfe-based timeouts of userspace
227           locking implementations. It might also be useful for imposing timeout
228           on wfe to safeguard against any programming errors in case an expected
229           event is not generated.
230           This must be disabled for hardware validation purposes to detect any
231           hardware anomalies of missing events.
232
233 config ARM_GLOBAL_TIMER
234         bool
235         select CLKSRC_OF if OF
236         help
237           This options enables support for the ARM global timer unit
238
239 config ARM_TIMER_SP804
240         bool "Support for Dual Timer SP804 module"
241         depends on GENERIC_SCHED_CLOCK && CLKDEV_LOOKUP
242         select CLKSRC_MMIO
243         select CLKSRC_OF if OF
244
245 config CLKSRC_ARM_GLOBAL_TIMER_SCHED_CLOCK
246         bool
247         depends on ARM_GLOBAL_TIMER
248         default y
249         help
250          Use ARM global timer clock source as sched_clock
251
252 config ARMV7M_SYSTICK
253         bool "Support for the ARMv7M system time" if COMPILE_TEST
254         select CLKSRC_OF if OF
255         select CLKSRC_MMIO
256         help
257           This options enables support for the ARMv7M system timer unit
258
259 config ATMEL_PIT
260         select CLKSRC_OF if OF
261         def_bool SOC_AT91SAM9 || SOC_SAMA5
262
263 config ATMEL_ST
264         bool
265         select CLKSRC_OF
266         select MFD_SYSCON
267
268 config CLKSRC_METAG_GENERIC
269         def_bool y if METAG
270         help
271           This option enables support for the Meta per-thread timers.
272
273 config CLKSRC_EXYNOS_MCT
274         bool "Exynos multi core timer driver" if COMPILE_TEST
275         depends on ARM
276         help
277           Support for Multi Core Timer controller on Exynos SoCs.
278
279 config CLKSRC_SAMSUNG_PWM
280         bool "PWM timer driver for Samsung S3C, S5P" if COMPILE_TEST
281         depends on GENERIC_CLOCKEVENTS
282         depends on HAS_IOMEM
283         help
284           This is a new clocksource driver for the PWM timer found in
285           Samsung S3C, S5P and Exynos SoCs, replacing an earlier driver
286           for all devicetree enabled platforms. This driver will be
287           needed only on systems that do not have the Exynos MCT available.
288
289 config FSL_FTM_TIMER
290         bool "Freescale FlexTimer Module driver" if COMPILE_TEST
291         depends on GENERIC_CLOCKEVENTS
292         depends on HAS_IOMEM
293         select CLKSRC_MMIO
294         help
295           Support for Freescale FlexTimer Module (FTM) timer.
296
297 config VF_PIT_TIMER
298         bool
299         select CLKSRC_MMIO
300         help
301           Support for Period Interrupt Timer on Freescale Vybrid Family SoCs.
302
303 config OXNAS_RPS_TIMER
304         bool "Oxford Semiconductor OXNAS RPS Timers driver" if COMPILE_TEST
305         depends on GENERIC_CLOCKEVENTS
306         select CLKSRC_OF
307         select CLKSRC_MMIO
308         help
309           This enables support for the Oxford Semiconductor OXNAS RPS timers.
310
311 config SYS_SUPPORTS_SH_CMT
312         bool
313
314 config MTK_TIMER
315         bool "Mediatek timer driver" if COMPILE_TEST
316         depends on GENERIC_CLOCKEVENTS && HAS_IOMEM
317         select CLKSRC_OF
318         select CLKSRC_MMIO
319         help
320           Support for Mediatek timer driver.
321
322 config SYS_SUPPORTS_SH_MTU2
323         bool
324
325 config SYS_SUPPORTS_SH_TMU
326         bool
327
328 config SYS_SUPPORTS_EM_STI
329         bool
330
331 config SH_TIMER_CMT
332         bool "Renesas CMT timer driver" if COMPILE_TEST
333         depends on GENERIC_CLOCKEVENTS
334         depends on HAS_IOMEM
335         default SYS_SUPPORTS_SH_CMT
336         help
337           This enables build of a clocksource and clockevent driver for
338           the Compare Match Timer (CMT) hardware available in 16/32/48-bit
339           variants on a wide range of Mobile and Automotive SoCs from Renesas.
340
341 config SH_TIMER_MTU2
342         bool "Renesas MTU2 timer driver" if COMPILE_TEST
343         depends on GENERIC_CLOCKEVENTS
344         depends on HAS_IOMEM
345         default SYS_SUPPORTS_SH_MTU2
346         help
347           This enables build of a clockevent driver for the Multi-Function
348           Timer Pulse Unit 2 (MTU2) hardware available on SoCs from Renesas.
349           This hardware comes with 16 bit-timer registers.
350
351 config SH_TIMER_TMU
352         bool "Renesas TMU timer driver" if COMPILE_TEST
353         depends on GENERIC_CLOCKEVENTS
354         depends on HAS_IOMEM
355         default SYS_SUPPORTS_SH_TMU
356         help
357           This enables build of a clocksource and clockevent driver for
358           the 32-bit Timer Unit (TMU) hardware available on a wide range
359           SoCs from Renesas.
360
361 config EM_TIMER_STI
362         bool "Renesas STI timer driver" if COMPILE_TEST
363         depends on GENERIC_CLOCKEVENTS && HAS_IOMEM
364         default SYS_SUPPORTS_EM_STI
365         help
366           This enables build of a clocksource and clockevent driver for
367           the 48-bit System Timer (STI) hardware available on a SoCs
368           such as EMEV2 from former NEC Electronics.
369
370 config CLKSRC_QCOM
371         bool "Qualcomm MSM timer" if COMPILE_TEST
372         depends on ARM
373         select CLKSRC_OF
374         help
375           This enables the clocksource and the per CPU clockevent driver for the
376           Qualcomm SoCs.
377
378 config CLKSRC_VERSATILE
379         bool "ARM Versatile (Express) reference platforms clock source"
380         depends on PLAT_VERSATILE && GENERIC_SCHED_CLOCK && !ARCH_USES_GETTIMEOFFSET
381         select CLKSRC_OF
382         default y if MFD_VEXPRESS_SYSREG
383         help
384           This option enables clock source based on free running
385           counter available in the "System Registers" block of
386           ARM Versatile, RealView and Versatile Express reference
387           platforms.
388
389 config CLKSRC_MIPS_GIC
390         bool
391         depends on MIPS_GIC
392         select CLKSRC_OF
393
394 config CLKSRC_TANGO_XTAL
395         bool "Clocksource for Tango SoC" if COMPILE_TEST
396         depends on ARM
397         select CLKSRC_OF
398         select CLKSRC_MMIO
399         help
400           This enables the clocksource for Tango SoC
401
402 config CLKSRC_PXA
403         bool "Clocksource for PXA or SA-11x0 platform" if COMPILE_TEST
404         depends on GENERIC_CLOCKEVENTS
405         depends on HAS_IOMEM
406         select CLKSRC_MMIO
407         help
408           This enables OST0 support available on PXA and SA-11x0
409           platforms.
410
411 config H8300_TMR8
412         bool "Clockevent timer for the H8300 platform" if COMPILE_TEST
413         depends on GENERIC_CLOCKEVENTS && HAS_IOMEM
414         help
415           This enables the 8 bits timer for the H8300 platform.
416
417 config H8300_TMR16
418         bool "Clockevent timer for the H83069 platform" if COMPILE_TEST
419         depends on GENERIC_CLOCKEVENTS && HAS_IOMEM
420         help
421           This enables the 16 bits timer for the H8300 platform with the
422           H83069 cpu.
423
424 config H8300_TPU
425         bool "Clocksource for the H8300 platform" if COMPILE_TEST
426         depends on GENERIC_CLOCKEVENTS && HAS_IOMEM
427         help
428           This enables the clocksource for the H8300 platform with the
429           H8S2678 cpu.
430
431 config CLKSRC_IMX_GPT
432         bool "Clocksource using i.MX GPT" if COMPILE_TEST
433         depends on ARM && CLKDEV_LOOKUP
434         select CLKSRC_MMIO
435
436 config CLKSRC_ST_LPC
437         bool "Low power clocksource found in the LPC" if COMPILE_TEST
438         select CLKSRC_OF if OF
439         depends on HAS_IOMEM
440         select CLKSRC_MMIO
441         help
442           Enable this option to use the Low Power controller timer
443           as clocksource.
444
445 endmenu