Commit | Line | Data |
---|---|---|
58394271 | 1 | menu "Clock Source drivers" |
3da6d49e | 2 | depends on !ARCH_USES_GETTIMEOFFSET |
58394271 | 3 | |
ae278a93 SW |
4 | config CLKSRC_OF |
5 | bool | |
aad83b15 MZ |
6 | select CLKSRC_PROBE |
7 | ||
8 | config CLKSRC_ACPI | |
9 | bool | |
10 | select CLKSRC_PROBE | |
11 | ||
12 | config CLKSRC_PROBE | |
13 | bool | |
ae278a93 | 14 | |
89c0b8e2 RK |
15 | config CLKSRC_I8253 |
16 | bool | |
442c8176 | 17 | |
e6220bdc TG |
18 | config CLKEVT_I8253 |
19 | bool | |
20 | ||
15f304b6 RB |
21 | config I8253_LOCK |
22 | bool | |
23 | ||
24 | config CLKBLD_I8253 | |
e6220bdc | 25 | def_bool y if CLKSRC_I8253 || CLKEVT_I8253 || I8253_LOCK |
15f304b6 | 26 | |
442c8176 RK |
27 | config CLKSRC_MMIO |
28 | bool | |
06c3df49 | 29 | |
9b8bb773 | 30 | config DIGICOLOR_TIMER |
e6c1db13 | 31 | bool "Digicolor timer driver" if COMPILE_TEST |
0901f184 | 32 | depends on GENERIC_CLOCKEVENTS |
2be6d9bf | 33 | select CLKSRC_MMIO |
e6c1db13 DL |
34 | help |
35 | Enables the support for the digicolor timer driver. | |
9b8bb773 | 36 | |
06c3df49 | 37 | config DW_APB_TIMER |
5b097f6b | 38 | bool "DW APB timer driver" if COMPILE_TEST |
0901f184 | 39 | depends on GENERIC_CLOCKEVENTS |
5b097f6b DL |
40 | help |
41 | Enables the support for the dw_apb timer. | |
489bccea | 42 | |
cfda5901 DN |
43 | config DW_APB_TIMER_OF |
44 | bool | |
1b4eca0f | 45 | select DW_APB_TIMER |
10021488 | 46 | select CLKSRC_OF |
cfda5901 | 47 | |
468b8c4c | 48 | config ROCKCHIP_TIMER |
40ada2aa DL |
49 | bool "Rockchip timer driver" if COMPILE_TEST |
50 | depends on ARM || ARM64 | |
468b8c4c | 51 | select CLKSRC_OF |
40ada2aa DL |
52 | help |
53 | Enables the support for the rockchip timer driver. | |
468b8c4c | 54 | |
6fe9cbd1 | 55 | config ARMADA_370_XP_TIMER |
9519e80c DL |
56 | bool "Armada 370 and XP timer driver" if COMPILE_TEST |
57 | depends on ARM | |
7b0dd72a | 58 | select CLKSRC_OF |
2be6d9bf | 59 | select CLKSRC_MMIO |
9519e80c DL |
60 | help |
61 | Enables the support for the Armada 370 and XP timer driver. | |
6fe9cbd1 | 62 | |
e4a6b378 | 63 | config MESON6_TIMER |
0b7a7bb7 | 64 | bool "Meson6 timer driver" if COMPILE_TEST |
0901f184 | 65 | depends on GENERIC_CLOCKEVENTS |
7b6b0a45 | 66 | select CLKSRC_MMIO |
0b7a7bb7 DL |
67 | help |
68 | Enables the support for the Meson6 timer driver. | |
e4a6b378 | 69 | |
0c1dcfd5 | 70 | config ORION_TIMER |
c9165549 DL |
71 | bool "Orion timer driver" if COMPILE_TEST |
72 | depends on ARM | |
0c1dcfd5 SH |
73 | select CLKSRC_OF |
74 | select CLKSRC_MMIO | |
c9165549 DL |
75 | help |
76 | Enables the support for the Orion timer driver | |
0c1dcfd5 | 77 | |
119fd635 | 78 | config SUN4I_TIMER |
b4fcd48b | 79 | bool "Sun4i timer driver" if COMPILE_TEST |
0901f184 | 80 | depends on GENERIC_CLOCKEVENTS |
71c568c0 | 81 | select CLKSRC_MMIO |
b4fcd48b DL |
82 | help |
83 | Enables support for the Sun4i timer. | |
b2ac5d75 | 84 | |
67905540 | 85 | config SUN5I_HSTIMER |
f0c5afb7 | 86 | bool "Sun5i timer driver" if COMPILE_TEST |
67905540 | 87 | select CLKSRC_MMIO |
f0c5afb7 DL |
88 | depends on COMMON_CLK |
89 | help | |
90 | Enables support the Sun5i timer. | |
67905540 | 91 | |
910978e7 | 92 | config TEGRA_TIMER |
adce4bc8 | 93 | bool "Tegra timer driver" if COMPILE_TEST |
2be6d9bf | 94 | select CLKSRC_MMIO |
adce4bc8 DL |
95 | depends on ARM |
96 | help | |
97 | Enables support for the Tegra driver. | |
910978e7 | 98 | |
ff7ec345 | 99 | config VT8500_TIMER |
b4bdf7ef | 100 | bool "VT8500 timer driver" if COMPILE_TEST |
0901f184 | 101 | depends on GENERIC_CLOCKEVENTS |
b4bdf7ef DL |
102 | help |
103 | Enables support for the VT8500 driver. | |
ff7ec345 | 104 | |
4f0f234f | 105 | config CADENCE_TTC_TIMER |
57f49318 DL |
106 | bool "Cadence TTC timer driver" if COMPILE_TEST |
107 | depends on COMMON_CLK | |
108 | help | |
109 | Enables support for the cadence ttc driver. | |
4f0f234f | 110 | |
a8b1b9fc | 111 | config ASM9260_TIMER |
b9755841 | 112 | bool "ASM9260 timer driver" if COMPILE_TEST |
0901f184 | 113 | depends on GENERIC_CLOCKEVENTS |
a8b1b9fc DL |
114 | select CLKSRC_MMIO |
115 | select CLKSRC_OF | |
b9755841 DL |
116 | help |
117 | Enables support for the ASM9260 timer. | |
a8b1b9fc | 118 | |
694e33a7 | 119 | config CLKSRC_NOMADIK_MTU |
70329653 DL |
120 | bool "Nomakdik clocksource driver" if COMPILE_TEST |
121 | depends on ARM | |
694e33a7 LW |
122 | select CLKSRC_MMIO |
123 | help | |
124 | Support for Multi Timer Unit. MTU provides access | |
125 | to multiple interrupt generating programmable | |
126 | 32-bit free running decrementing counters. | |
127 | ||
128 | config CLKSRC_NOMADIK_MTU_SCHED_CLOCK | |
129 | bool | |
130 | depends on CLKSRC_NOMADIK_MTU | |
131 | help | |
132 | Use the Multi Timer Unit as the sched_clock. | |
133 | ||
489bccea | 134 | config CLKSRC_DBX500_PRCMU |
1becd6ed | 135 | bool "Clocksource PRCMU Timer" if COMPILE_TEST |
0901f184 | 136 | depends on GENERIC_CLOCKEVENTS |
489bccea MW |
137 | help |
138 | Use the always on PRCMU Timer as clocksource | |
139 | ||
140 | config CLKSRC_DBX500_PRCMU_SCHED_CLOCK | |
141 | bool "Clocksource PRCMU Timer sched_clock" | |
694e33a7 | 142 | depends on (CLKSRC_DBX500_PRCMU && !CLKSRC_NOMADIK_MTU_SCHED_CLOCK) |
489bccea MW |
143 | default y |
144 | help | |
145 | Use the always on PRCMU Timer as sched_clock | |
985c0679 | 146 | |
9c9b7818 UKK |
147 | config CLKSRC_EFM32 |
148 | bool "Clocksource for Energy Micro's EFM32 SoCs" if !ARCH_EFM32 | |
149 | depends on OF && ARM && (ARCH_EFM32 || COMPILE_TEST) | |
09ca2757 | 150 | select CLKSRC_MMIO |
9c9b7818 UKK |
151 | default ARCH_EFM32 |
152 | help | |
153 | Support to use the timers of EFM32 SoCs as clock source and clock | |
154 | event device. | |
155 | ||
050dd322 | 156 | config CLKSRC_LPC32XX |
ddcf48c7 | 157 | bool "Clocksource for LPC32XX" if COMPILE_TEST |
863ee050 | 158 | depends on GENERIC_CLOCKEVENTS && HAS_IOMEM |
050dd322 JE |
159 | select CLKSRC_MMIO |
160 | select CLKSRC_OF | |
ddcf48c7 DL |
161 | help |
162 | Support for the LPC32XX clocksource. | |
050dd322 | 163 | |
84583983 | 164 | config CLKSRC_PISTACHIO |
dfdb1652 | 165 | bool "Clocksource for Pistachio SoC" if COMPILE_TEST |
863ee050 | 166 | depends on HAS_IOMEM |
84583983 | 167 | select CLKSRC_OF |
dfdb1652 DL |
168 | help |
169 | Enables the clocksource for the Pistachio SoC. | |
84583983 | 170 | |
fe851f56 FB |
171 | config CLKSRC_TI_32K |
172 | bool "Texas Instruments 32.768 Hz Clocksource" if COMPILE_TEST | |
dfedaf10 | 173 | depends on GENERIC_SCHED_CLOCK |
fe851f56 FB |
174 | select CLKSRC_OF if OF |
175 | help | |
176 | This option enables support for Texas Instruments 32.768 Hz clocksource | |
177 | available on many OMAP-like platforms. | |
178 | ||
e37e4593 | 179 | config CLKSRC_STM32 |
1cb6c215 PG |
180 | bool "Clocksource for STM32 SoCs" if !ARCH_STM32 |
181 | depends on OF && ARM && (ARCH_STM32 || COMPILE_TEST) | |
e37e4593 MC |
182 | select CLKSRC_MMIO |
183 | ||
8a4da6e3 MR |
184 | config ARM_ARCH_TIMER |
185 | bool | |
0583fe47 | 186 | select CLKSRC_OF if OF |
ae281cbd | 187 | select CLKSRC_ACPI if ACPI |
a2c5d4ed | 188 | |
037f6377 WD |
189 | config ARM_ARCH_TIMER_EVTSTREAM |
190 | bool "Support for ARM architected timer event stream generation" | |
191 | default y if ARM_ARCH_TIMER | |
77f7ce9a | 192 | depends on ARM_ARCH_TIMER |
037f6377 WD |
193 | help |
194 | This option enables support for event stream generation based on | |
195 | the ARM architected timer. It is used for waking up CPUs executing | |
196 | the wfe instruction at a frequency represented as a power-of-2 | |
197 | divisor of the clock rate. | |
198 | The main use of the event stream is wfe-based timeouts of userspace | |
199 | locking implementations. It might also be useful for imposing timeout | |
200 | on wfe to safeguard against any programming errors in case an expected | |
201 | event is not generated. | |
202 | This must be disabled for hardware validation purposes to detect any | |
203 | hardware anomalies of missing events. | |
204 | ||
c1b40e44 SM |
205 | config ARM_GLOBAL_TIMER |
206 | bool | |
207 | select CLKSRC_OF if OF | |
208 | help | |
209 | This options enables support for the ARM global timer unit | |
210 | ||
0b7402dc SH |
211 | config ARM_TIMER_SP804 |
212 | bool "Support for Dual Timer SP804 module" | |
002af195 | 213 | depends on GENERIC_SCHED_CLOCK && CLKDEV_LOOKUP |
0b7402dc SH |
214 | select CLKSRC_MMIO |
215 | select CLKSRC_OF if OF | |
216 | ||
c1b40e44 SM |
217 | config CLKSRC_ARM_GLOBAL_TIMER_SCHED_CLOCK |
218 | bool | |
219 | depends on ARM_GLOBAL_TIMER | |
220 | default y | |
221 | help | |
222 | Use ARM global timer clock source as sched_clock | |
223 | ||
4958ebb3 MC |
224 | config ARMV7M_SYSTICK |
225 | bool | |
226 | select CLKSRC_OF if OF | |
227 | select CLKSRC_MMIO | |
228 | help | |
229 | This options enables support for the ARMv7M system timer unit | |
230 | ||
b052ff30 MR |
231 | config ATMEL_PIT |
232 | select CLKSRC_OF if OF | |
233 | def_bool SOC_AT91SAM9 || SOC_SAMA5 | |
234 | ||
b53cdd03 AB |
235 | config ATMEL_ST |
236 | bool | |
237 | select CLKSRC_OF | |
7ab7ef74 | 238 | select MFD_SYSCON |
b53cdd03 | 239 | |
a2c5d4ed JH |
240 | config CLKSRC_METAG_GENERIC |
241 | def_bool y if METAG | |
242 | help | |
243 | This option enables support for the Meta per-thread timers. | |
6938d75a TA |
244 | |
245 | config CLKSRC_EXYNOS_MCT | |
39366ef4 DL |
246 | bool "Exynos multi core timer driver" if COMPILE_TEST |
247 | depends on ARM | |
6938d75a TA |
248 | help |
249 | Support for Multi Core Timer controller on Exynos SoCs. | |
241a9871 | 250 | |
f1189989 | 251 | config CLKSRC_SAMSUNG_PWM |
778c5696 | 252 | bool "PWM timer drvier for Samsung S3C, S5P" if COMPILE_TEST |
0901f184 | 253 | depends on GENERIC_CLOCKEVENTS |
f1189989 TF |
254 | help |
255 | This is a new clocksource driver for the PWM timer found in | |
256 | Samsung S3C, S5P and Exynos SoCs, replacing an earlier driver | |
257 | for all devicetree enabled platforms. This driver will be | |
258 | needed only on systems that do not have the Exynos MCT available. | |
c1967249 | 259 | |
2529c3a3 | 260 | config FSL_FTM_TIMER |
ef49336b | 261 | bool "Freescale FlexTimer Module driver" if COMPILE_TEST |
0901f184 | 262 | depends on GENERIC_CLOCKEVENTS |
03724ac3 | 263 | select CLKSRC_MMIO |
2529c3a3 XL |
264 | help |
265 | Support for Freescale FlexTimer Module (FTM) timer. | |
266 | ||
c1967249 JL |
267 | config VF_PIT_TIMER |
268 | bool | |
2be6d9bf | 269 | select CLKSRC_MMIO |
c1967249 JL |
270 | help |
271 | Support for Period Interrupt Timer on Freescale Vybrid Family SoCs. | |
fd3f1270 MD |
272 | |
273 | config SYS_SUPPORTS_SH_CMT | |
274 | bool | |
275 | ||
ecb3530d | 276 | config MTK_TIMER |
fbca9eab | 277 | bool "Mediatek timer driver" if COMPILE_TEST |
863ee050 | 278 | depends on GENERIC_CLOCKEVENTS && HAS_IOMEM |
ecb3530d MB |
279 | select CLKSRC_OF |
280 | select CLKSRC_MMIO | |
fbca9eab DL |
281 | help |
282 | Support for Mediatek timer driver. | |
ecb3530d | 283 | |
fd3f1270 MD |
284 | config SYS_SUPPORTS_SH_MTU2 |
285 | bool | |
286 | ||
287 | config SYS_SUPPORTS_SH_TMU | |
288 | bool | |
289 | ||
290 | config SYS_SUPPORTS_EM_STI | |
291 | bool | |
292 | ||
293 | config SH_TIMER_CMT | |
294 | bool "Renesas CMT timer driver" if COMPILE_TEST | |
87291a92 | 295 | depends on GENERIC_CLOCKEVENTS |
11bc26fe | 296 | depends on HAS_IOMEM |
fd3f1270 MD |
297 | default SYS_SUPPORTS_SH_CMT |
298 | help | |
299 | This enables build of a clocksource and clockevent driver for | |
300 | the Compare Match Timer (CMT) hardware available in 16/32/48-bit | |
301 | variants on a wide range of Mobile and Automotive SoCs from Renesas. | |
302 | ||
303 | config SH_TIMER_MTU2 | |
304 | bool "Renesas MTU2 timer driver" if COMPILE_TEST | |
87291a92 | 305 | depends on GENERIC_CLOCKEVENTS |
11bc26fe | 306 | depends on HAS_IOMEM |
fd3f1270 MD |
307 | default SYS_SUPPORTS_SH_MTU2 |
308 | help | |
309 | This enables build of a clockevent driver for the Multi-Function | |
7e139187 | 310 | Timer Pulse Unit 2 (MTU2) hardware available on SoCs from Renesas. |
fd3f1270 MD |
311 | This hardware comes with 16 bit-timer registers. |
312 | ||
313 | config SH_TIMER_TMU | |
314 | bool "Renesas TMU timer driver" if COMPILE_TEST | |
87291a92 | 315 | depends on GENERIC_CLOCKEVENTS |
11bc26fe | 316 | depends on HAS_IOMEM |
fd3f1270 MD |
317 | default SYS_SUPPORTS_SH_TMU |
318 | help | |
319 | This enables build of a clocksource and clockevent driver for | |
320 | the 32-bit Timer Unit (TMU) hardware available on a wide range | |
321 | SoCs from Renesas. | |
322 | ||
323 | config EM_TIMER_STI | |
324 | bool "Renesas STI timer driver" if COMPILE_TEST | |
40c96312 | 325 | depends on GENERIC_CLOCKEVENTS && HAS_IOMEM |
fd3f1270 MD |
326 | default SYS_SUPPORTS_EM_STI |
327 | help | |
328 | This enables build of a clocksource and clockevent driver for | |
329 | the 48-bit System Timer (STI) hardware available on a SoCs | |
330 | such as EMEV2 from former NEC Electronics. | |
dfc25e45 | 331 | |
3f8e8cee | 332 | config CLKSRC_QCOM |
3dc0e9f6 DL |
333 | bool "Qualcomm MSM timer" if COMPILE_TEST |
334 | depends on ARM | |
335 | select CLKSRC_OF | |
336 | help | |
337 | This enables the clocksource and the per CPU clockevent driver for the | |
338 | Qualcomm SoCs. | |
220e2a8d PM |
339 | |
340 | config CLKSRC_VERSATILE | |
341 | bool "ARM Versatile (Express) reference platforms clock source" | |
ff37015b | 342 | depends on PLAT_VERSATILE && GENERIC_SCHED_CLOCK && !ARCH_USES_GETTIMEOFFSET |
220e2a8d PM |
343 | select CLKSRC_OF |
344 | default y if MFD_VEXPRESS_SYSREG | |
345 | help | |
346 | This option enables clock source based on free running | |
347 | counter available in the "System Registers" block of | |
348 | ARM Versatile, RealView and Versatile Express reference | |
349 | platforms. | |
58394271 | 350 | |
fa5635a2 AB |
351 | config CLKSRC_MIPS_GIC |
352 | bool | |
353 | depends on MIPS_GIC | |
e12aa828 | 354 | select CLKSRC_OF |
fa5635a2 | 355 | |
ccd63ce4 | 356 | config CLKSRC_TANGO_XTAL |
5a7351f0 DL |
357 | bool "Clocksource for Tango SoC" if COMPILE_TEST |
358 | depends on ARM | |
ccd63ce4 | 359 | select CLKSRC_OF |
0881841f | 360 | select CLKSRC_MMIO |
5a7351f0 DL |
361 | help |
362 | This enables the clocksource for Tango SoC | |
ccd63ce4 | 363 | |
e074ff86 | 364 | config CLKSRC_PXA |
5ae996cb DL |
365 | bool "Clocksource for PXA or SA-11x0 platform" if COMPILE_TEST |
366 | depends on GENERIC_CLOCKEVENTS | |
367 | select CLKSRC_MMIO | |
e074ff86 DES |
368 | help |
369 | This enables OST0 support available on PXA and SA-11x0 | |
370 | platforms. | |
618b902d | 371 | |
97a23beb | 372 | config H8300_TMR8 |
46e7c3c6 | 373 | bool "Clockevent timer for the H8300 platform" if COMPILE_TEST |
863ee050 | 374 | depends on GENERIC_CLOCKEVENTS && HAS_IOMEM |
46e7c3c6 DL |
375 | help |
376 | This enables the 8 bits timer for the H8300 platform. | |
97a23beb | 377 | |
618b902d | 378 | config H8300_TMR16 |
46e7c3c6 | 379 | bool "Clockevent timer for the H83069 platform" if COMPILE_TEST |
863ee050 | 380 | depends on GENERIC_CLOCKEVENTS && HAS_IOMEM |
46e7c3c6 DL |
381 | help |
382 | This enables the 16 bits timer for the H8300 platform with the | |
383 | H83069 cpu. | |
618b902d YS |
384 | |
385 | config H8300_TPU | |
46e7c3c6 | 386 | bool "Clocksource for the H8300 platform" if COMPILE_TEST |
863ee050 | 387 | depends on GENERIC_CLOCKEVENTS && HAS_IOMEM |
46e7c3c6 DL |
388 | help |
389 | This enables the clocksource for the H8300 platform with the | |
390 | H8S2678 cpu. | |
618b902d | 391 | |
bea5af41 SG |
392 | config CLKSRC_IMX_GPT |
393 | bool "Clocksource using i.MX GPT" if COMPILE_TEST | |
394 | depends on ARM && CLKDEV_LOOKUP | |
395 | select CLKSRC_MMIO | |
396 | ||
70bef01c | 397 | config CLKSRC_ST_LPC |
baacaf83 | 398 | bool "Low power clocksource found in the LPC" if COMPILE_TEST |
70bef01c | 399 | select CLKSRC_OF if OF |
863ee050 | 400 | depends on HAS_IOMEM |
2be6d9bf | 401 | select CLKSRC_MMIO |
70bef01c LJ |
402 | help |
403 | Enable this option to use the Low Power controller timer | |
404 | as clocksource. | |
405 | ||
58394271 | 406 | endmenu |