4 bool "Enable LED support"
7 Many boards have LEDs which can be used to signal status or alerts.
8 U-Boot provides a uclass API to implement this feature. LED drivers
9 can provide access to board-specific LEDs. Use of the device tree
10 for configuration is encouraged.
13 bool "Support LED blinking"
16 Some drivers can support automatic blinking of LEDs with a given
17 period, without needing timers or extra code to handle the timing.
18 This option enables support for this which adds slightly to the
22 bool "Enable LED support in SPL"
23 depends on SPL && SPL_DM
25 The LED subsystem adds a small amount of overhead to the image.
26 If this is acceptable and you have a need to use LEDs in SPL,
27 enable this option. You will need to enable device tree in SPL
31 bool "LED support for GPIO-connected LEDs"
32 depends on LED && DM_GPIO
34 Enable support for LEDs which are connected to GPIO lines. These
35 GPIOs may be on the SoC or some other device which provides GPIOs.
36 The GPIO driver must used driver model. LEDs are configured using
40 bool "LED support for GPIO-connected LEDs in SPL"
41 depends on SPL_LED && DM_GPIO
43 This option is an SPL-variant of the LED_GPIO option.
44 See the help of LED_GPIO for details.
47 bool "Enable status LED API"
49 Allows common u-boot commands to use a board's leds to
50 provide status for activities like booting and downloading files.
60 config LED_STATUS_BLINKING
68 # Hidden constants end
70 config LED_STATUS_GPIO
71 bool "GPIO status LED implementation"
73 The status LED can be connected to a GPIO pin. In such cases, the
74 gpio_led driver can be used as a status LED backend implementation.
76 config LED_STATUS_BOARD_SPECIFIC
80 LED support is only for a specific board.
82 comment "LEDs parameters"
85 bool "Enable status LED 0"
92 CONFIG_LED_STATUS_BIT is passed into the __led_* functions to identify
93 which LED is being acted on. As such, the chosen value must be unique
94 with respect to the other CONFIG_LED_STATUS_BIT's. Mapping the value
95 to a physical LED is the responsibility of the __led_* function.
97 config LED_STATUS_STATE
99 range LED_STATUS_OFF LED_STATUS_ON
100 default LED_STATUS_OFF
102 Should be set one of the following:
107 config LED_STATUS_FREQ
108 int "blink frequency"
112 The LED blink period calculated from LED_STATUS_FREQ:
113 LED_STATUS_PERIOD = CONFIG_SYS_HZ/LED_STATUS_FREQ
119 bool "Enable status LED 1"
123 config LED_STATUS_BIT1
126 CONFIG_LED_STATUS_BIT1 is passed into the __led_* functions to
127 identify which LED is being acted on. As such, the chosen value must
128 be unique with respect to the other CONFIG_LED_STATUS_BIT's. Mapping
129 the value to a physical LED is the responsibility of the __led_*
132 config LED_STATUS_STATE1
134 range LED_STATUS_OFF LED_STATUS_ON
135 default LED_STATUS_OFF
137 Should be set one of the following:
142 config LED_STATUS_FREQ1
143 int "blink frequency"
147 The LED blink period calculated from LED_STATUS_FREQ1:
148 LED_STATUS_PERIOD1 = CONFIG_SYS_HZ/LED_STATUS_FREQ1
154 bool "Enable status LED 2"
158 config LED_STATUS_BIT2
161 CONFIG_LED_STATUS_BIT2 is passed into the __led_* functions to
162 identify which LED is being acted on. As such, the chosen value must
163 be unique with respect to the other CONFIG_LED_STATUS_BIT's. Mapping
164 the value to a physical LED is the responsibility of the __led_*
167 config LED_STATUS_STATE2
169 range LED_STATUS_OFF LED_STATUS_ON
170 default LED_STATUS_OFF
172 Should be set one of the following:
177 config LED_STATUS_FREQ2
178 int "blink frequency"
182 The LED blink period calculated from LED_STATUS_FREQ2:
183 LED_STATUS_PERIOD2 = CONFIG_SYS_HZ/LED_STATUS_FREQ2
189 bool "Enable status LED 3"
193 config LED_STATUS_BIT3
196 CONFIG_LED_STATUS_BIT3 is passed into the __led_* functions to
197 identify which LED is being acted on. As such, the chosen value must
198 be unique with respect to the other CONFIG_LED_STATUS_BIT's. Mapping
199 the value to a physical LED is the responsibility of the __led_*
202 config LED_STATUS_STATE3
204 range LED_STATUS_OFF LED_STATUS_ON
205 default LED_STATUS_OFF
207 Should be set one of the following:
212 config LED_STATUS_FREQ3
213 int "blink frequency"
217 The LED blink period calculated from LED_STATUS_FREQ3:
218 LED_STATUS_PERIOD3 = CONFIG_SYS_HZ/LED_STATUS_FREQ3
224 bool "Enable status LED 4"
228 config LED_STATUS_BIT4
231 CONFIG_LED_STATUS_BIT4 is passed into the __led_* functions to
232 identify which LED is being acted on. As such, the chosen value must
233 be unique with respect to the other CONFIG_LED_STATUS_BIT's. Mapping
234 the value to a physical LED is the responsibility of the __led_*
237 config LED_STATUS_STATE4
239 range LED_STATUS_OFF LED_STATUS_ON
240 default LED_STATUS_OFF
242 Should be set one of the following:
247 config LED_STATUS_FREQ4
248 int "blink frequency"
252 The LED blink period calculated from LED_STATUS_FREQ4:
253 LED_STATUS_PERIOD4 = CONFIG_SYS_HZ/LED_STATUS_FREQ4
259 bool "Enable status LED 5"
263 config LED_STATUS_BIT5
266 CONFIG_LED_STATUS_BIT5 is passed into the __led_* functions to
267 identify which LED is being acted on. As such, the chosen value must
268 be unique with respect to the other CONFIG_LED_STATUS_BIT's. Mapping
269 the value to a physical LED is the responsibility of the __led_*
272 config LED_STATUS_STATE5
274 range LED_STATUS_OFF LED_STATUS_ON
275 default LED_STATUS_OFF
277 Should be set one of the following:
282 config LED_STATUS_FREQ5
283 int "blink frequency"
287 The LED blink period calculated from LED_STATUS_FREQ5:
288 LED_STATUS_PERIOD5 = CONFIG_SYS_HZ/LED_STATUS_FREQ5
293 config LED_STATUS_BOOT_ENABLE
294 bool "Enable BOOT LED"
296 Enable to turn an LED on when the board is booting.
298 if LED_STATUS_BOOT_ENABLE
300 config LED_STATUS_BOOT
301 int "LED to light when the board is booting"
303 Valid enabled LED device number.
305 endif # LED_STATUS_BOOT_ENABLE
307 config LED_STATUS_RED_ENABLE
308 bool "Enable red LED"
310 Enable red status LED.
312 if LED_STATUS_RED_ENABLE
314 config LED_STATUS_RED
315 int "Red LED identification"
317 Valid enabled LED device number.
319 endif # LED_STATUS_RED_ENABLE
321 config LED_STATUS_YELLOW_ENABLE
322 bool "Enable yellow LED"
324 Enable yellow status LED.
326 if LED_STATUS_YELLOW_ENABLE
328 config LED_STATUS_YELLOW
329 int "Yellow LED identification"
331 Valid enabled LED device number.
333 endif # LED_STATUS_YELLOW_ENABLE
335 config LED_STATUS_BLUE_ENABLE
336 bool "Enable blue LED"
338 Enable blue status LED.
340 if LED_STATUS_BLUE_ENABLE
342 config LED_STATUS_BLUE
343 int "Blue LED identification"
345 Valid enabled LED device number.
347 endif # LED_STATUS_BLUE_ENABLE
349 config LED_STATUS_GREEN_ENABLE
350 bool "Enable green LED"
352 Enable green status LED.
354 if LED_STATUS_GREEN_ENABLE
356 config LED_STATUS_GREEN
357 int "Green LED identification"
359 Valid enabled LED device number (0-5).
361 endif # LED_STATUS_GREEN_ENABLE
363 config LED_STATUS_CMD
364 bool "Enable status LED commands"