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