Kconfig 7.3 KB

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