Kconfig 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. menu "Clock Source drivers"
  3. depends on GENERIC_CLOCKEVENTS
  4. config TIMER_OF
  5. bool
  6. select TIMER_PROBE
  7. config TIMER_ACPI
  8. bool
  9. select TIMER_PROBE
  10. config TIMER_PROBE
  11. bool
  12. config CLKSRC_I8253
  13. bool
  14. config CLKEVT_I8253
  15. bool
  16. config I8253_LOCK
  17. bool
  18. config OMAP_DM_SYSTIMER
  19. bool
  20. select TIMER_OF
  21. config CLKBLD_I8253
  22. def_bool y if CLKSRC_I8253 || CLKEVT_I8253 || I8253_LOCK
  23. config CLKSRC_MMIO
  24. bool
  25. config BCM2835_TIMER
  26. bool "BCM2835 timer driver" if COMPILE_TEST
  27. select CLKSRC_MMIO
  28. help
  29. Enables the support for the BCM2835 timer driver.
  30. config BCM_KONA_TIMER
  31. bool "BCM mobile timer driver" if COMPILE_TEST
  32. select CLKSRC_MMIO
  33. help
  34. Enables the support for the BCM Kona mobile timer driver.
  35. config DAVINCI_TIMER
  36. bool "Texas Instruments DaVinci timer driver" if COMPILE_TEST
  37. help
  38. Enables the support for the TI DaVinci timer driver.
  39. config DIGICOLOR_TIMER
  40. bool "Digicolor timer driver" if COMPILE_TEST
  41. select CLKSRC_MMIO
  42. depends on HAS_IOMEM
  43. help
  44. Enables the support for the digicolor timer driver.
  45. config OMAP_DM_TIMER
  46. bool "OMAP dual-mode timer driver" if ARCH_K3 || COMPILE_TEST
  47. default y if ARCH_K3
  48. select TIMER_OF
  49. help
  50. Enables the support for the TI dual-mode timer driver.
  51. config DW_APB_TIMER
  52. bool "DW APB timer driver" if COMPILE_TEST
  53. help
  54. Enables the support for the dw_apb timer.
  55. config DW_APB_TIMER_OF
  56. bool
  57. select DW_APB_TIMER
  58. select TIMER_OF
  59. config FTTMR010_TIMER
  60. bool "Faraday Technology timer driver" if COMPILE_TEST
  61. depends on HAS_IOMEM
  62. select CLKSRC_MMIO
  63. select TIMER_OF
  64. select MFD_SYSCON
  65. help
  66. Enables support for the Faraday Technology timer block
  67. FTTMR010.
  68. config IXP4XX_TIMER
  69. bool "Intel XScale IXP4xx timer driver" if COMPILE_TEST
  70. depends on HAS_IOMEM
  71. select CLKSRC_MMIO
  72. select TIMER_OF
  73. help
  74. Enables support for the Intel XScale IXP4xx SoC timer.
  75. config ROCKCHIP_TIMER
  76. bool "Rockchip timer driver" if COMPILE_TEST
  77. depends on ARM || ARM64
  78. select TIMER_OF
  79. select CLKSRC_MMIO
  80. help
  81. Enables the support for the Rockchip timer driver.
  82. config ARMADA_370_XP_TIMER
  83. bool "Armada 370 and XP timer driver" if COMPILE_TEST
  84. depends on ARM
  85. select TIMER_OF
  86. select CLKSRC_MMIO
  87. help
  88. Enables the support for the Armada 370 and XP timer driver.
  89. config MESON6_TIMER
  90. bool "Meson6 timer driver" if COMPILE_TEST
  91. select CLKSRC_MMIO
  92. help
  93. Enables the support for the Meson6 timer driver.
  94. config ORION_TIMER
  95. bool "Orion timer driver" if COMPILE_TEST
  96. depends on ARM
  97. select TIMER_OF
  98. select CLKSRC_MMIO
  99. help
  100. Enables the support for the Orion timer driver
  101. config OWL_TIMER
  102. bool "Owl timer driver" if COMPILE_TEST
  103. select CLKSRC_MMIO
  104. help
  105. Enables the support for the Actions Semi Owl timer driver.
  106. config RDA_TIMER
  107. bool "RDA timer driver" if COMPILE_TEST
  108. select CLKSRC_MMIO
  109. select TIMER_OF
  110. help
  111. Enables the support for the RDA Micro timer driver.
  112. config REALTEK_OTTO_TIMER
  113. bool "Clocksource/timer for the Realtek Otto platform" if COMPILE_TEST
  114. select TIMER_OF
  115. help
  116. This driver adds support for the timers found in the Realtek RTL83xx
  117. and RTL93xx SoCs series. This includes chips such as RTL8380, RTL8381
  118. and RTL832, as well as chips from the RTL839x series, such as RTL8390
  119. RT8391, RTL8392, RTL8393 and RTL8396 and chips of the RTL930x series
  120. such as RTL9301, RTL9302 or RTL9303.
  121. config SUN4I_TIMER
  122. bool "Sun4i timer driver" if COMPILE_TEST
  123. depends on HAS_IOMEM
  124. select CLKSRC_MMIO
  125. select TIMER_OF
  126. help
  127. Enables support for the Sun4i timer.
  128. config SUN5I_HSTIMER
  129. bool "Sun5i timer driver" if COMPILE_TEST
  130. select CLKSRC_MMIO
  131. depends on COMMON_CLK
  132. help
  133. Enables support the Sun5i timer.
  134. config TEGRA_TIMER
  135. bool "Tegra timer driver" if COMPILE_TEST
  136. select CLKSRC_MMIO
  137. select TIMER_OF
  138. depends on ARCH_TEGRA || COMPILE_TEST
  139. help
  140. Enables support for the Tegra driver.
  141. config TEGRA186_TIMER
  142. bool "NVIDIA Tegra186 timer driver"
  143. depends on ARCH_TEGRA || COMPILE_TEST
  144. depends on WATCHDOG && WATCHDOG_CORE
  145. help
  146. Enables support for the timers and watchdogs found on NVIDIA
  147. Tegra186 and later SoCs.
  148. config VT8500_TIMER
  149. bool "VT8500 timer driver" if COMPILE_TEST
  150. depends on HAS_IOMEM
  151. help
  152. Enables support for the VT8500 driver.
  153. config NPCM7XX_TIMER
  154. bool "NPCM7xx timer driver" if COMPILE_TEST
  155. depends on HAS_IOMEM
  156. select TIMER_OF
  157. select CLKSRC_MMIO
  158. help
  159. Enable 24-bit TIMER0 and TIMER1 counters in the NPCM7xx architecture,
  160. where TIMER0 serves as clockevent and TIMER1 serves as clocksource.
  161. config CADENCE_TTC_TIMER
  162. bool "Cadence TTC timer driver" if COMPILE_TEST
  163. depends on COMMON_CLK
  164. help
  165. Enables support for the Cadence TTC driver.
  166. config ASM9260_TIMER
  167. bool "ASM9260 timer driver" if COMPILE_TEST
  168. select CLKSRC_MMIO
  169. select TIMER_OF
  170. help
  171. Enables support for the ASM9260 timer.
  172. config CLKSRC_NOMADIK_MTU
  173. bool "Nomakdik clocksource driver" if COMPILE_TEST
  174. depends on ARM
  175. select CLKSRC_MMIO
  176. help
  177. Support for Multi Timer Unit. MTU provides access
  178. to multiple interrupt generating programmable
  179. 32-bit free running decrementing counters.
  180. config CLKSRC_DBX500_PRCMU
  181. bool "Clocksource PRCMU Timer" if COMPILE_TEST
  182. depends on HAS_IOMEM
  183. help
  184. Use the always on PRCMU Timer as clocksource.
  185. config CLPS711X_TIMER
  186. bool "Cirrus Logic timer driver" if COMPILE_TEST
  187. select CLKSRC_MMIO
  188. help
  189. Enables support for the Cirrus Logic PS711 timer.
  190. config MXS_TIMER
  191. bool "MXS timer driver" if COMPILE_TEST
  192. select CLKSRC_MMIO
  193. select STMP_DEVICE
  194. help
  195. Enables support for the MXS timer.
  196. config NSPIRE_TIMER
  197. bool "NSpire timer driver" if COMPILE_TEST
  198. select CLKSRC_MMIO
  199. help
  200. Enables support for the Nspire timer.
  201. config KEYSTONE_TIMER
  202. bool "Keystone timer driver" if COMPILE_TEST
  203. depends on ARM || ARM64
  204. select CLKSRC_MMIO
  205. help
  206. Enables support for the Keystone timer.
  207. config INTEGRATOR_AP_TIMER
  208. bool "Integrator-AP timer driver" if COMPILE_TEST
  209. select CLKSRC_MMIO
  210. help
  211. Enables support for the Integrator-AP timer.
  212. config CLKSRC_LPC32XX
  213. bool "Clocksource for LPC32XX" if COMPILE_TEST
  214. depends on HAS_IOMEM
  215. depends on ARM
  216. select CLKSRC_MMIO
  217. select TIMER_OF
  218. help
  219. Support for the LPC32XX clocksource.
  220. config CLKSRC_PISTACHIO
  221. bool "Clocksource for Pistachio SoC"
  222. depends on HAS_IOMEM
  223. depends on MIPS || COMPILE_TEST
  224. select TIMER_OF
  225. help
  226. Enables the clocksource for the Pistachio SoC.
  227. config CLKSRC_TI_32K
  228. bool "Texas Instruments 32.768 Hz Clocksource" if COMPILE_TEST
  229. depends on GENERIC_SCHED_CLOCK
  230. select TIMER_OF if OF
  231. help
  232. This option enables support for Texas Instruments 32.768 Hz clocksource
  233. available on many OMAP-like platforms.
  234. config CLKSRC_STM32
  235. bool "Clocksource for STM32 SoCs" if !ARCH_STM32
  236. depends on OF && ARM && (ARCH_STM32 || COMPILE_TEST)
  237. select CLKSRC_MMIO
  238. select TIMER_OF
  239. config CLKSRC_STM32_LP
  240. bool "Low power clocksource for STM32 SoCs"
  241. depends on MFD_STM32_LPTIMER || COMPILE_TEST
  242. config CLKSRC_MPS2
  243. bool "Clocksource for MPS2 SoCs" if COMPILE_TEST
  244. depends on GENERIC_SCHED_CLOCK
  245. select CLKSRC_MMIO
  246. select TIMER_OF
  247. config ARC_TIMERS
  248. bool "Support for 32-bit TIMERn counters in ARC Cores" if COMPILE_TEST
  249. depends on GENERIC_SCHED_CLOCK
  250. select TIMER_OF
  251. help
  252. These are legacy 32-bit TIMER0 and TIMER1 counters found on all ARC cores
  253. (ARC700 as well as ARC HS38).
  254. TIMER0 serves as clockevent while TIMER1 provides clocksource.
  255. config ARC_TIMERS_64BIT
  256. bool "Support for 64-bit counters in ARC HS38 cores" if COMPILE_TEST
  257. depends on ARC_TIMERS
  258. select TIMER_OF
  259. help
  260. This enables 2 different 64-bit timers: RTC (for UP) and GFRC (for SMP).
  261. RTC is implemented inside the core, while GFRC sits outside the core in
  262. ARConnect IP block. Driver automatically picks one of them for clocksource
  263. as appropriate.
  264. config ARM_ARCH_TIMER
  265. bool
  266. select TIMER_OF if OF
  267. select TIMER_ACPI if ACPI
  268. config ARM_ARCH_TIMER_EVTSTREAM
  269. bool "Enable ARM architected timer event stream generation by default"
  270. default y if ARM_ARCH_TIMER
  271. depends on ARM_ARCH_TIMER
  272. help
  273. This option enables support by default for event stream generation
  274. based on the ARM architected timer. It is used for waking up CPUs
  275. executing the wfe instruction at a frequency represented as a
  276. power-of-2 divisor of the clock rate. The behaviour can also be
  277. overridden on the command line using the
  278. clocksource.arm_arch_timer.evtstream parameter.
  279. The main use of the event stream is wfe-based timeouts of userspace
  280. locking implementations. It might also be useful for imposing timeout
  281. on wfe to safeguard against any programming errors in case an expected
  282. event is not generated.
  283. This must be disabled for hardware validation purposes to detect any
  284. hardware anomalies of missing events.
  285. config ARM_ARCH_TIMER_OOL_WORKAROUND
  286. bool
  287. config FSL_ERRATUM_A008585
  288. bool "Workaround for Freescale/NXP Erratum A-008585"
  289. default y
  290. depends on ARM_ARCH_TIMER && ARM64
  291. select ARM_ARCH_TIMER_OOL_WORKAROUND
  292. help
  293. This option enables a workaround for Freescale/NXP Erratum
  294. A-008585 ("ARM generic timer may contain an erroneous
  295. value"). The workaround will only be active if the
  296. fsl,erratum-a008585 property is found in the timer node.
  297. config HISILICON_ERRATUM_161010101
  298. bool "Workaround for Hisilicon Erratum 161010101"
  299. default y
  300. select ARM_ARCH_TIMER_OOL_WORKAROUND
  301. depends on ARM_ARCH_TIMER && ARM64
  302. help
  303. This option enables a workaround for Hisilicon Erratum
  304. 161010101. The workaround will be active if the hisilicon,erratum-161010101
  305. property is found in the timer node.
  306. config ARM64_ERRATUM_858921
  307. bool "Workaround for Cortex-A73 erratum 858921"
  308. default y
  309. select ARM_ARCH_TIMER_OOL_WORKAROUND
  310. depends on ARM_ARCH_TIMER && ARM64
  311. help
  312. This option enables a workaround applicable to Cortex-A73
  313. (all versions), whose counter may return incorrect values.
  314. The workaround will be dynamically enabled when an affected
  315. core is detected.
  316. config SUN50I_ERRATUM_UNKNOWN1
  317. bool "Workaround for Allwinner A64 erratum UNKNOWN1"
  318. default y
  319. depends on ARM_ARCH_TIMER && ARM64 && ARCH_SUNXI
  320. select ARM_ARCH_TIMER_OOL_WORKAROUND
  321. help
  322. This option enables a workaround for instability in the timer on
  323. the Allwinner A64 SoC. The workaround will only be active if the
  324. allwinner,erratum-unknown1 property is found in the timer node.
  325. config ARM_GLOBAL_TIMER
  326. bool "Support for the ARM global timer" if COMPILE_TEST
  327. select TIMER_OF if OF
  328. depends on ARM
  329. help
  330. This option enables support for the ARM global timer unit.
  331. config ARM_GT_INITIAL_PRESCALER_VAL
  332. int "ARM global timer initial prescaler value"
  333. default 2 if ARCH_ZYNQ
  334. default 1
  335. depends on ARM_GLOBAL_TIMER
  336. help
  337. When the ARM global timer initializes, its current rate is declared
  338. to the kernel and maintained forever. Should its parent clock
  339. change, the driver tries to fix the timer's internal prescaler.
  340. On some machs (i.e. Zynq) the initial prescaler value thus poses
  341. bounds about how much the parent clock is allowed to decrease or
  342. increase wrt the initial clock value.
  343. This affects CPU_FREQ max delta from the initial frequency.
  344. config ARM_TIMER_SP804
  345. bool "Support for Dual Timer SP804 module"
  346. depends on ARM || ARM64 || COMPILE_TEST
  347. depends on GENERIC_SCHED_CLOCK && HAVE_CLK
  348. select CLKSRC_MMIO
  349. select TIMER_OF if OF
  350. config CLKSRC_ARM_GLOBAL_TIMER_SCHED_CLOCK
  351. bool
  352. depends on ARM_GLOBAL_TIMER
  353. default y
  354. help
  355. Use ARM global timer clock source as sched_clock.
  356. config ARMV7M_SYSTICK
  357. bool "Support for the ARMv7M system time" if COMPILE_TEST
  358. select TIMER_OF if OF
  359. select CLKSRC_MMIO
  360. help
  361. This option enables support for the ARMv7M system timer unit.
  362. config ATMEL_PIT
  363. bool "Atmel PIT support" if COMPILE_TEST
  364. depends on HAS_IOMEM
  365. select TIMER_OF if OF
  366. help
  367. Support for the Periodic Interval Timer found on Atmel SoCs.
  368. config ATMEL_ST
  369. bool "Atmel ST timer support" if COMPILE_TEST
  370. depends on HAS_IOMEM
  371. select TIMER_OF
  372. select MFD_SYSCON
  373. help
  374. Support for the Atmel ST timer.
  375. config ATMEL_TCB_CLKSRC
  376. bool "Atmel TC Block timer driver" if COMPILE_TEST
  377. depends on ARM && HAS_IOMEM
  378. select TIMER_OF if OF
  379. help
  380. Support for Timer Counter Blocks on Atmel SoCs.
  381. config CLKSRC_EXYNOS_MCT
  382. bool "Exynos multi core timer driver" if COMPILE_TEST
  383. depends on ARM || ARM64
  384. depends on ARCH_ARTPEC || ARCH_EXYNOS || COMPILE_TEST
  385. help
  386. Support for Multi Core Timer controller on Exynos SoCs.
  387. config CLKSRC_SAMSUNG_PWM
  388. bool "PWM timer driver for Samsung S3C, S5P" if COMPILE_TEST
  389. depends on HAS_IOMEM
  390. depends on ARCH_EXYNOS || ARCH_S3C64XX || ARCH_S5PV210 || COMPILE_TEST
  391. help
  392. This is a new clocksource driver for the PWM timer found in
  393. Samsung S3C, S5P and Exynos SoCs, replacing an earlier driver
  394. for all devicetree enabled platforms. This driver will be
  395. needed only on systems that do not have the Exynos MCT available.
  396. config FSL_FTM_TIMER
  397. bool "Freescale FlexTimer Module driver" if COMPILE_TEST
  398. depends on HAS_IOMEM
  399. select CLKSRC_MMIO
  400. help
  401. Support for Freescale FlexTimer Module (FTM) timer.
  402. config VF_PIT_TIMER
  403. bool
  404. select CLKSRC_MMIO
  405. help
  406. Support for Periodic Interrupt Timer on Freescale Vybrid Family SoCs.
  407. config SYS_SUPPORTS_SH_CMT
  408. bool
  409. config MTK_TIMER
  410. bool "Mediatek timer driver" if COMPILE_TEST
  411. depends on HAS_IOMEM
  412. select TIMER_OF
  413. select CLKSRC_MMIO
  414. help
  415. Support for Mediatek timer driver.
  416. config MTK_CPUX_TIMER
  417. bool "MediaTek CPUX timer driver" if COMPILE_TEST
  418. depends on HAS_IOMEM
  419. default ARCH_MEDIATEK
  420. select TIMER_OF
  421. select CLKSRC_MMIO
  422. help
  423. Support for MediaTek CPUXGPT timer driver.
  424. config SPRD_TIMER
  425. bool "Spreadtrum timer driver" if EXPERT
  426. depends on HAS_IOMEM
  427. depends on (ARCH_SPRD || COMPILE_TEST)
  428. default ARCH_SPRD
  429. select TIMER_OF
  430. help
  431. Enables support for the Spreadtrum timer driver.
  432. config SYS_SUPPORTS_SH_MTU2
  433. bool
  434. config SYS_SUPPORTS_SH_TMU
  435. bool
  436. config SYS_SUPPORTS_EM_STI
  437. bool
  438. config CLKSRC_JCORE_PIT
  439. bool "J-Core PIT timer driver" if COMPILE_TEST
  440. depends on OF
  441. depends on HAS_IOMEM
  442. select CLKSRC_MMIO
  443. help
  444. This enables build of clocksource and clockevent driver for
  445. the integrated PIT in the J-Core synthesizable, open source SoC.
  446. config SH_TIMER_CMT
  447. bool "Renesas CMT timer driver" if COMPILE_TEST
  448. depends on HAS_IOMEM
  449. default SYS_SUPPORTS_SH_CMT
  450. help
  451. This enables build of a clocksource and clockevent driver for
  452. the Compare Match Timer (CMT) hardware available in 16/32/48-bit
  453. variants on a wide range of Mobile and Automotive SoCs from Renesas.
  454. config SH_TIMER_MTU2
  455. bool "Renesas MTU2 timer driver" if COMPILE_TEST
  456. depends on HAS_IOMEM
  457. default SYS_SUPPORTS_SH_MTU2
  458. help
  459. This enables build of a clockevent driver for the Multi-Function
  460. Timer Pulse Unit 2 (MTU2) hardware available on SoCs from Renesas.
  461. This hardware comes with 16-bit timer registers.
  462. config RENESAS_OSTM
  463. bool "Renesas OSTM timer driver"
  464. depends on ARCH_RENESAS || COMPILE_TEST
  465. select CLKSRC_MMIO
  466. select TIMER_OF
  467. help
  468. Enables the support for the Renesas OSTM.
  469. config SH_TIMER_TMU
  470. bool "Renesas TMU timer driver" if COMPILE_TEST
  471. depends on HAS_IOMEM
  472. default SYS_SUPPORTS_SH_TMU
  473. help
  474. This enables build of a clocksource and clockevent driver for
  475. the 32-bit Timer Unit (TMU) hardware available on a wide range
  476. SoCs from Renesas.
  477. config EM_TIMER_STI
  478. bool "Renesas STI timer driver" if COMPILE_TEST
  479. depends on HAS_IOMEM
  480. default SYS_SUPPORTS_EM_STI
  481. help
  482. This enables build of a clocksource and clockevent driver for
  483. the 48-bit System Timer (STI) hardware available on a SoCs
  484. such as EMEV2 from former NEC Electronics.
  485. config CLKSRC_QCOM
  486. bool "Qualcomm MSM timer" if COMPILE_TEST
  487. depends on ARM
  488. select TIMER_OF
  489. help
  490. This enables the clocksource and the per CPU clockevent driver for the
  491. Qualcomm SoCs.
  492. config CLKSRC_VERSATILE
  493. bool "ARM Versatile (Express) reference platforms clock source" if COMPILE_TEST
  494. depends on GENERIC_SCHED_CLOCK
  495. select TIMER_OF
  496. default y if (ARCH_VEXPRESS || ARCH_VERSATILE) && ARM
  497. help
  498. This option enables clock source based on free running
  499. counter available in the "System Registers" block of
  500. ARM Versatile and Versatile Express reference platforms.
  501. config CLKSRC_MIPS_GIC
  502. bool
  503. depends on MIPS_GIC
  504. select CLOCKSOURCE_WATCHDOG
  505. select TIMER_OF
  506. config CLKSRC_PXA
  507. bool "Clocksource for PXA or SA-11x0 platform" if COMPILE_TEST
  508. depends on HAS_IOMEM
  509. select CLKSRC_MMIO
  510. help
  511. This enables OST0 support available on PXA and SA-11x0
  512. platforms.
  513. config CLKSRC_IMX_GPT
  514. bool "Clocksource using i.MX GPT" if COMPILE_TEST
  515. depends on (ARM || ARM64) && HAVE_CLK
  516. select CLKSRC_MMIO
  517. config CLKSRC_IMX_TPM
  518. bool "Clocksource using i.MX TPM" if COMPILE_TEST
  519. depends on (ARM || ARM64) && HAVE_CLK
  520. select CLKSRC_MMIO
  521. select TIMER_OF
  522. help
  523. Enable this option to use IMX Timer/PWM Module (TPM) timer as
  524. clocksource.
  525. config TIMER_IMX_SYS_CTR
  526. bool "i.MX system counter timer" if COMPILE_TEST
  527. select TIMER_OF
  528. help
  529. Enable this option to use i.MX system counter timer as a
  530. clockevent.
  531. config CLKSRC_LOONGSON1_PWM
  532. bool "Clocksource using Loongson1 PWM"
  533. depends on MACH_LOONGSON32 || COMPILE_TEST
  534. select MIPS_EXTERNAL_TIMER
  535. select TIMER_OF
  536. help
  537. Enable this option to use Loongson1 PWM timer as clocksource
  538. instead of the performance counter.
  539. config CLKSRC_ST_LPC
  540. bool "Low power clocksource found in the LPC" if COMPILE_TEST
  541. select TIMER_OF if OF
  542. depends on HAS_IOMEM
  543. select CLKSRC_MMIO
  544. help
  545. Enable this option to use the Low Power controller timer
  546. as clocksource.
  547. config ARKMICRO_TIMER
  548. bool "Arkmicro timer driver"
  549. depends on GENERIC_CLOCKEVENTS
  550. select CLKSRC_MMIO
  551. select TIMER_OF if OF
  552. help
  553. Enables support for the Arkmicro timer.
  554. choice
  555. prompt "select ark timer controller"
  556. depends on ARKMICRO_TIMER
  557. config TIMER_ARK1668
  558. bool "ark1668 timer controller"
  559. config TIMER_ARKN141
  560. bool "arkn141 timer controller"
  561. endchoice
  562. config GXP_TIMER
  563. bool "GXP timer driver" if COMPILE_TEST && !ARCH_HPE
  564. default ARCH_HPE
  565. select TIMER_OF if OF
  566. help
  567. Provides a driver for the timer control found on HPE
  568. GXP SOCs. This is required for all GXP SOCs.
  569. config RISCV_TIMER
  570. bool "Timer for the RISC-V platform" if COMPILE_TEST
  571. depends on GENERIC_SCHED_CLOCK && RISCV && RISCV_SBI
  572. select TIMER_PROBE
  573. select TIMER_OF
  574. help
  575. This enables the per-hart timer built into all RISC-V systems, which
  576. is accessed via both the SBI and the rdcycle instruction. This is
  577. required for all RISC-V systems.
  578. config CLINT_TIMER
  579. bool "CLINT Timer for the RISC-V platform" if COMPILE_TEST
  580. depends on GENERIC_SCHED_CLOCK && RISCV
  581. select TIMER_PROBE
  582. select TIMER_OF
  583. help
  584. This option enables the CLINT timer for RISC-V systems. The CLINT
  585. driver is usually used for NoMMU RISC-V systems.
  586. config CSKY_MP_TIMER
  587. bool "SMP Timer for the C-SKY platform" if COMPILE_TEST
  588. depends on CSKY
  589. select TIMER_OF
  590. help
  591. Say yes here to enable C-SKY SMP timer driver used for C-SKY SMP
  592. system.
  593. csky,mptimer is not only used in SMP system, it also could be used in
  594. single core system. It's not a mmio reg and it uses mtcr/mfcr instruction.
  595. config GX6605S_TIMER
  596. bool "Gx6605s SOC system timer driver" if COMPILE_TEST
  597. depends on CSKY
  598. select CLKSRC_MMIO
  599. select TIMER_OF
  600. help
  601. This option enables support for gx6605s SOC's timer.
  602. config MILBEAUT_TIMER
  603. bool "Milbeaut timer driver" if COMPILE_TEST
  604. depends on OF
  605. depends on ARM
  606. select TIMER_OF
  607. select CLKSRC_MMIO
  608. help
  609. Enables the support for Milbeaut timer driver.
  610. config MSC313E_TIMER
  611. bool "MSC313E timer driver" if COMPILE_TEST
  612. select TIMER_OF
  613. select CLKSRC_MMIO
  614. help
  615. Enables support for the MStar MSC313E timer driver.
  616. This provides access to multiple interrupt generating
  617. programmable 32-bit free running incrementing counters.
  618. config INGENIC_TIMER
  619. bool "Clocksource/timer using the TCU in Ingenic JZ SoCs"
  620. default MACH_INGENIC
  621. depends on MIPS || COMPILE_TEST
  622. depends on COMMON_CLK
  623. select MFD_SYSCON
  624. select TIMER_OF
  625. select IRQ_DOMAIN
  626. help
  627. Support for the timer/counter unit of the Ingenic JZ SoCs.
  628. config INGENIC_SYSOST
  629. bool "Clocksource/timer using the SYSOST in Ingenic X SoCs"
  630. depends on MIPS || COMPILE_TEST
  631. depends on COMMON_CLK
  632. select MFD_SYSCON
  633. select TIMER_OF
  634. select IRQ_DOMAIN
  635. help
  636. Support for the SYSOST of the Ingenic X Series SoCs.
  637. config INGENIC_OST
  638. bool "Clocksource using the OST in Ingenic JZ SoCs"
  639. depends on MIPS || COMPILE_TEST
  640. depends on COMMON_CLK
  641. select MFD_SYSCON
  642. help
  643. Support for the Operating System Timer of the Ingenic JZ SoCs.
  644. config MICROCHIP_PIT64B
  645. bool "Microchip PIT64B support"
  646. depends on OF && ARM
  647. select TIMER_OF
  648. help
  649. This option enables Microchip PIT64B timer for Atmel
  650. based system. It supports the oneshot, the periodic
  651. modes and high resolution. It is used as a clocksource
  652. and a clockevent.
  653. config GOLDFISH_TIMER
  654. bool "Clocksource using goldfish-rtc"
  655. depends on M68K || COMPILE_TEST
  656. depends on RTC_DRV_GOLDFISH
  657. help
  658. Support for the timer/counter of goldfish-rtc
  659. config EP93XX_TIMER
  660. bool "Cirrus Logic ep93xx timer driver" if COMPILE_TEST
  661. depends on ARCH_EP93XX
  662. depends on GENERIC_CLOCKEVENTS
  663. depends on HAS_IOMEM
  664. select CLKSRC_MMIO
  665. select TIMER_OF
  666. help
  667. Enables support for the Cirrus Logic timer block
  668. EP93XX.
  669. endmenu