Kconfig 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374
  1. menu "Clock Source drivers"
  2. depends on !ARCH_USES_GETTIMEOFFSET
  3. config CLKSRC_OF
  4. bool
  5. select CLKSRC_PROBE
  6. config CLKSRC_ACPI
  7. bool
  8. select CLKSRC_PROBE
  9. config CLKSRC_PROBE
  10. bool
  11. config CLKSRC_I8253
  12. bool
  13. config CLKEVT_I8253
  14. bool
  15. config I8253_LOCK
  16. bool
  17. config CLKBLD_I8253
  18. def_bool y if CLKSRC_I8253 || CLKEVT_I8253 || I8253_LOCK
  19. config CLKSRC_MMIO
  20. bool
  21. config DIGICOLOR_TIMER
  22. bool "Digicolor timer driver" if COMPILE_TEST
  23. help
  24. Enables the support for the digicolor timer driver.
  25. config DW_APB_TIMER
  26. bool "DW APB timer driver" if COMPILE_TEST
  27. help
  28. Enables the support for the dw_apb timer.
  29. config DW_APB_TIMER_OF
  30. bool
  31. select DW_APB_TIMER
  32. select CLKSRC_OF
  33. config ROCKCHIP_TIMER
  34. bool "Rockchip timer driver" if COMPILE_TEST
  35. depends on ARM || ARM64
  36. select CLKSRC_OF
  37. help
  38. Enables the support for the rockchip timer driver.
  39. config ARMADA_370_XP_TIMER
  40. bool "Armada 370 and XP timer driver" if COMPILE_TEST
  41. depends on ARM
  42. select CLKSRC_OF
  43. help
  44. Enables the support for the Armada 370 and XP timer driver.
  45. config MESON6_TIMER
  46. bool "Meson6 timer driver" if COMPILE_TEST
  47. select CLKSRC_MMIO
  48. help
  49. Enables the support for the Meson6 timer driver.
  50. config ORION_TIMER
  51. bool "Orion timer driver" if COMPILE_TEST
  52. depends on ARM
  53. select CLKSRC_OF
  54. select CLKSRC_MMIO
  55. help
  56. Enables the support for the Orion timer driver
  57. config SUN4I_TIMER
  58. bool "Sun4i timer driver" if COMPILE_TEST
  59. select CLKSRC_MMIO
  60. help
  61. Enables support for the Sun4i timer.
  62. config SUN5I_HSTIMER
  63. bool "Sun5i timer driver" if COMPILE_TEST
  64. select CLKSRC_MMIO
  65. depends on COMMON_CLK
  66. help
  67. Enables support the Sun5i timer.
  68. config TEGRA_TIMER
  69. bool "Tegra timer driver" if COMPILE_TEST
  70. depends on ARM
  71. help
  72. Enables support for the Tegra driver.
  73. config VT8500_TIMER
  74. bool "VT8500 timer driver" if COMPILE_TEST
  75. help
  76. Enables support for the VT8500 driver.
  77. config CADENCE_TTC_TIMER
  78. bool "Cadence TTC timer driver" if COMPILE_TEST
  79. depends on COMMON_CLK
  80. help
  81. Enables support for the cadence ttc driver.
  82. config ASM9260_TIMER
  83. bool "ASM9260 timer driver" if COMPILE_TEST
  84. select CLKSRC_MMIO
  85. select CLKSRC_OF
  86. help
  87. Enables support for the ASM9260 timer.
  88. config CLKSRC_NOMADIK_MTU
  89. bool
  90. depends on (ARCH_NOMADIK || ARCH_U8500)
  91. select CLKSRC_MMIO
  92. help
  93. Support for Multi Timer Unit. MTU provides access
  94. to multiple interrupt generating programmable
  95. 32-bit free running decrementing counters.
  96. config CLKSRC_NOMADIK_MTU_SCHED_CLOCK
  97. bool
  98. depends on CLKSRC_NOMADIK_MTU
  99. help
  100. Use the Multi Timer Unit as the sched_clock.
  101. config CLKSRC_DBX500_PRCMU
  102. bool "Clocksource PRCMU Timer"
  103. depends on UX500_SOC_DB8500
  104. default y
  105. help
  106. Use the always on PRCMU Timer as clocksource
  107. config CLKSRC_DBX500_PRCMU_SCHED_CLOCK
  108. bool "Clocksource PRCMU Timer sched_clock"
  109. depends on (CLKSRC_DBX500_PRCMU && !CLKSRC_NOMADIK_MTU_SCHED_CLOCK)
  110. default y
  111. help
  112. Use the always on PRCMU Timer as sched_clock
  113. config CLKSRC_EFM32
  114. bool "Clocksource for Energy Micro's EFM32 SoCs" if !ARCH_EFM32
  115. depends on OF && ARM && (ARCH_EFM32 || COMPILE_TEST)
  116. select CLKSRC_MMIO
  117. default ARCH_EFM32
  118. help
  119. Support to use the timers of EFM32 SoCs as clock source and clock
  120. event device.
  121. config CLKSRC_LPC32XX
  122. bool "Clocksource for LPC32XX" if COMPILE_TEST
  123. select CLKSRC_MMIO
  124. select CLKSRC_OF
  125. help
  126. Support for the LPC32XX clocksource.
  127. config CLKSRC_PISTACHIO
  128. bool "Clocksource for Pistachio SoC" if COMPILE_TEST
  129. select CLKSRC_OF
  130. help
  131. Enables the clocksource for the Pistachio SoC.
  132. config CLKSRC_TI_32K
  133. bool "Texas Instruments 32.768 Hz Clocksource" if COMPILE_TEST
  134. depends on GENERIC_SCHED_CLOCK
  135. select CLKSRC_OF if OF
  136. help
  137. This option enables support for Texas Instruments 32.768 Hz clocksource
  138. available on many OMAP-like platforms.
  139. config CLKSRC_STM32
  140. bool "Clocksource for STM32 SoCs" if !ARCH_STM32
  141. depends on OF && ARM && (ARCH_STM32 || COMPILE_TEST)
  142. select CLKSRC_MMIO
  143. config ARM_ARCH_TIMER
  144. bool
  145. select CLKSRC_OF if OF
  146. select CLKSRC_ACPI if ACPI
  147. config ARM_ARCH_TIMER_EVTSTREAM
  148. bool "Support for ARM architected timer event stream generation"
  149. default y if ARM_ARCH_TIMER
  150. depends on ARM_ARCH_TIMER
  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. config ARM_GLOBAL_TIMER
  163. bool
  164. select CLKSRC_OF if OF
  165. help
  166. This options enables support for the ARM global timer unit
  167. config ARM_TIMER_SP804
  168. bool "Support for Dual Timer SP804 module"
  169. depends on GENERIC_SCHED_CLOCK && CLKDEV_LOOKUP
  170. select CLKSRC_MMIO
  171. select CLKSRC_OF if OF
  172. config CLKSRC_ARM_GLOBAL_TIMER_SCHED_CLOCK
  173. bool
  174. depends on ARM_GLOBAL_TIMER
  175. default y
  176. help
  177. Use ARM global timer clock source as sched_clock
  178. config ARMV7M_SYSTICK
  179. bool
  180. select CLKSRC_OF if OF
  181. select CLKSRC_MMIO
  182. help
  183. This options enables support for the ARMv7M system timer unit
  184. config ATMEL_PIT
  185. select CLKSRC_OF if OF
  186. def_bool SOC_AT91SAM9 || SOC_SAMA5
  187. config ATMEL_ST
  188. bool
  189. select CLKSRC_OF
  190. select MFD_SYSCON
  191. config CLKSRC_METAG_GENERIC
  192. def_bool y if METAG
  193. help
  194. This option enables support for the Meta per-thread timers.
  195. config CLKSRC_EXYNOS_MCT
  196. def_bool y if ARCH_EXYNOS
  197. depends on !ARM64
  198. help
  199. Support for Multi Core Timer controller on Exynos SoCs.
  200. config CLKSRC_SAMSUNG_PWM
  201. bool
  202. help
  203. This is a new clocksource driver for the PWM timer found in
  204. Samsung S3C, S5P and Exynos SoCs, replacing an earlier driver
  205. for all devicetree enabled platforms. This driver will be
  206. needed only on systems that do not have the Exynos MCT available.
  207. config FSL_FTM_TIMER
  208. bool
  209. help
  210. Support for Freescale FlexTimer Module (FTM) timer.
  211. config VF_PIT_TIMER
  212. bool
  213. help
  214. Support for Period Interrupt Timer on Freescale Vybrid Family SoCs.
  215. config SYS_SUPPORTS_SH_CMT
  216. bool
  217. config MTK_TIMER
  218. bool "Mediatek timer driver" if COMPILE_TEST
  219. select CLKSRC_OF
  220. select CLKSRC_MMIO
  221. help
  222. Support for Mediatek timer driver.
  223. config SYS_SUPPORTS_SH_MTU2
  224. bool
  225. config SYS_SUPPORTS_SH_TMU
  226. bool
  227. config SYS_SUPPORTS_EM_STI
  228. bool
  229. config SH_TIMER_CMT
  230. bool "Renesas CMT timer driver" if COMPILE_TEST
  231. depends on GENERIC_CLOCKEVENTS
  232. depends on HAS_IOMEM
  233. default SYS_SUPPORTS_SH_CMT
  234. help
  235. This enables build of a clocksource and clockevent driver for
  236. the Compare Match Timer (CMT) hardware available in 16/32/48-bit
  237. variants on a wide range of Mobile and Automotive SoCs from Renesas.
  238. config SH_TIMER_MTU2
  239. bool "Renesas MTU2 timer driver" if COMPILE_TEST
  240. depends on GENERIC_CLOCKEVENTS
  241. depends on HAS_IOMEM
  242. default SYS_SUPPORTS_SH_MTU2
  243. help
  244. This enables build of a clockevent driver for the Multi-Function
  245. Timer Pulse Unit 2 (MTU2) hardware available on SoCs from Renesas.
  246. This hardware comes with 16 bit-timer registers.
  247. config SH_TIMER_TMU
  248. bool "Renesas TMU timer driver" if COMPILE_TEST
  249. depends on GENERIC_CLOCKEVENTS
  250. depends on HAS_IOMEM
  251. default SYS_SUPPORTS_SH_TMU
  252. help
  253. This enables build of a clocksource and clockevent driver for
  254. the 32-bit Timer Unit (TMU) hardware available on a wide range
  255. SoCs from Renesas.
  256. config EM_TIMER_STI
  257. bool "Renesas STI timer driver" if COMPILE_TEST
  258. depends on GENERIC_CLOCKEVENTS && HAS_IOMEM
  259. default SYS_SUPPORTS_EM_STI
  260. help
  261. This enables build of a clocksource and clockevent driver for
  262. the 48-bit System Timer (STI) hardware available on a SoCs
  263. such as EMEV2 from former NEC Electronics.
  264. config CLKSRC_QCOM
  265. bool "Qualcomm MSM timer" if COMPILE_TEST
  266. depends on ARM
  267. select CLKSRC_OF
  268. help
  269. This enables the clocksource and the per CPU clockevent driver for the
  270. Qualcomm SoCs.
  271. config CLKSRC_VERSATILE
  272. bool "ARM Versatile (Express) reference platforms clock source"
  273. depends on PLAT_VERSATILE && GENERIC_SCHED_CLOCK && !ARCH_USES_GETTIMEOFFSET
  274. select CLKSRC_OF
  275. default y if MFD_VEXPRESS_SYSREG
  276. help
  277. This option enables clock source based on free running
  278. counter available in the "System Registers" block of
  279. ARM Versatile, RealView and Versatile Express reference
  280. platforms.
  281. config CLKSRC_MIPS_GIC
  282. bool
  283. depends on MIPS_GIC
  284. select CLKSRC_OF
  285. config CLKSRC_TANGO_XTAL
  286. bool "Clocksource for Tango SoC" if COMPILE_TEST
  287. depends on ARM
  288. select CLKSRC_OF
  289. help
  290. This enables the clocksource for Tango SoC
  291. config CLKSRC_PXA
  292. bool "Clocksource for PXA or SA-11x0 platform" if COMPILE_TEST
  293. depends on GENERIC_CLOCKEVENTS
  294. select CLKSRC_MMIO
  295. help
  296. This enables OST0 support available on PXA and SA-11x0
  297. platforms.
  298. config H8300_TMR16
  299. bool
  300. config H8300_TPU
  301. bool
  302. config CLKSRC_IMX_GPT
  303. bool "Clocksource using i.MX GPT" if COMPILE_TEST
  304. depends on ARM && CLKDEV_LOOKUP
  305. select CLKSRC_MMIO
  306. config CLKSRC_ST_LPC
  307. bool "Low power clocksource found in the LPC" if COMPILE_TEST
  308. select CLKSRC_OF if OF
  309. help
  310. Enable this option to use the Low Power controller timer
  311. as clocksource.
  312. endmenu