Kconfig 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  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 DW_APB_TIMER
  15. bool
  16. config DW_APB_TIMER_OF
  17. bool
  18. select DW_APB_TIMER
  19. select CLKSRC_OF
  20. config ARMADA_370_XP_TIMER
  21. bool
  22. select CLKSRC_OF
  23. config MESON6_TIMER
  24. bool
  25. config ORION_TIMER
  26. select CLKSRC_OF
  27. select CLKSRC_MMIO
  28. bool
  29. config SUN4I_TIMER
  30. select CLKSRC_MMIO
  31. bool
  32. config SUN5I_HSTIMER
  33. select CLKSRC_MMIO
  34. bool
  35. config VT8500_TIMER
  36. bool
  37. config CADENCE_TTC_TIMER
  38. bool
  39. config CLKSRC_NOMADIK_MTU
  40. bool
  41. depends on (ARCH_NOMADIK || ARCH_U8500)
  42. select CLKSRC_MMIO
  43. help
  44. Support for Multi Timer Unit. MTU provides access
  45. to multiple interrupt generating programmable
  46. 32-bit free running decrementing counters.
  47. config CLKSRC_NOMADIK_MTU_SCHED_CLOCK
  48. bool
  49. depends on CLKSRC_NOMADIK_MTU
  50. help
  51. Use the Multi Timer Unit as the sched_clock.
  52. config CLKSRC_DBX500_PRCMU
  53. bool "Clocksource PRCMU Timer"
  54. depends on UX500_SOC_DB8500
  55. default y
  56. help
  57. Use the always on PRCMU Timer as clocksource
  58. config CLKSRC_DBX500_PRCMU_SCHED_CLOCK
  59. bool "Clocksource PRCMU Timer sched_clock"
  60. depends on (CLKSRC_DBX500_PRCMU && !CLKSRC_NOMADIK_MTU_SCHED_CLOCK)
  61. default y
  62. help
  63. Use the always on PRCMU Timer as sched_clock
  64. config CLKSRC_EFM32
  65. bool "Clocksource for Energy Micro's EFM32 SoCs" if !ARCH_EFM32
  66. depends on OF && ARM && (ARCH_EFM32 || COMPILE_TEST)
  67. select CLKSRC_MMIO
  68. default ARCH_EFM32
  69. help
  70. Support to use the timers of EFM32 SoCs as clock source and clock
  71. event device.
  72. config ARM_ARCH_TIMER
  73. bool
  74. select CLKSRC_OF if OF
  75. config ARM_ARCH_TIMER_EVTSTREAM
  76. bool "Support for ARM architected timer event stream generation"
  77. default y if ARM_ARCH_TIMER
  78. depends on ARM_ARCH_TIMER
  79. help
  80. This option enables support for event stream generation based on
  81. the ARM architected timer. It is used for waking up CPUs executing
  82. the wfe instruction at a frequency represented as a power-of-2
  83. divisor of the clock rate.
  84. The main use of the event stream is wfe-based timeouts of userspace
  85. locking implementations. It might also be useful for imposing timeout
  86. on wfe to safeguard against any programming errors in case an expected
  87. event is not generated.
  88. This must be disabled for hardware validation purposes to detect any
  89. hardware anomalies of missing events.
  90. config ARM_GLOBAL_TIMER
  91. bool
  92. select CLKSRC_OF if OF
  93. help
  94. This options enables support for the ARM global timer unit
  95. config CLKSRC_ARM_GLOBAL_TIMER_SCHED_CLOCK
  96. bool
  97. depends on ARM_GLOBAL_TIMER
  98. default y
  99. help
  100. Use ARM global timer clock source as sched_clock
  101. config ATMEL_PIT
  102. select CLKSRC_OF if OF
  103. def_bool SOC_AT91SAM9 || SOC_SAMA5
  104. config CLKSRC_METAG_GENERIC
  105. def_bool y if METAG
  106. help
  107. This option enables support for the Meta per-thread timers.
  108. config CLKSRC_EXYNOS_MCT
  109. def_bool y if ARCH_EXYNOS
  110. depends on !ARM64
  111. help
  112. Support for Multi Core Timer controller on Exynos SoCs.
  113. config CLKSRC_SAMSUNG_PWM
  114. bool
  115. help
  116. This is a new clocksource driver for the PWM timer found in
  117. Samsung S3C, S5P and Exynos SoCs, replacing an earlier driver
  118. for all devicetree enabled platforms. This driver will be
  119. needed only on systems that do not have the Exynos MCT available.
  120. config FSL_FTM_TIMER
  121. bool
  122. help
  123. Support for Freescale FlexTimer Module (FTM) timer.
  124. config VF_PIT_TIMER
  125. bool
  126. help
  127. Support for Period Interrupt Timer on Freescale Vybrid Family SoCs.
  128. config SYS_SUPPORTS_SH_CMT
  129. bool
  130. config MTK_TIMER
  131. select CLKSRC_OF
  132. select CLKSRC_MMIO
  133. bool
  134. config SYS_SUPPORTS_SH_MTU2
  135. bool
  136. config SYS_SUPPORTS_SH_TMU
  137. bool
  138. config SYS_SUPPORTS_EM_STI
  139. bool
  140. config SH_TIMER_CMT
  141. bool "Renesas CMT timer driver" if COMPILE_TEST
  142. depends on GENERIC_CLOCKEVENTS
  143. default SYS_SUPPORTS_SH_CMT
  144. help
  145. This enables build of a clocksource and clockevent driver for
  146. the Compare Match Timer (CMT) hardware available in 16/32/48-bit
  147. variants on a wide range of Mobile and Automotive SoCs from Renesas.
  148. config SH_TIMER_MTU2
  149. bool "Renesas MTU2 timer driver" if COMPILE_TEST
  150. depends on GENERIC_CLOCKEVENTS
  151. default SYS_SUPPORTS_SH_MTU2
  152. help
  153. This enables build of a clockevent driver for the Multi-Function
  154. Timer Pulse Unit 2 (MTU2) hardware available on SoCs from Renesas.
  155. This hardware comes with 16 bit-timer registers.
  156. config SH_TIMER_TMU
  157. bool "Renesas TMU timer driver" if COMPILE_TEST
  158. depends on GENERIC_CLOCKEVENTS
  159. default SYS_SUPPORTS_SH_TMU
  160. help
  161. This enables build of a clocksource and clockevent driver for
  162. the 32-bit Timer Unit (TMU) hardware available on a wide range
  163. SoCs from Renesas.
  164. config EM_TIMER_STI
  165. bool "Renesas STI timer driver" if COMPILE_TEST
  166. depends on GENERIC_CLOCKEVENTS && HAS_IOMEM
  167. default SYS_SUPPORTS_EM_STI
  168. help
  169. This enables build of a clocksource and clockevent driver for
  170. the 48-bit System Timer (STI) hardware available on a SoCs
  171. such as EMEV2 from former NEC Electronics.
  172. config CLKSRC_QCOM
  173. bool
  174. config CLKSRC_VERSATILE
  175. bool "ARM Versatile (Express) reference platforms clock source"
  176. depends on GENERIC_SCHED_CLOCK && !ARCH_USES_GETTIMEOFFSET
  177. select CLKSRC_OF
  178. default y if MFD_VEXPRESS_SYSREG
  179. help
  180. This option enables clock source based on free running
  181. counter available in the "System Registers" block of
  182. ARM Versatile, RealView and Versatile Express reference
  183. platforms.
  184. endmenu