Kconfig 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372
  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 "Nomakdik clocksource driver" if COMPILE_TEST
  90. depends on ARM
  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" if COMPILE_TEST
  103. help
  104. Use the always on PRCMU Timer as clocksource
  105. config CLKSRC_DBX500_PRCMU_SCHED_CLOCK
  106. bool "Clocksource PRCMU Timer sched_clock"
  107. depends on (CLKSRC_DBX500_PRCMU && !CLKSRC_NOMADIK_MTU_SCHED_CLOCK)
  108. default y
  109. help
  110. Use the always on PRCMU Timer as sched_clock
  111. config CLKSRC_EFM32
  112. bool "Clocksource for Energy Micro's EFM32 SoCs" if !ARCH_EFM32
  113. depends on OF && ARM && (ARCH_EFM32 || COMPILE_TEST)
  114. select CLKSRC_MMIO
  115. default ARCH_EFM32
  116. help
  117. Support to use the timers of EFM32 SoCs as clock source and clock
  118. event device.
  119. config CLKSRC_LPC32XX
  120. bool "Clocksource for LPC32XX" if COMPILE_TEST
  121. select CLKSRC_MMIO
  122. select CLKSRC_OF
  123. help
  124. Support for the LPC32XX clocksource.
  125. config CLKSRC_PISTACHIO
  126. bool "Clocksource for Pistachio SoC" if COMPILE_TEST
  127. select CLKSRC_OF
  128. help
  129. Enables the clocksource for the Pistachio SoC.
  130. config CLKSRC_TI_32K
  131. bool "Texas Instruments 32.768 Hz Clocksource" if COMPILE_TEST
  132. depends on GENERIC_SCHED_CLOCK
  133. select CLKSRC_OF if OF
  134. help
  135. This option enables support for Texas Instruments 32.768 Hz clocksource
  136. available on many OMAP-like platforms.
  137. config CLKSRC_STM32
  138. bool "Clocksource for STM32 SoCs" if !ARCH_STM32
  139. depends on OF && ARM && (ARCH_STM32 || COMPILE_TEST)
  140. select CLKSRC_MMIO
  141. config ARM_ARCH_TIMER
  142. bool
  143. select CLKSRC_OF if OF
  144. select CLKSRC_ACPI if ACPI
  145. config ARM_ARCH_TIMER_EVTSTREAM
  146. bool "Support for ARM architected timer event stream generation"
  147. default y if ARM_ARCH_TIMER
  148. depends on ARM_ARCH_TIMER
  149. help
  150. This option enables support for event stream generation based on
  151. the ARM architected timer. It is used for waking up CPUs executing
  152. the wfe instruction at a frequency represented as a power-of-2
  153. divisor of the clock rate.
  154. The main use of the event stream is wfe-based timeouts of userspace
  155. locking implementations. It might also be useful for imposing timeout
  156. on wfe to safeguard against any programming errors in case an expected
  157. event is not generated.
  158. This must be disabled for hardware validation purposes to detect any
  159. hardware anomalies of missing events.
  160. config ARM_GLOBAL_TIMER
  161. bool
  162. select CLKSRC_OF if OF
  163. help
  164. This options enables support for the ARM global timer unit
  165. config ARM_TIMER_SP804
  166. bool "Support for Dual Timer SP804 module"
  167. depends on GENERIC_SCHED_CLOCK && CLKDEV_LOOKUP
  168. select CLKSRC_MMIO
  169. select CLKSRC_OF if OF
  170. config CLKSRC_ARM_GLOBAL_TIMER_SCHED_CLOCK
  171. bool
  172. depends on ARM_GLOBAL_TIMER
  173. default y
  174. help
  175. Use ARM global timer clock source as sched_clock
  176. config ARMV7M_SYSTICK
  177. bool
  178. select CLKSRC_OF if OF
  179. select CLKSRC_MMIO
  180. help
  181. This options enables support for the ARMv7M system timer unit
  182. config ATMEL_PIT
  183. select CLKSRC_OF if OF
  184. def_bool SOC_AT91SAM9 || SOC_SAMA5
  185. config ATMEL_ST
  186. bool
  187. select CLKSRC_OF
  188. select MFD_SYSCON
  189. config CLKSRC_METAG_GENERIC
  190. def_bool y if METAG
  191. help
  192. This option enables support for the Meta per-thread timers.
  193. config CLKSRC_EXYNOS_MCT
  194. bool "Exynos multi core timer driver" if COMPILE_TEST
  195. depends on ARM
  196. help
  197. Support for Multi Core Timer controller on Exynos SoCs.
  198. config CLKSRC_SAMSUNG_PWM
  199. bool "PWM timer drvier for Samsung S3C, S5P" if COMPILE_TEST
  200. help
  201. This is a new clocksource driver for the PWM timer found in
  202. Samsung S3C, S5P and Exynos SoCs, replacing an earlier driver
  203. for all devicetree enabled platforms. This driver will be
  204. needed only on systems that do not have the Exynos MCT available.
  205. config FSL_FTM_TIMER
  206. bool "Freescale FlexTimer Module driver" if COMPILE_TEST
  207. help
  208. Support for Freescale FlexTimer Module (FTM) timer.
  209. config VF_PIT_TIMER
  210. bool
  211. help
  212. Support for Period Interrupt Timer on Freescale Vybrid Family SoCs.
  213. config SYS_SUPPORTS_SH_CMT
  214. bool
  215. config MTK_TIMER
  216. bool "Mediatek timer driver" if COMPILE_TEST
  217. select CLKSRC_OF
  218. select CLKSRC_MMIO
  219. help
  220. Support for Mediatek timer driver.
  221. config SYS_SUPPORTS_SH_MTU2
  222. bool
  223. config SYS_SUPPORTS_SH_TMU
  224. bool
  225. config SYS_SUPPORTS_EM_STI
  226. bool
  227. config SH_TIMER_CMT
  228. bool "Renesas CMT timer driver" if COMPILE_TEST
  229. depends on GENERIC_CLOCKEVENTS
  230. depends on HAS_IOMEM
  231. default SYS_SUPPORTS_SH_CMT
  232. help
  233. This enables build of a clocksource and clockevent driver for
  234. the Compare Match Timer (CMT) hardware available in 16/32/48-bit
  235. variants on a wide range of Mobile and Automotive SoCs from Renesas.
  236. config SH_TIMER_MTU2
  237. bool "Renesas MTU2 timer driver" if COMPILE_TEST
  238. depends on GENERIC_CLOCKEVENTS
  239. depends on HAS_IOMEM
  240. default SYS_SUPPORTS_SH_MTU2
  241. help
  242. This enables build of a clockevent driver for the Multi-Function
  243. Timer Pulse Unit 2 (MTU2) hardware available on SoCs from Renesas.
  244. This hardware comes with 16 bit-timer registers.
  245. config SH_TIMER_TMU
  246. bool "Renesas TMU timer driver" if COMPILE_TEST
  247. depends on GENERIC_CLOCKEVENTS
  248. depends on HAS_IOMEM
  249. default SYS_SUPPORTS_SH_TMU
  250. help
  251. This enables build of a clocksource and clockevent driver for
  252. the 32-bit Timer Unit (TMU) hardware available on a wide range
  253. SoCs from Renesas.
  254. config EM_TIMER_STI
  255. bool "Renesas STI timer driver" if COMPILE_TEST
  256. depends on GENERIC_CLOCKEVENTS && HAS_IOMEM
  257. default SYS_SUPPORTS_EM_STI
  258. help
  259. This enables build of a clocksource and clockevent driver for
  260. the 48-bit System Timer (STI) hardware available on a SoCs
  261. such as EMEV2 from former NEC Electronics.
  262. config CLKSRC_QCOM
  263. bool "Qualcomm MSM timer" if COMPILE_TEST
  264. depends on ARM
  265. select CLKSRC_OF
  266. help
  267. This enables the clocksource and the per CPU clockevent driver for the
  268. Qualcomm SoCs.
  269. config CLKSRC_VERSATILE
  270. bool "ARM Versatile (Express) reference platforms clock source"
  271. depends on PLAT_VERSATILE && GENERIC_SCHED_CLOCK && !ARCH_USES_GETTIMEOFFSET
  272. select CLKSRC_OF
  273. default y if MFD_VEXPRESS_SYSREG
  274. help
  275. This option enables clock source based on free running
  276. counter available in the "System Registers" block of
  277. ARM Versatile, RealView and Versatile Express reference
  278. platforms.
  279. config CLKSRC_MIPS_GIC
  280. bool
  281. depends on MIPS_GIC
  282. select CLKSRC_OF
  283. config CLKSRC_TANGO_XTAL
  284. bool "Clocksource for Tango SoC" if COMPILE_TEST
  285. depends on ARM
  286. select CLKSRC_OF
  287. help
  288. This enables the clocksource for Tango SoC
  289. config CLKSRC_PXA
  290. bool "Clocksource for PXA or SA-11x0 platform" if COMPILE_TEST
  291. depends on GENERIC_CLOCKEVENTS
  292. select CLKSRC_MMIO
  293. help
  294. This enables OST0 support available on PXA and SA-11x0
  295. platforms.
  296. config H8300_TMR16
  297. bool
  298. config H8300_TPU
  299. bool
  300. config CLKSRC_IMX_GPT
  301. bool "Clocksource using i.MX GPT" if COMPILE_TEST
  302. depends on ARM && CLKDEV_LOOKUP
  303. select CLKSRC_MMIO
  304. config CLKSRC_ST_LPC
  305. bool "Low power clocksource found in the LPC" if COMPILE_TEST
  306. select CLKSRC_OF if OF
  307. help
  308. Enable this option to use the Low Power controller timer
  309. as clocksource.
  310. endmenu