xref: /openbmc/linux/drivers/clocksource/Kconfig (revision 87291a92)
1ae278a93SStephen Warrenconfig CLKSRC_OF
2ae278a93SStephen Warren	bool
3ae278a93SStephen Warren
489c0b8e2SRussell Kingconfig CLKSRC_I8253
589c0b8e2SRussell King	bool
6442c8176SRussell King
7e6220bdcSThomas Gleixnerconfig CLKEVT_I8253
8e6220bdcSThomas Gleixner	bool
9e6220bdcSThomas Gleixner
1015f304b6SRalf Baechleconfig I8253_LOCK
1115f304b6SRalf Baechle	bool
1215f304b6SRalf Baechle
1315f304b6SRalf Baechleconfig CLKBLD_I8253
14e6220bdcSThomas Gleixner	def_bool y if CLKSRC_I8253 || CLKEVT_I8253 || I8253_LOCK
1515f304b6SRalf Baechle
16442c8176SRussell Kingconfig CLKSRC_MMIO
17442c8176SRussell King	bool
1806c3df49SJamie Iles
1906c3df49SJamie Ilesconfig DW_APB_TIMER
2006c3df49SJamie Iles	bool
21489bcceaSMattias Wallin
22cfda5901SDinh Nguyenconfig DW_APB_TIMER_OF
23cfda5901SDinh Nguyen	bool
241b4eca0fSHeiko Stuebner	select DW_APB_TIMER
2510021488SHeiko Stuebner	select CLKSRC_OF
26cfda5901SDinh Nguyen
276fe9cbd1SGregory CLEMENTconfig ARMADA_370_XP_TIMER
286fe9cbd1SGregory CLEMENT	bool
297b0dd72aSJean Pihet	select CLKSRC_OF
306fe9cbd1SGregory CLEMENT
310c1dcfd5SSebastian Hesselbarthconfig ORION_TIMER
320c1dcfd5SSebastian Hesselbarth	select CLKSRC_OF
330c1dcfd5SSebastian Hesselbarth	select CLKSRC_MMIO
340c1dcfd5SSebastian Hesselbarth	bool
350c1dcfd5SSebastian Hesselbarth
36119fd635SMaxime Ripardconfig SUN4I_TIMER
3771c568c0SMaxime Ripard	select CLKSRC_MMIO
38b2ac5d75SMaxime Ripard	bool
39b2ac5d75SMaxime Ripard
4067905540SMaxime Ripardconfig SUN5I_HSTIMER
4167905540SMaxime Ripard	select CLKSRC_MMIO
4267905540SMaxime Ripard	bool
4367905540SMaxime Ripard
44ff7ec345STony Priskconfig VT8500_TIMER
45ff7ec345STony Prisk	bool
46ff7ec345STony Prisk
474f0f234fSMichal Simekconfig CADENCE_TTC_TIMER
484f0f234fSMichal Simek	bool
494f0f234fSMichal Simek
50694e33a7SLinus Walleijconfig CLKSRC_NOMADIK_MTU
51694e33a7SLinus Walleij	bool
52694e33a7SLinus Walleij	depends on (ARCH_NOMADIK || ARCH_U8500)
53694e33a7SLinus Walleij	select CLKSRC_MMIO
54694e33a7SLinus Walleij	help
55694e33a7SLinus Walleij	  Support for Multi Timer Unit. MTU provides access
56694e33a7SLinus Walleij	  to multiple interrupt generating programmable
57694e33a7SLinus Walleij	  32-bit free running decrementing counters.
58694e33a7SLinus Walleij
59694e33a7SLinus Walleijconfig CLKSRC_NOMADIK_MTU_SCHED_CLOCK
60694e33a7SLinus Walleij	bool
61694e33a7SLinus Walleij	depends on CLKSRC_NOMADIK_MTU
62694e33a7SLinus Walleij	help
63694e33a7SLinus Walleij	  Use the Multi Timer Unit as the sched_clock.
64694e33a7SLinus Walleij
65489bcceaSMattias Wallinconfig CLKSRC_DBX500_PRCMU
66489bcceaSMattias Wallin	bool "Clocksource PRCMU Timer"
6729746f48SLinus Walleij	depends on UX500_SOC_DB8500
68489bcceaSMattias Wallin	default y
69489bcceaSMattias Wallin	help
70489bcceaSMattias Wallin	  Use the always on PRCMU Timer as clocksource
71489bcceaSMattias Wallin
72489bcceaSMattias Wallinconfig CLKSRC_DBX500_PRCMU_SCHED_CLOCK
73489bcceaSMattias Wallin	bool "Clocksource PRCMU Timer sched_clock"
74694e33a7SLinus Walleij	depends on (CLKSRC_DBX500_PRCMU && !CLKSRC_NOMADIK_MTU_SCHED_CLOCK)
75489bcceaSMattias Wallin	default y
76489bcceaSMattias Wallin	help
77489bcceaSMattias Wallin	  Use the always on PRCMU Timer as sched_clock
78985c0679SMarc Zyngier
799c9b7818SUwe Kleine-Königconfig CLKSRC_EFM32
809c9b7818SUwe Kleine-König	bool "Clocksource for Energy Micro's EFM32 SoCs" if !ARCH_EFM32
819c9b7818SUwe Kleine-König	depends on OF && ARM && (ARCH_EFM32 || COMPILE_TEST)
8209ca2757SAxel Lin	select CLKSRC_MMIO
839c9b7818SUwe Kleine-König	default ARCH_EFM32
849c9b7818SUwe Kleine-König	help
859c9b7818SUwe Kleine-König	  Support to use the timers of EFM32 SoCs as clock source and clock
869c9b7818SUwe Kleine-König	  event device.
879c9b7818SUwe Kleine-König
888a4da6e3SMark Rutlandconfig ARM_ARCH_TIMER
898a4da6e3SMark Rutland	bool
900583fe47SRob Herring	select CLKSRC_OF if OF
91a2c5d4edSJames Hogan
92037f6377SWill Deaconconfig ARM_ARCH_TIMER_EVTSTREAM
93037f6377SWill Deacon	bool "Support for ARM architected timer event stream generation"
94037f6377SWill Deacon	default y if ARM_ARCH_TIMER
9577f7ce9aSStephen Boyd	depends on ARM_ARCH_TIMER
96037f6377SWill Deacon	help
97037f6377SWill Deacon	  This option enables support for event stream generation based on
98037f6377SWill Deacon	  the ARM architected timer. It is used for waking up CPUs executing
99037f6377SWill Deacon	  the wfe instruction at a frequency represented as a power-of-2
100037f6377SWill Deacon	  divisor of the clock rate.
101037f6377SWill Deacon	  The main use of the event stream is wfe-based timeouts of userspace
102037f6377SWill Deacon	  locking implementations. It might also be useful for imposing timeout
103037f6377SWill Deacon	  on wfe to safeguard against any programming errors in case an expected
104037f6377SWill Deacon	  event is not generated.
105037f6377SWill Deacon	  This must be disabled for hardware validation purposes to detect any
106037f6377SWill Deacon	  hardware anomalies of missing events.
107037f6377SWill Deacon
108c1b40e44SStuart Menefyconfig ARM_GLOBAL_TIMER
109c1b40e44SStuart Menefy	bool
110c1b40e44SStuart Menefy	select CLKSRC_OF if OF
111c1b40e44SStuart Menefy	help
112c1b40e44SStuart Menefy	  This options enables support for the ARM global timer unit
113c1b40e44SStuart Menefy
114c1b40e44SStuart Menefyconfig CLKSRC_ARM_GLOBAL_TIMER_SCHED_CLOCK
115c1b40e44SStuart Menefy	bool
116c1b40e44SStuart Menefy	depends on ARM_GLOBAL_TIMER
117c1b40e44SStuart Menefy	default y
118c1b40e44SStuart Menefy	help
119c1b40e44SStuart Menefy	 Use ARM global timer clock source as sched_clock
120c1b40e44SStuart Menefy
121a2c5d4edSJames Hoganconfig CLKSRC_METAG_GENERIC
122a2c5d4edSJames Hogan	def_bool y if METAG
123a2c5d4edSJames Hogan	help
124a2c5d4edSJames Hogan	  This option enables support for the Meta per-thread timers.
1256938d75aSThomas Abraham
1266938d75aSThomas Abrahamconfig CLKSRC_EXYNOS_MCT
1276938d75aSThomas Abraham	def_bool y if ARCH_EXYNOS
1286938d75aSThomas Abraham	help
1296938d75aSThomas Abraham	  Support for Multi Core Timer controller on Exynos SoCs.
130241a9871SArnd Bergmann
131f1189989STomasz Figaconfig CLKSRC_SAMSUNG_PWM
13277d84434STomasz Figa	bool
133f1189989STomasz Figa	help
134f1189989STomasz Figa	  This is a new clocksource driver for the PWM timer found in
135f1189989STomasz Figa	  Samsung S3C, S5P and Exynos SoCs, replacing an earlier driver
136f1189989STomasz Figa	  for all devicetree enabled platforms. This driver will be
137f1189989STomasz Figa	  needed only on systems that do not have the Exynos MCT available.
138c1967249SJingchang Lu
139c1967249SJingchang Luconfig VF_PIT_TIMER
140c1967249SJingchang Lu	bool
141c1967249SJingchang Lu	help
142c1967249SJingchang Lu	  Support for Period Interrupt Timer on Freescale Vybrid Family SoCs.
143fd3f1270SMagnus Damm
144fd3f1270SMagnus Dammconfig SYS_SUPPORTS_SH_CMT
145fd3f1270SMagnus Damm        bool
146fd3f1270SMagnus Damm
147fd3f1270SMagnus Dammconfig SYS_SUPPORTS_SH_MTU2
148fd3f1270SMagnus Damm        bool
149fd3f1270SMagnus Damm
150fd3f1270SMagnus Dammconfig SYS_SUPPORTS_SH_TMU
151fd3f1270SMagnus Damm        bool
152fd3f1270SMagnus Damm
153fd3f1270SMagnus Dammconfig SYS_SUPPORTS_EM_STI
154fd3f1270SMagnus Damm        bool
155fd3f1270SMagnus Damm
156fd3f1270SMagnus Dammconfig SH_TIMER_CMT
157fd3f1270SMagnus Damm	bool "Renesas CMT timer driver" if COMPILE_TEST
15887291a92SGeert Uytterhoeven	depends on GENERIC_CLOCKEVENTS
159fd3f1270SMagnus Damm	default SYS_SUPPORTS_SH_CMT
160fd3f1270SMagnus Damm	help
161fd3f1270SMagnus Damm	  This enables build of a clocksource and clockevent driver for
162fd3f1270SMagnus Damm	  the Compare Match Timer (CMT) hardware available in 16/32/48-bit
163fd3f1270SMagnus Damm	  variants on a wide range of Mobile and Automotive SoCs from Renesas.
164fd3f1270SMagnus Damm
165fd3f1270SMagnus Dammconfig SH_TIMER_MTU2
166fd3f1270SMagnus Damm	bool "Renesas MTU2 timer driver" if COMPILE_TEST
16787291a92SGeert Uytterhoeven	depends on GENERIC_CLOCKEVENTS
168fd3f1270SMagnus Damm	default SYS_SUPPORTS_SH_MTU2
169fd3f1270SMagnus Damm	help
170fd3f1270SMagnus Damm	  This enables build of a clockevent driver for the Multi-Function
171fd3f1270SMagnus Damm	  Timer Pulse Unit 2 (TMU2) hardware available on SoCs from Renesas.
172fd3f1270SMagnus Damm	  This hardware comes with 16 bit-timer registers.
173fd3f1270SMagnus Damm
174fd3f1270SMagnus Dammconfig SH_TIMER_TMU
175fd3f1270SMagnus Damm	bool "Renesas TMU timer driver" if COMPILE_TEST
17687291a92SGeert Uytterhoeven	depends on GENERIC_CLOCKEVENTS
177fd3f1270SMagnus Damm	default SYS_SUPPORTS_SH_TMU
178fd3f1270SMagnus Damm	help
179fd3f1270SMagnus Damm	  This enables build of a clocksource and clockevent driver for
180fd3f1270SMagnus Damm	  the 32-bit Timer Unit (TMU) hardware available on a wide range
181fd3f1270SMagnus Damm	  SoCs from Renesas.
182fd3f1270SMagnus Damm
183fd3f1270SMagnus Dammconfig EM_TIMER_STI
184fd3f1270SMagnus Damm	bool "Renesas STI timer driver" if COMPILE_TEST
18587291a92SGeert Uytterhoeven	depends on GENERIC_CLOCKEVENTS
186fd3f1270SMagnus Damm	default SYS_SUPPORTS_EM_STI
187fd3f1270SMagnus Damm	help
188fd3f1270SMagnus Damm	  This enables build of a clocksource and clockevent driver for
189fd3f1270SMagnus Damm	  the 48-bit System Timer (STI) hardware available on a SoCs
190fd3f1270SMagnus Damm	  such as EMEV2 from former NEC Electronics.
191