Kconfig 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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 X86_TSC_TIMER_EARLY_FREQ
  100. int "x86 TSC timer frequency in MHz when used as the early timer"
  101. depends on X86_TSC_TIMER
  102. default 1000
  103. help
  104. Sets the estimated CPU frequency in MHz when TSC is used as the
  105. early timer and the frequency can neither be calibrated via some
  106. hardware ways, nor got from device tree at the time when device
  107. tree is not available yet.
  108. config OMAP_TIMER
  109. bool "Omap timer support"
  110. depends on TIMER
  111. help
  112. Select this to enable an timer for Omap devices.
  113. config ROCKCHIP_TIMER
  114. bool "Rockchip timer support"
  115. depends on TIMER
  116. help
  117. Select this to enable support for the timer found on
  118. Rockchip devices.
  119. config SANDBOX_TIMER
  120. bool "Sandbox timer support"
  121. depends on SANDBOX && TIMER
  122. help
  123. Select this to enable an emulated timer for sandbox. It gets
  124. time from host os.
  125. config STI_TIMER
  126. bool "STi timer support"
  127. depends on TIMER
  128. default y if ARCH_STI
  129. help
  130. Select this to enable a timer for STi devices.
  131. config STM32_TIMER
  132. bool "STM32 timer support"
  133. depends on TIMER
  134. help
  135. Select this to enable support for the timer found on
  136. STM32 devices.
  137. config X86_TSC_TIMER
  138. bool "x86 Time-Stamp Counter (TSC) timer support"
  139. depends on TIMER && X86
  140. help
  141. Select this to enable Time-Stamp Counter (TSC) timer for x86.
  142. endmenu