Kconfig 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  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 ARC_TIMER
  50. bool "ARC timer support"
  51. depends on TIMER && ARC && CLK
  52. help
  53. Select this to enable built-in ARC timers.
  54. ARC cores may have up to 2 built-in timers: timer0 and timer1,
  55. usually at least one of them exists. Either of them is supported
  56. in U-Boot.
  57. config AST_TIMER
  58. bool "Aspeed ast2400/ast2500 timer support"
  59. depends on TIMER
  60. default y if ARCH_ASPEED
  61. help
  62. Select this to enable timer for Aspeed ast2400/ast2500 devices.
  63. This is a simple sys timer driver, it is compatible with lib/time.c,
  64. but does not support any interrupts. Even though SoC has 8 hardware
  65. counters, they are all treated as a single device by this driver.
  66. This is mostly because they all share several registers which
  67. makes it difficult to completely separate them.
  68. config ATCPIT100_TIMER
  69. bool "ATCPIT100 timer support"
  70. depends on TIMER
  71. help
  72. Select this to enable a ATCPIT100 timer which will be embedded
  73. in AE3XX, AE250 boards.
  74. config ATMEL_PIT_TIMER
  75. bool "Atmel periodic interval timer support"
  76. depends on TIMER
  77. help
  78. Select this to enable a periodic interval timer for Atmel devices,
  79. it is designed to offer maximum accuracy and efficient management,
  80. even for systems with long response time.
  81. config CADENCE_TTC_TIMER
  82. bool "Cadence TTC (Triple Timer Counter)"
  83. depends on TIMER
  84. help
  85. Enables support for the cadence ttc driver. This driver is present
  86. on Xilinx Zynq and ZynqMP SoCs.
  87. config DESIGNWARE_APB_TIMER
  88. bool "Designware APB Timer"
  89. depends on TIMER
  90. help
  91. Enables support for the Designware APB Timer driver. This timer is
  92. present on Altera SoCFPGA SoCs.
  93. config MPC83XX_TIMER
  94. bool "MPC83xx timer support"
  95. depends on TIMER
  96. help
  97. Select this to enable support for the timer found on
  98. devices based on the MPC83xx family of SoCs.
  99. config RENESAS_OSTM_TIMER
  100. bool "Renesas RZ/A1 R7S72100 OSTM Timer"
  101. depends on TIMER
  102. help
  103. Enables support for the Renesas OSTM Timer driver.
  104. This timer is present on Renesas RZ/A1 R7S72100 SoCs.
  105. config X86_TSC_TIMER_EARLY_FREQ
  106. int "x86 TSC timer frequency in MHz when used as the early timer"
  107. depends on X86_TSC_TIMER
  108. default 1000
  109. help
  110. Sets the estimated CPU frequency in MHz when TSC is used as the
  111. early timer and the frequency can neither be calibrated via some
  112. hardware ways, nor got from device tree at the time when device
  113. tree is not available yet.
  114. config NOMADIK_MTU_TIMER
  115. bool "Nomadik MTU Timer"
  116. depends on TIMER
  117. help
  118. Enables support for the Nomadik Multi Timer Unit (MTU),
  119. used in ST-Ericsson Ux500 SoCs.
  120. The MTU provides 4 decrementing free-running timers.
  121. At the moment, only the first timer is used by the driver.
  122. config OMAP_TIMER
  123. bool "Omap timer support"
  124. depends on TIMER
  125. help
  126. Select this to enable an timer for Omap devices.
  127. config RISCV_TIMER
  128. bool "RISC-V timer support"
  129. depends on TIMER && RISCV
  130. help
  131. Select this to enable support for a generic RISC-V S-Mode timer
  132. driver.
  133. config ROCKCHIP_TIMER
  134. bool "Rockchip timer support"
  135. depends on TIMER
  136. help
  137. Select this to enable support for the timer found on
  138. Rockchip devices.
  139. config SANDBOX_TIMER
  140. bool "Sandbox timer support"
  141. depends on SANDBOX && TIMER
  142. help
  143. Select this to enable an emulated timer for sandbox. It gets
  144. time from host os.
  145. config STI_TIMER
  146. bool "STi timer support"
  147. depends on TIMER
  148. default y if ARCH_STI
  149. help
  150. Select this to enable a timer for STi devices.
  151. config STM32_TIMER
  152. bool "STM32 timer support"
  153. depends on TIMER
  154. help
  155. Select this to enable support for the timer found on
  156. STM32 devices.
  157. config X86_TSC_TIMER
  158. bool "x86 Time-Stamp Counter (TSC) timer support"
  159. depends on TIMER && X86
  160. help
  161. Select this to enable Time-Stamp Counter (TSC) timer for x86.
  162. config X86_TSC_READ_BASE
  163. bool "Read the TSC timer base on start-up"
  164. depends on X86_TSC_TIMER
  165. help
  166. On x86 platforms the TSC timer tick starts at the value 0 on reset.
  167. This it makes no sense to read the timer on boot and use that as the
  168. base, since we will miss some time taken to load U-Boot, etc. This
  169. delay is controlled by the SoC and we cannot reduce it, but for
  170. bootstage we want to record the time since reset as accurately as
  171. possible.
  172. The only exception is when U-Boot is used as a secondary bootloader,
  173. where this option should be enabled.
  174. config TPL_X86_TSC_TIMER_NATIVE
  175. bool "x86 TSC timer uses native calibration"
  176. depends on TPL && X86_TSC_TIMER
  177. help
  178. Selects native timer calibration for TPL and don't include the other
  179. methods in the code. This helps to reduce code size in TPL and works
  180. on fairly modern Intel chips. Code-size reductions is about 700
  181. bytes.
  182. config MTK_TIMER
  183. bool "MediaTek timer support"
  184. depends on TIMER
  185. help
  186. Select this to enable support for the timer found on
  187. MediaTek devices.
  188. config MCHP_PIT64B_TIMER
  189. bool "Microchip 64-bit periodic interval timer support"
  190. depends on TIMER
  191. help
  192. Select this to enable support for Microchip 64-bit periodic
  193. interval timer.
  194. endmenu