Kconfig 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  1. menu "Clock Source drivers"
  2. config CLKSRC_OF
  3. bool
  4. config CLKSRC_I8253
  5. bool
  6. config CLKEVT_I8253
  7. bool
  8. config I8253_LOCK
  9. bool
  10. config CLKBLD_I8253
  11. def_bool y if CLKSRC_I8253 || CLKEVT_I8253 || I8253_LOCK
  12. config CLKSRC_MMIO
  13. bool
  14. config DIGICOLOR_TIMER
  15. bool
  16. config DW_APB_TIMER
  17. bool
  18. config DW_APB_TIMER_OF
  19. bool
  20. select DW_APB_TIMER
  21. select CLKSRC_OF
  22. config ROCKCHIP_TIMER
  23. bool
  24. select CLKSRC_OF
  25. config ARMADA_370_XP_TIMER
  26. bool
  27. select CLKSRC_OF
  28. config MESON6_TIMER
  29. bool
  30. select CLKSRC_MMIO
  31. config ORION_TIMER
  32. select CLKSRC_OF
  33. select CLKSRC_MMIO
  34. bool
  35. config SUN4I_TIMER
  36. select CLKSRC_MMIO
  37. bool
  38. config SUN5I_HSTIMER
  39. select CLKSRC_MMIO
  40. bool
  41. config TEGRA_TIMER
  42. bool
  43. config VT8500_TIMER
  44. bool
  45. config CADENCE_TTC_TIMER
  46. bool
  47. config ASM9260_TIMER
  48. bool
  49. select CLKSRC_MMIO
  50. select CLKSRC_OF
  51. config CLKSRC_NOMADIK_MTU
  52. bool
  53. depends on (ARCH_NOMADIK || ARCH_U8500)
  54. select CLKSRC_MMIO
  55. help
  56. Support for Multi Timer Unit. MTU provides access
  57. to multiple interrupt generating programmable
  58. 32-bit free running decrementing counters.
  59. config CLKSRC_NOMADIK_MTU_SCHED_CLOCK
  60. bool
  61. depends on CLKSRC_NOMADIK_MTU
  62. help
  63. Use the Multi Timer Unit as the sched_clock.
  64. config CLKSRC_DBX500_PRCMU
  65. bool "Clocksource PRCMU Timer"
  66. depends on UX500_SOC_DB8500
  67. default y
  68. help
  69. Use the always on PRCMU Timer as clocksource
  70. config CLKSRC_DBX500_PRCMU_SCHED_CLOCK
  71. bool "Clocksource PRCMU Timer sched_clock"
  72. depends on (CLKSRC_DBX500_PRCMU && !CLKSRC_NOMADIK_MTU_SCHED_CLOCK)
  73. default y
  74. help
  75. Use the always on PRCMU Timer as sched_clock
  76. config CLKSRC_EFM32
  77. bool "Clocksource for Energy Micro's EFM32 SoCs" if !ARCH_EFM32
  78. depends on OF && ARM && (ARCH_EFM32 || COMPILE_TEST)
  79. select CLKSRC_MMIO
  80. default ARCH_EFM32
  81. help
  82. Support to use the timers of EFM32 SoCs as clock source and clock
  83. event device.
  84. config CLKSRC_LPC32XX
  85. bool
  86. select CLKSRC_MMIO
  87. select CLKSRC_OF
  88. config CLKSRC_PISTACHIO
  89. bool
  90. select CLKSRC_OF
  91. config CLKSRC_STM32
  92. bool "Clocksource for STM32 SoCs" if !ARCH_STM32
  93. depends on OF && ARM && (ARCH_STM32 || COMPILE_TEST)
  94. select CLKSRC_MMIO
  95. config ARM_ARCH_TIMER
  96. bool
  97. select CLKSRC_OF if OF
  98. config ARM_ARCH_TIMER_EVTSTREAM
  99. bool "Support for ARM architected timer event stream generation"
  100. default y if ARM_ARCH_TIMER
  101. depends on ARM_ARCH_TIMER
  102. help
  103. This option enables support for event stream generation based on
  104. the ARM architected timer. It is used for waking up CPUs executing
  105. the wfe instruction at a frequency represented as a power-of-2
  106. divisor of the clock rate.
  107. The main use of the event stream is wfe-based timeouts of userspace
  108. locking implementations. It might also be useful for imposing timeout
  109. on wfe to safeguard against any programming errors in case an expected
  110. event is not generated.
  111. This must be disabled for hardware validation purposes to detect any
  112. hardware anomalies of missing events.
  113. config ARM_GLOBAL_TIMER
  114. bool
  115. select CLKSRC_OF if OF
  116. help
  117. This options enables support for the ARM global timer unit
  118. config ARM_TIMER_SP804
  119. bool "Support for Dual Timer SP804 module"
  120. depends on GENERIC_SCHED_CLOCK && CLKDEV_LOOKUP
  121. select CLKSRC_MMIO
  122. select CLKSRC_OF if OF
  123. config CLKSRC_ARM_GLOBAL_TIMER_SCHED_CLOCK
  124. bool
  125. depends on ARM_GLOBAL_TIMER
  126. default y
  127. help
  128. Use ARM global timer clock source as sched_clock
  129. config ARMV7M_SYSTICK
  130. bool
  131. select CLKSRC_OF if OF
  132. select CLKSRC_MMIO
  133. help
  134. This options enables support for the ARMv7M system timer unit
  135. config ATMEL_PIT
  136. select CLKSRC_OF if OF
  137. def_bool SOC_AT91SAM9 || SOC_SAMA5
  138. config ATMEL_ST
  139. bool
  140. select CLKSRC_OF
  141. select MFD_SYSCON
  142. config CLKSRC_METAG_GENERIC
  143. def_bool y if METAG
  144. help
  145. This option enables support for the Meta per-thread timers.
  146. config CLKSRC_EXYNOS_MCT
  147. def_bool y if ARCH_EXYNOS
  148. depends on !ARM64
  149. help
  150. Support for Multi Core Timer controller on Exynos SoCs.
  151. config CLKSRC_SAMSUNG_PWM
  152. bool
  153. help
  154. This is a new clocksource driver for the PWM timer found in
  155. Samsung S3C, S5P and Exynos SoCs, replacing an earlier driver
  156. for all devicetree enabled platforms. This driver will be
  157. needed only on systems that do not have the Exynos MCT available.
  158. config FSL_FTM_TIMER
  159. bool
  160. help
  161. Support for Freescale FlexTimer Module (FTM) timer.
  162. config VF_PIT_TIMER
  163. bool
  164. help
  165. Support for Period Interrupt Timer on Freescale Vybrid Family SoCs.
  166. config SYS_SUPPORTS_SH_CMT
  167. bool
  168. config MTK_TIMER
  169. select CLKSRC_OF
  170. select CLKSRC_MMIO
  171. bool
  172. config SYS_SUPPORTS_SH_MTU2
  173. bool
  174. config SYS_SUPPORTS_SH_TMU
  175. bool
  176. config SYS_SUPPORTS_EM_STI
  177. bool
  178. config SH_TIMER_CMT
  179. bool "Renesas CMT timer driver" if COMPILE_TEST
  180. depends on GENERIC_CLOCKEVENTS
  181. depends on HAS_IOMEM
  182. default SYS_SUPPORTS_SH_CMT
  183. help
  184. This enables build of a clocksource and clockevent driver for
  185. the Compare Match Timer (CMT) hardware available in 16/32/48-bit
  186. variants on a wide range of Mobile and Automotive SoCs from Renesas.
  187. config SH_TIMER_MTU2
  188. bool "Renesas MTU2 timer driver" if COMPILE_TEST
  189. depends on GENERIC_CLOCKEVENTS
  190. depends on HAS_IOMEM
  191. default SYS_SUPPORTS_SH_MTU2
  192. help
  193. This enables build of a clockevent driver for the Multi-Function
  194. Timer Pulse Unit 2 (MTU2) hardware available on SoCs from Renesas.
  195. This hardware comes with 16 bit-timer registers.
  196. config SH_TIMER_TMU
  197. bool "Renesas TMU timer driver" if COMPILE_TEST
  198. depends on GENERIC_CLOCKEVENTS
  199. depends on HAS_IOMEM
  200. default SYS_SUPPORTS_SH_TMU
  201. help
  202. This enables build of a clocksource and clockevent driver for
  203. the 32-bit Timer Unit (TMU) hardware available on a wide range
  204. SoCs from Renesas.
  205. config EM_TIMER_STI
  206. bool "Renesas STI timer driver" if COMPILE_TEST
  207. depends on GENERIC_CLOCKEVENTS && HAS_IOMEM
  208. default SYS_SUPPORTS_EM_STI
  209. help
  210. This enables build of a clocksource and clockevent driver for
  211. the 48-bit System Timer (STI) hardware available on a SoCs
  212. such as EMEV2 from former NEC Electronics.
  213. config CLKSRC_QCOM
  214. bool
  215. config CLKSRC_VERSATILE
  216. bool "ARM Versatile (Express) reference platforms clock source"
  217. depends on PLAT_VERSATILE && GENERIC_SCHED_CLOCK && !ARCH_USES_GETTIMEOFFSET
  218. select CLKSRC_OF
  219. default y if MFD_VEXPRESS_SYSREG
  220. help
  221. This option enables clock source based on free running
  222. counter available in the "System Registers" block of
  223. ARM Versatile, RealView and Versatile Express reference
  224. platforms.
  225. config CLKSRC_MIPS_GIC
  226. bool
  227. depends on MIPS_GIC
  228. select CLKSRC_OF
  229. config CLKSRC_PXA
  230. def_bool y if ARCH_PXA || ARCH_SA1100
  231. select CLKSRC_OF if OF
  232. help
  233. This enables OST0 support available on PXA and SA-11x0
  234. platforms.
  235. config H8300_TMR16
  236. bool
  237. config H8300_TPU
  238. bool
  239. config CLKSRC_IMX_GPT
  240. bool "Clocksource using i.MX GPT" if COMPILE_TEST
  241. depends on ARM && CLKDEV_LOOKUP
  242. select CLKSRC_MMIO
  243. config CLKSRC_ST_LPC
  244. bool
  245. depends on ARCH_STI
  246. select CLKSRC_OF if OF
  247. help
  248. Enable this option to use the Low Power controller timer
  249. as clocksource.
  250. endmenu