Blame view

drivers/timer/Kconfig 5.22 KB
c8a7ba9e6   Thomas Chou   dm: implement a T...
1
2
3
  menu "Timer Support"
  
  config TIMER
435ae76ed   Bin Meng   dm: timer: Fix se...
4
  	bool "Enable driver model for timer drivers"
c8a7ba9e6   Thomas Chou   dm: implement a T...
5
6
  	depends on DM
  	help
435ae76ed   Bin Meng   dm: timer: Fix se...
7
8
  	  Enable driver model for timer access. It uses the same API as
  	  lib/time.c, but now implemented by the uclass. The first timer
c8a7ba9e6   Thomas Chou   dm: implement a T...
9
10
  	  will be used. The timer is usually a 32 bits free-running up
  	  counter. There may be no real tick, and no timer interrupt.
e9e5d9d29   Philipp Tomsich   dm: timer: normal...
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
  config SPL_TIMER
  	bool "Enable driver model for timer drivers in SPL"
  	depends on TIMER && SPL
  	help
  	  Enable support for timer drivers in SPL. These can be used to get
  	  a timer value when in SPL, or perhaps for implementing a delay
  	  function. This enables the drivers in drivers/timer as part of an
  	  SPL build.
  
  config TPL_TIMER
  	bool "Enable driver model for timer drivers in TPL"
  	depends on TIMER && TPL
  	help
  	  Enable support for timer drivers in TPL. These can be used to get
  	  a timer value when in TPL, or perhaps for implementing a delay
  	  function. This enables the drivers in drivers/timer as part of an
  	  TPL build.
c95fec319   Simon Glass   timer: Provide an...
28
29
30
  config TIMER_EARLY
  	bool "Allow timer to be used early in U-Boot"
  	depends on TIMER
97d20f69f   Simon Glass   Enable CONFIG_TIM...
31
32
33
  	# initr_bootstage() requires a timer and is called before initr_dm()
  	# so only the early timer is available
  	default y if X86 && BOOTSTAGE
c95fec319   Simon Glass   timer: Provide an...
34
35
36
37
38
39
  	help
  	  In some cases the timer must be accessible before driver model is
  	  active. Examples include when using CONFIG_TRACE to trace U-Boot's
  	  execution before driver model is set up. Enable this option to
  	  use an early timer. These functions must be supported by your timer
  	  driver: timer_early_get_count() and timer_early_get_rate().
73fe41117   Bin Meng   timer: Sort Kconf...
40
41
42
43
44
  config AG101P_TIMER
  	bool "AG101P timer support"
  	depends on TIMER && NDS32
  	help
  	  Select this to enable a timer for AG01P devices.
a54915d8a   Thomas Chou   nios2: convert al...
45
  config ALTERA_TIMER
435ae76ed   Bin Meng   dm: timer: Fix se...
46
  	bool "Altera timer support"
a54915d8a   Thomas Chou   nios2: convert al...
47
48
  	depends on TIMER
  	help
435ae76ed   Bin Meng   dm: timer: Fix se...
49
  	  Select this to enable a timer for Altera devices. Please find
a54915d8a   Thomas Chou   nios2: convert al...
50
  	  details on the "Embedded Peripherals IP User Guide" of Altera.
73fe41117   Bin Meng   timer: Sort Kconf...
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
  config ARC_TIMER
  	bool "ARC timer support"
  	depends on TIMER && ARC && CLK
  	help
  	  Select this to enable built-in ARC timers.
  	  ARC cores may have up to 2 built-in timers: timer0 and timer1,
  	  usually at least one of them exists. Either of them is supported
  	  in U-Boot.
  
  config AST_TIMER
  	bool "Aspeed ast2400/ast2500 timer support"
  	depends on TIMER
  	default y if ARCH_ASPEED
  	help
  	  Select this to enable timer for Aspeed ast2400/ast2500 devices.
  	  This is a simple sys timer driver, it is compatible with lib/time.c,
  	  but does not support any interrupts. Even though SoC has 8 hardware
  	  counters, they are all treated as a single device by this driver.
  	  This is mostly because they all share several registers which
  	  makes it difficult to completely separate them.
  
  config ATCPIT100_TIMER
  	bool "ATCPIT100 timer support"
  	depends on TIMER
  	help
  	  Select this to enable a ATCPIT100 timer which will be embedded
  	  in AE3XX, AE250 boards.
47edaea49   Wenyou.Yang@microchip.com   driver: timer: Ad...
78
79
80
81
82
83
84
  config ATMEL_PIT_TIMER
  	bool "Atmel periodic interval timer support"
  	depends on TIMER
  	help
  	  Select this to enable a periodic interval timer for Atmel devices,
  	  it is designed to offer maximum accuracy and efficient management,
  	  even for systems with long response time.
72c37d122   Michal Simek   timer: Add Cadenc...
85
86
87
88
89
90
  config CADENCE_TTC_TIMER
  	bool "Cadence TTC (Triple Timer Counter)"
  	depends on TIMER
  	help
  	  Enables support for the cadence ttc driver. This driver is present
  	  on Xilinx Zynq and ZynqMP SoCs.
66011a088   Marek Vasut   timer: dw-apb: Ad...
91
92
93
94
95
96
  config DESIGNWARE_APB_TIMER
  	bool "Designware APB Timer"
  	depends on TIMER
  	help
  	  Enables support for the Designware APB Timer driver. This timer is
  	  present on Altera SoCFPGA SoCs.
73fe41117   Bin Meng   timer: Sort Kconf...
97
98
99
  config MPC83XX_TIMER
  	bool "MPC83xx timer support"
  	depends on TIMER
7030f27ef   Bin Meng   x86: tsc: Move ts...
100
  	help
73fe41117   Bin Meng   timer: Sort Kconf...
101
102
  	  Select this to enable support for the timer found on
  	  devices based on the MPC83xx family of SoCs.
7030f27ef   Bin Meng   x86: tsc: Move ts...
103

6ce383640   Bin Meng   x86: tsc: Introdu...
104
105
106
107
108
109
110
111
112
  config X86_TSC_TIMER_EARLY_FREQ
  	int "x86 TSC timer frequency in MHz when used as the early timer"
  	depends on X86_TSC_TIMER
  	default 1000
  	help
  	  Sets the estimated CPU frequency in MHz when TSC is used as the
  	  early timer and the frequency can neither be calibrated via some
  	  hardware ways, nor got from device tree at the time when device
  	  tree is not available yet.
dadf31375   Mugunthan V N   drivers: timer: o...
113
114
115
116
117
  config OMAP_TIMER
  	bool "Omap timer support"
  	depends on TIMER
  	help
  	  Select this to enable an timer for Omap devices.
60262cd04   Bin Meng   timer: Add generi...
118
119
120
121
122
123
  config RISCV_TIMER
  	bool "RISC-V timer support"
  	depends on TIMER && RISCV
  	help
  	  Select this to enable support for the timer as defined
  	  by the RISC-V privileged architecture spec.
73fe41117   Bin Meng   timer: Sort Kconf...
124
125
  config ROCKCHIP_TIMER
  	bool "Rockchip timer support"
4697abea6   maxims@google.com   aspeed: Add drive...
126
  	depends on TIMER
4697abea6   maxims@google.com   aspeed: Add drive...
127
  	help
73fe41117   Bin Meng   timer: Sort Kconf...
128
129
130
131
132
133
134
135
136
  	  Select this to enable support for the timer found on
  	  Rockchip devices.
  
  config SANDBOX_TIMER
  	bool "Sandbox timer support"
  	depends on SANDBOX && TIMER
  	help
  	  Select this to enable an emulated timer for sandbox. It gets
  	  time from host os.
4697abea6   maxims@google.com   aspeed: Add drive...
137

347cb2edf   Patrice Chotard   STiH410: Add STi ...
138
139
140
141
142
143
  config STI_TIMER
  	bool "STi timer support"
  	depends on TIMER
  	default y if ARCH_STI
  	help
  	  Select this to enable a timer for STi devices.
5120a083e   Patrice Chotard   timer: stm32: Add...
144
  config STM32_TIMER
73fe41117   Bin Meng   timer: Sort Kconf...
145
  	bool "STM32 timer support"
5120a083e   Patrice Chotard   timer: stm32: Add...
146
147
148
149
  	depends on TIMER
  	help
  	  Select this to enable support for the timer found on
  	  STM32 devices.
73fe41117   Bin Meng   timer: Sort Kconf...
150
151
152
  config X86_TSC_TIMER
  	bool "x86 Time-Stamp Counter (TSC) timer support"
  	depends on TIMER && X86
2c21749d7   Mario Six   timer: Add MPC83x...
153
  	help
73fe41117   Bin Meng   timer: Sort Kconf...
154
  	  Select this to enable Time-Stamp Counter (TSC) timer for x86.
2c21749d7   Mario Six   timer: Add MPC83x...
155

d3c3606c5   Ryder Lee   timer: MediaTek: ...
156
157
158
159
160
161
  config MTK_TIMER
  	bool "MediaTek timer support"
  	depends on TIMER
  	help
  	  Select this to enable support for the timer found on
  	  MediaTek devices.
c8a7ba9e6   Thomas Chou   dm: implement a T...
162
  endmenu