Kconfig 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  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_STM32
  89. bool "Clocksource for STM32 SoCs" if !ARCH_STM32
  90. depends on OF && ARM && (ARCH_STM32 || COMPILE_TEST)
  91. select CLKSRC_MMIO
  92. config ARM_ARCH_TIMER
  93. bool
  94. select CLKSRC_OF if OF
  95. config ARM_ARCH_TIMER_EVTSTREAM
  96. bool "Support for ARM architected timer event stream generation"
  97. default y if ARM_ARCH_TIMER
  98. depends on ARM_ARCH_TIMER
  99. help
  100. This option enables support for event stream generation based on
  101. the ARM architected timer. It is used for waking up CPUs executing
  102. the wfe instruction at a frequency represented as a power-of-2
  103. divisor of the clock rate.
  104. The main use of the event stream is wfe-based timeouts of userspace
  105. locking implementations. It might also be useful for imposing timeout
  106. on wfe to safeguard against any programming errors in case an expected
  107. event is not generated.
  108. This must be disabled for hardware validation purposes to detect any
  109. hardware anomalies of missing events.
  110. config ARM_GLOBAL_TIMER
  111. bool
  112. select CLKSRC_OF if OF
  113. help
  114. This options enables support for the ARM global timer unit
  115. config ARM_TIMER_SP804
  116. bool "Support for Dual Timer SP804 module"
  117. depends on GENERIC_SCHED_CLOCK && CLKDEV_LOOKUP
  118. select CLKSRC_MMIO
  119. select CLKSRC_OF if OF
  120. config CLKSRC_ARM_GLOBAL_TIMER_SCHED_CLOCK
  121. bool
  122. depends on ARM_GLOBAL_TIMER
  123. default y
  124. help
  125. Use ARM global timer clock source as sched_clock
  126. config ARMV7M_SYSTICK
  127. bool
  128. select CLKSRC_OF if OF
  129. select CLKSRC_MMIO
  130. help
  131. This options enables support for the ARMv7M system timer unit
  132. config ATMEL_PIT
  133. select CLKSRC_OF if OF
  134. def_bool SOC_AT91SAM9 || SOC_SAMA5
  135. config ATMEL_ST
  136. bool
  137. select CLKSRC_OF
  138. select MFD_SYSCON
  139. config CLKSRC_METAG_GENERIC
  140. def_bool y if METAG
  141. help
  142. This option enables support for the Meta per-thread timers.
  143. config CLKSRC_EXYNOS_MCT
  144. def_bool y if ARCH_EXYNOS
  145. depends on !ARM64
  146. help
  147. Support for Multi Core Timer controller on Exynos SoCs.
  148. config CLKSRC_SAMSUNG_PWM
  149. bool
  150. help
  151. This is a new clocksource driver for the PWM timer found in
  152. Samsung S3C, S5P and Exynos SoCs, replacing an earlier driver
  153. for all devicetree enabled platforms. This driver will be
  154. needed only on systems that do not have the Exynos MCT available.
  155. config FSL_FTM_TIMER
  156. bool
  157. help
  158. Support for Freescale FlexTimer Module (FTM) timer.
  159. config VF_PIT_TIMER
  160. bool
  161. help
  162. Support for Period Interrupt Timer on Freescale Vybrid Family SoCs.
  163. config SYS_SUPPORTS_SH_CMT
  164. bool
  165. config MTK_TIMER
  166. select CLKSRC_OF
  167. select CLKSRC_MMIO
  168. bool
  169. config SYS_SUPPORTS_SH_MTU2
  170. bool
  171. config SYS_SUPPORTS_SH_TMU
  172. bool
  173. config SYS_SUPPORTS_EM_STI
  174. bool
  175. config SH_TIMER_CMT
  176. bool "Renesas CMT timer driver" if COMPILE_TEST
  177. depends on GENERIC_CLOCKEVENTS
  178. depends on HAS_IOMEM
  179. default SYS_SUPPORTS_SH_CMT
  180. help
  181. This enables build of a clocksource and clockevent driver for
  182. the Compare Match Timer (CMT) hardware available in 16/32/48-bit
  183. variants on a wide range of Mobile and Automotive SoCs from Renesas.
  184. config SH_TIMER_MTU2
  185. bool "Renesas MTU2 timer driver" if COMPILE_TEST
  186. depends on GENERIC_CLOCKEVENTS
  187. depends on HAS_IOMEM
  188. default SYS_SUPPORTS_SH_MTU2
  189. help
  190. This enables build of a clockevent driver for the Multi-Function
  191. Timer Pulse Unit 2 (MTU2) hardware available on SoCs from Renesas.
  192. This hardware comes with 16 bit-timer registers.
  193. config SH_TIMER_TMU
  194. bool "Renesas TMU timer driver" if COMPILE_TEST
  195. depends on GENERIC_CLOCKEVENTS
  196. depends on HAS_IOMEM
  197. default SYS_SUPPORTS_SH_TMU
  198. help
  199. This enables build of a clocksource and clockevent driver for
  200. the 32-bit Timer Unit (TMU) hardware available on a wide range
  201. SoCs from Renesas.
  202. config EM_TIMER_STI
  203. bool "Renesas STI timer driver" if COMPILE_TEST
  204. depends on GENERIC_CLOCKEVENTS && HAS_IOMEM
  205. default SYS_SUPPORTS_EM_STI
  206. help
  207. This enables build of a clocksource and clockevent driver for
  208. the 48-bit System Timer (STI) hardware available on a SoCs
  209. such as EMEV2 from former NEC Electronics.
  210. config CLKSRC_QCOM
  211. bool
  212. config CLKSRC_VERSATILE
  213. bool "ARM Versatile (Express) reference platforms clock source"
  214. depends on PLAT_VERSATILE && GENERIC_SCHED_CLOCK && !ARCH_USES_GETTIMEOFFSET
  215. select CLKSRC_OF
  216. default y if MFD_VEXPRESS_SYSREG
  217. help
  218. This option enables clock source based on free running
  219. counter available in the "System Registers" block of
  220. ARM Versatile, RealView and Versatile Express reference
  221. platforms.
  222. config CLKSRC_MIPS_GIC
  223. bool
  224. depends on MIPS_GIC
  225. select CLKSRC_OF
  226. config CLKSRC_PXA
  227. def_bool y if ARCH_PXA || ARCH_SA1100
  228. select CLKSRC_OF if USE_OF
  229. help
  230. This enables OST0 support available on PXA and SA-11x0
  231. platforms.
  232. config H8300_TMR16
  233. bool
  234. config H8300_TPU
  235. bool
  236. config CLKSRC_IMX_GPT
  237. bool "Clocksource using i.MX GPT" if COMPILE_TEST
  238. depends on ARM && CLKDEV_LOOKUP
  239. select CLKSRC_MMIO
  240. endmenu