Kconfig 20 KB

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