Kconfig 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. menu "Timer Support"
  2. config TIMER
  3. bool "Enable driver model for timer drivers"
  4. depends on DM
  5. help
  6. Enable driver model for timer access. It uses the same API as
  7. lib/time.c, but now implemented by the uclass. The first timer
  8. will be used. The timer is usually a 32 bits free-running up
  9. counter. There may be no real tick, and no timer interrupt.
  10. config SPL_TIMER
  11. bool "Enable driver model for timer drivers in SPL"
  12. depends on TIMER && SPL
  13. help
  14. Enable support for timer drivers in SPL. These can be used to get
  15. a timer value when in SPL, or perhaps for implementing a delay
  16. function. This enables the drivers in drivers/timer as part of an
  17. SPL build.
  18. config TPL_TIMER
  19. bool "Enable driver model for timer drivers in TPL"
  20. depends on TIMER && TPL
  21. help
  22. Enable support for timer drivers in TPL. These can be used to get
  23. a timer value when in TPL, or perhaps for implementing a delay
  24. function. This enables the drivers in drivers/timer as part of an
  25. TPL build.
  26. config TIMER_EARLY
  27. bool "Allow timer to be used early in U-Boot"
  28. depends on TIMER
  29. # initr_bootstage() requires a timer and is called before initr_dm()
  30. # so only the early timer is available
  31. default y if X86 && BOOTSTAGE
  32. help
  33. In some cases the timer must be accessible before driver model is
  34. active. Examples include when using CONFIG_TRACE to trace U-Boot's
  35. execution before driver model is set up. Enable this option to
  36. use an early timer. These functions must be supported by your timer
  37. driver: timer_early_get_count() and timer_early_get_rate().
  38. config AG101P_TIMER
  39. bool "AG101P timer support"
  40. depends on TIMER && NDS32
  41. help
  42. Select this to enable a timer for AG01P devices.
  43. config ALTERA_TIMER
  44. bool "Altera timer support"
  45. depends on TIMER
  46. help
  47. Select this to enable a timer for Altera devices. Please find
  48. details on the "Embedded Peripherals IP User Guide" of Altera.
  49. config ANDES_PLMT_TIMER
  50. bool
  51. depends on RISCV_MMODE || SPL_RISCV_MMODE
  52. help
  53. The Andes PLMT block holds memory-mapped mtime register
  54. associated with timer tick.
  55. config ARC_TIMER
  56. bool "ARC timer support"
  57. depends on TIMER && ARC && CLK
  58. help
  59. Select this to enable built-in ARC timers.
  60. ARC cores may have up to 2 built-in timers: timer0 and timer1,
  61. usually at least one of them exists. Either of them is supported
  62. in U-Boot.
  63. config AST_TIMER
  64. bool "Aspeed ast2400/ast2500 timer support"
  65. depends on TIMER
  66. default y if ARCH_ASPEED
  67. help
  68. Select this to enable timer for Aspeed ast2400/ast2500 devices.
  69. This is a simple sys timer driver, it is compatible with lib/time.c,
  70. but does not support any interrupts. Even though SoC has 8 hardware
  71. counters, they are all treated as a single device by this driver.
  72. This is mostly because they all share several registers which
  73. makes it difficult to completely separate them.
  74. config ATCPIT100_TIMER
  75. bool "ATCPIT100 timer support"
  76. depends on TIMER
  77. help
  78. Select this to enable a ATCPIT100 timer which will be embedded
  79. in AE3XX, AE250 boards.
  80. config ATMEL_PIT_TIMER
  81. bool "Atmel periodic interval timer support"
  82. depends on TIMER
  83. help
  84. Select this to enable a periodic interval timer for Atmel devices,
  85. it is designed to offer maximum accuracy and efficient management,
  86. even for systems with long response time.
  87. config CADENCE_TTC_TIMER
  88. bool "Cadence TTC (Triple Timer Counter)"
  89. depends on TIMER
  90. help
  91. Enables support for the cadence ttc driver. This driver is present
  92. on Xilinx Zynq and ZynqMP SoCs.
  93. config DESIGNWARE_APB_TIMER
  94. bool "Designware APB Timer"
  95. depends on TIMER
  96. help
  97. Enables support for the Designware APB Timer driver. This timer is
  98. present on Altera SoCFPGA SoCs.
  99. config MPC83XX_TIMER
  100. bool "MPC83xx timer support"
  101. depends on TIMER
  102. help
  103. Select this to enable support for the timer found on
  104. devices based on the MPC83xx family of SoCs.
  105. config RENESAS_OSTM_TIMER
  106. bool "Renesas RZ/A1 R7S72100 OSTM Timer"
  107. depends on TIMER
  108. help
  109. Enables support for the Renesas OSTM Timer driver.
  110. This timer is present on Renesas RZ/A1 R7S72100 SoCs.
  111. config X86_TSC_TIMER_FREQ
  112. int "x86 TSC timer frequency in Hz"
  113. depends on X86_TSC_TIMER
  114. default 1000000000
  115. help
  116. Sets the estimated CPU frequency in Hz when TSC is used as the
  117. early timer and the frequency can neither be calibrated via some
  118. hardware ways, nor got from device tree at the time when device
  119. tree is not available yet.
  120. config NOMADIK_MTU_TIMER
  121. bool "Nomadik MTU Timer"
  122. depends on TIMER
  123. help
  124. Enables support for the Nomadik Multi Timer Unit (MTU),
  125. used in ST-Ericsson Ux500 SoCs.
  126. The MTU provides 4 decrementing free-running timers.
  127. At the moment, only the first timer is used by the driver.
  128. config OMAP_TIMER
  129. bool "Omap timer support"
  130. depends on TIMER
  131. help
  132. Select this to enable an timer for Omap devices.
  133. config RISCV_TIMER
  134. bool "RISC-V timer support"
  135. depends on TIMER && RISCV
  136. help
  137. Select this to enable support for a generic RISC-V S-Mode timer
  138. driver.
  139. config ROCKCHIP_TIMER
  140. bool "Rockchip timer support"
  141. depends on TIMER
  142. help
  143. Select this to enable support for the timer found on
  144. Rockchip devices.
  145. config SANDBOX_TIMER
  146. bool "Sandbox timer support"
  147. depends on SANDBOX && TIMER
  148. help
  149. Select this to enable an emulated timer for sandbox. It gets
  150. time from host os.
  151. config STI_TIMER
  152. bool "STi timer support"
  153. depends on TIMER
  154. default y if ARCH_STI
  155. help
  156. Select this to enable a timer for STi devices.
  157. config STM32_TIMER
  158. bool "STM32 timer support"
  159. depends on TIMER
  160. help
  161. Select this to enable support for the timer found on
  162. STM32 devices.
  163. config X86_TSC_TIMER
  164. bool "x86 Time-Stamp Counter (TSC) timer support"
  165. depends on TIMER && X86
  166. help
  167. Select this to enable Time-Stamp Counter (TSC) timer for x86.
  168. config X86_TSC_READ_BASE
  169. bool "Read the TSC timer base on start-up"
  170. depends on X86_TSC_TIMER
  171. help
  172. On x86 platforms the TSC timer tick starts at the value 0 on reset.
  173. This it makes no sense to read the timer on boot and use that as the
  174. base, since we will miss some time taken to load U-Boot, etc. This
  175. delay is controlled by the SoC and we cannot reduce it, but for
  176. bootstage we want to record the time since reset as accurately as
  177. possible.
  178. The only exception is when U-Boot is used as a secondary bootloader,
  179. where this option should be enabled.
  180. config TPL_X86_TSC_TIMER_NATIVE
  181. bool "x86 TSC timer uses native calibration"
  182. depends on TPL && X86_TSC_TIMER
  183. help
  184. Selects native timer calibration for TPL and don't include the other
  185. methods in the code. This helps to reduce code size in TPL and works
  186. on fairly modern Intel chips. Code-size reductions is about 700
  187. bytes.
  188. config MTK_TIMER
  189. bool "MediaTek timer support"
  190. depends on TIMER
  191. help
  192. Select this to enable support for the timer found on
  193. MediaTek devices.
  194. config MCHP_PIT64B_TIMER
  195. bool "Microchip 64-bit periodic interval timer support"
  196. depends on TIMER
  197. help
  198. Select this to enable support for Microchip 64-bit periodic
  199. interval timer.
  200. config IMX_GPT_TIMER
  201. bool "NXP i.MX GPT timer support"
  202. depends on TIMER
  203. help
  204. Select this to enable support for the timer found on
  205. NXP i.MX devices.
  206. endmenu