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 "LED Support for BCM6328"
14 depends on LED && ARCH_BMIPS
16 This option enables support for LEDs connected to the BCM6328
17 LED HW controller accessed via MMIO registers.
18 HW blinking is supported and up to 24 LEDs can be controlled.
19 All LEDs can blink at the same time but the delay is shared, which
20 means that if one LED is set to blink at 100ms and then a different
21 LED is set to blink at 200ms, both will blink at 200ms.
24 bool "LED Support for BCM6358"
25 depends on LED && ARCH_BMIPS
27 This option enables support for LEDs connected to the BCM6358
28 LED HW controller accessed via MMIO registers.
29 HW has no blinking capabilities and up to 32 LEDs can be controlled.
32 bool "LED Support for BCM6753"
33 depends on LED && ARCH_BCM6753
35 This option enables support for LEDs connected to the BCM6753
36 HW has blinking and fading capabilities and up to 32 LEDs can be controlled.
39 bool "LED Support for BCM6858"
40 depends on LED && (ARCH_BCM68360 || ARCH_BCM6858 || ARCH_BCM63158)
42 This option enables support for LEDs connected to the BCM6858
43 HW has blinking capabilities and up to 32 LEDs can be controlled.
46 bool "LED Support for Cortina Access CAxxxx SoCs"
47 depends on LED && (CORTINA_PLATFORM)
49 This option enables support for LEDs connected to the Cortina
54 bool "Support LED blinking"
57 Some drivers can support automatic blinking of LEDs with a given
58 period, without needing timers or extra code to handle the timing.
59 This option enables support for this which adds slightly to the
63 bool "Enable LED support in SPL"
64 depends on SPL && SPL_DM
66 The LED subsystem adds a small amount of overhead to the image.
67 If this is acceptable and you have a need to use LEDs in SPL,
68 enable this option. You will need to enable device tree in SPL
72 bool "LED support for GPIO-connected LEDs"
73 depends on LED && DM_GPIO
75 Enable support for LEDs which are connected to GPIO lines. These
76 GPIOs may be on the SoC or some other device which provides GPIOs.
77 The GPIO driver must used driver model. LEDs are configured using
81 bool "LED support for GPIO-connected LEDs in SPL"
82 depends on SPL_LED && DM_GPIO
84 This option is an SPL-variant of the LED_GPIO option.
85 See the help of LED_GPIO for details.
88 bool "Enable status LED API"
90 Allows common u-boot commands to use a board's leds to
91 provide status for activities like booting and downloading files.
101 config LED_STATUS_BLINKING
109 # Hidden constants end
111 config LED_STATUS_GPIO
112 bool "GPIO status LED implementation"
114 The status LED can be connected to a GPIO pin. In such cases, the
115 gpio_led driver can be used as a status LED backend implementation.
117 config LED_STATUS_BOARD_SPECIFIC
118 bool "Specific board"
121 LED support is only for a specific board.
123 comment "LEDs parameters"
126 bool "Enable status LED 0"
130 config LED_STATUS_BIT
133 CONFIG_LED_STATUS_BIT is passed into the __led_* functions to identify
134 which LED is being acted on. As such, the chosen value must be unique
135 with respect to the other CONFIG_LED_STATUS_BIT's. Mapping the value
136 to a physical LED is the responsibility of the __led_* function.
138 config LED_STATUS_STATE
140 range LED_STATUS_OFF LED_STATUS_ON
141 default LED_STATUS_OFF
143 Should be set one of the following:
148 config LED_STATUS_FREQ
149 int "blink frequency"
153 The LED blink period calculated from LED_STATUS_FREQ:
154 LED_STATUS_PERIOD = CONFIG_SYS_HZ/LED_STATUS_FREQ
160 bool "Enable status LED 1"
164 config LED_STATUS_BIT1
167 CONFIG_LED_STATUS_BIT1 is passed into the __led_* functions to
168 identify which LED is being acted on. As such, the chosen value must
169 be unique with respect to the other CONFIG_LED_STATUS_BIT's. Mapping
170 the value to a physical LED is the responsibility of the __led_*
173 config LED_STATUS_STATE1
175 range LED_STATUS_OFF LED_STATUS_ON
176 default LED_STATUS_OFF
178 Should be set one of the following:
183 config LED_STATUS_FREQ1
184 int "blink frequency"
188 The LED blink period calculated from LED_STATUS_FREQ1:
189 LED_STATUS_PERIOD1 = CONFIG_SYS_HZ/LED_STATUS_FREQ1
195 bool "Enable status LED 2"
199 config LED_STATUS_BIT2
202 CONFIG_LED_STATUS_BIT2 is passed into the __led_* functions to
203 identify which LED is being acted on. As such, the chosen value must
204 be unique with respect to the other CONFIG_LED_STATUS_BIT's. Mapping
205 the value to a physical LED is the responsibility of the __led_*
208 config LED_STATUS_STATE2
210 range LED_STATUS_OFF LED_STATUS_ON
211 default LED_STATUS_OFF
213 Should be set one of the following:
218 config LED_STATUS_FREQ2
219 int "blink frequency"
223 The LED blink period calculated from LED_STATUS_FREQ2:
224 LED_STATUS_PERIOD2 = CONFIG_SYS_HZ/LED_STATUS_FREQ2
230 bool "Enable status LED 3"
234 config LED_STATUS_BIT3
237 CONFIG_LED_STATUS_BIT3 is passed into the __led_* functions to
238 identify which LED is being acted on. As such, the chosen value must
239 be unique with respect to the other CONFIG_LED_STATUS_BIT's. Mapping
240 the value to a physical LED is the responsibility of the __led_*
243 config LED_STATUS_STATE3
245 range LED_STATUS_OFF LED_STATUS_ON
246 default LED_STATUS_OFF
248 Should be set one of the following:
253 config LED_STATUS_FREQ3
254 int "blink frequency"
258 The LED blink period calculated from LED_STATUS_FREQ3:
259 LED_STATUS_PERIOD3 = CONFIG_SYS_HZ/LED_STATUS_FREQ3
265 bool "Enable status LED 4"
269 config LED_STATUS_BIT4
272 CONFIG_LED_STATUS_BIT4 is passed into the __led_* functions to
273 identify which LED is being acted on. As such, the chosen value must
274 be unique with respect to the other CONFIG_LED_STATUS_BIT's. Mapping
275 the value to a physical LED is the responsibility of the __led_*
278 config LED_STATUS_STATE4
280 range LED_STATUS_OFF LED_STATUS_ON
281 default LED_STATUS_OFF
283 Should be set one of the following:
288 config LED_STATUS_FREQ4
289 int "blink frequency"
293 The LED blink period calculated from LED_STATUS_FREQ4:
294 LED_STATUS_PERIOD4 = CONFIG_SYS_HZ/LED_STATUS_FREQ4
300 bool "Enable status LED 5"
304 config LED_STATUS_BIT5
307 CONFIG_LED_STATUS_BIT5 is passed into the __led_* functions to
308 identify which LED is being acted on. As such, the chosen value must
309 be unique with respect to the other CONFIG_LED_STATUS_BIT's. Mapping
310 the value to a physical LED is the responsibility of the __led_*
313 config LED_STATUS_STATE5
315 range LED_STATUS_OFF LED_STATUS_ON
316 default LED_STATUS_OFF
318 Should be set one of the following:
323 config LED_STATUS_FREQ5
324 int "blink frequency"
328 The LED blink period calculated from LED_STATUS_FREQ5:
329 LED_STATUS_PERIOD5 = CONFIG_SYS_HZ/LED_STATUS_FREQ5
334 config LED_STATUS_BOOT_ENABLE
335 bool "Enable BOOT LED"
337 Enable to turn an LED on when the board is booting.
339 if LED_STATUS_BOOT_ENABLE
341 config LED_STATUS_BOOT
342 int "LED to light when the board is booting"
344 Valid enabled LED device number.
346 endif # LED_STATUS_BOOT_ENABLE
348 config LED_STATUS_RED_ENABLE
349 bool "Enable red LED"
351 Enable red status LED.
353 if LED_STATUS_RED_ENABLE
355 config LED_STATUS_RED
356 int "Red LED identification"
358 Valid enabled LED device number.
360 endif # LED_STATUS_RED_ENABLE
362 config LED_STATUS_YELLOW_ENABLE
363 bool "Enable yellow LED"
365 Enable yellow status LED.
367 if LED_STATUS_YELLOW_ENABLE
369 config LED_STATUS_YELLOW
370 int "Yellow LED identification"
372 Valid enabled LED device number.
374 endif # LED_STATUS_YELLOW_ENABLE
376 config LED_STATUS_BLUE_ENABLE
377 bool "Enable blue LED"
379 Enable blue status LED.
381 if LED_STATUS_BLUE_ENABLE
383 config LED_STATUS_BLUE
384 int "Blue LED identification"
386 Valid enabled LED device number.
388 endif # LED_STATUS_BLUE_ENABLE
390 config LED_STATUS_GREEN_ENABLE
391 bool "Enable green LED"
393 Enable green status LED.
395 if LED_STATUS_GREEN_ENABLE
397 config LED_STATUS_GREEN
398 int "Green LED identification"
400 Valid enabled LED device number (0-5).
402 endif # LED_STATUS_GREEN_ENABLE
404 config LED_STATUS_CMD
405 bool "Enable status LED commands"