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 "Support LED blinking"
27 Some drivers can support automatic blinking of LEDs with a given
28 period, without needing timers or extra code to handle the timing.
29 This option enables support for this which adds slightly to the
33 bool "Enable LED support in SPL"
34 depends on SPL && SPL_DM
36 The LED subsystem adds a small amount of overhead to the image.
37 If this is acceptable and you have a need to use LEDs in SPL,
38 enable this option. You will need to enable device tree in SPL
42 bool "LED support for GPIO-connected LEDs"
43 depends on LED && DM_GPIO
45 Enable support for LEDs which are connected to GPIO lines. These
46 GPIOs may be on the SoC or some other device which provides GPIOs.
47 The GPIO driver must used driver model. LEDs are configured using
51 bool "LED support for GPIO-connected LEDs in SPL"
52 depends on SPL_LED && DM_GPIO
54 This option is an SPL-variant of the LED_GPIO option.
55 See the help of LED_GPIO for details.
58 bool "Enable status LED API"
60 Allows common u-boot commands to use a board's leds to
61 provide status for activities like booting and downloading files.
71 config LED_STATUS_BLINKING
79 # Hidden constants end
81 config LED_STATUS_GPIO
82 bool "GPIO status LED implementation"
84 The status LED can be connected to a GPIO pin. In such cases, the
85 gpio_led driver can be used as a status LED backend implementation.
87 config LED_STATUS_BOARD_SPECIFIC
91 LED support is only for a specific board.
93 comment "LEDs parameters"
96 bool "Enable status LED 0"
100 config LED_STATUS_BIT
103 CONFIG_LED_STATUS_BIT is passed into the __led_* functions to identify
104 which LED is being acted on. As such, the chosen value must be unique
105 with respect to the other CONFIG_LED_STATUS_BIT's. Mapping the value
106 to a physical LED is the responsibility of the __led_* function.
108 config LED_STATUS_STATE
110 range LED_STATUS_OFF LED_STATUS_ON
111 default LED_STATUS_OFF
113 Should be set one of the following:
118 config LED_STATUS_FREQ
119 int "blink frequency"
123 The LED blink period calculated from LED_STATUS_FREQ:
124 LED_STATUS_PERIOD = CONFIG_SYS_HZ/LED_STATUS_FREQ
130 bool "Enable status LED 1"
134 config LED_STATUS_BIT1
137 CONFIG_LED_STATUS_BIT1 is passed into the __led_* functions to
138 identify which LED is being acted on. As such, the chosen value must
139 be unique with respect to the other CONFIG_LED_STATUS_BIT's. Mapping
140 the value to a physical LED is the responsibility of the __led_*
143 config LED_STATUS_STATE1
145 range LED_STATUS_OFF LED_STATUS_ON
146 default LED_STATUS_OFF
148 Should be set one of the following:
153 config LED_STATUS_FREQ1
154 int "blink frequency"
158 The LED blink period calculated from LED_STATUS_FREQ1:
159 LED_STATUS_PERIOD1 = CONFIG_SYS_HZ/LED_STATUS_FREQ1
165 bool "Enable status LED 2"
169 config LED_STATUS_BIT2
172 CONFIG_LED_STATUS_BIT2 is passed into the __led_* functions to
173 identify which LED is being acted on. As such, the chosen value must
174 be unique with respect to the other CONFIG_LED_STATUS_BIT's. Mapping
175 the value to a physical LED is the responsibility of the __led_*
178 config LED_STATUS_STATE2
180 range LED_STATUS_OFF LED_STATUS_ON
181 default LED_STATUS_OFF
183 Should be set one of the following:
188 config LED_STATUS_FREQ2
189 int "blink frequency"
193 The LED blink period calculated from LED_STATUS_FREQ2:
194 LED_STATUS_PERIOD2 = CONFIG_SYS_HZ/LED_STATUS_FREQ2
200 bool "Enable status LED 3"
204 config LED_STATUS_BIT3
207 CONFIG_LED_STATUS_BIT3 is passed into the __led_* functions to
208 identify which LED is being acted on. As such, the chosen value must
209 be unique with respect to the other CONFIG_LED_STATUS_BIT's. Mapping
210 the value to a physical LED is the responsibility of the __led_*
213 config LED_STATUS_STATE3
215 range LED_STATUS_OFF LED_STATUS_ON
216 default LED_STATUS_OFF
218 Should be set one of the following:
223 config LED_STATUS_FREQ3
224 int "blink frequency"
228 The LED blink period calculated from LED_STATUS_FREQ3:
229 LED_STATUS_PERIOD3 = CONFIG_SYS_HZ/LED_STATUS_FREQ3
235 bool "Enable status LED 4"
239 config LED_STATUS_BIT4
242 CONFIG_LED_STATUS_BIT4 is passed into the __led_* functions to
243 identify which LED is being acted on. As such, the chosen value must
244 be unique with respect to the other CONFIG_LED_STATUS_BIT's. Mapping
245 the value to a physical LED is the responsibility of the __led_*
248 config LED_STATUS_STATE4
250 range LED_STATUS_OFF LED_STATUS_ON
251 default LED_STATUS_OFF
253 Should be set one of the following:
258 config LED_STATUS_FREQ4
259 int "blink frequency"
263 The LED blink period calculated from LED_STATUS_FREQ4:
264 LED_STATUS_PERIOD4 = CONFIG_SYS_HZ/LED_STATUS_FREQ4
270 bool "Enable status LED 5"
274 config LED_STATUS_BIT5
277 CONFIG_LED_STATUS_BIT5 is passed into the __led_* functions to
278 identify which LED is being acted on. As such, the chosen value must
279 be unique with respect to the other CONFIG_LED_STATUS_BIT's. Mapping
280 the value to a physical LED is the responsibility of the __led_*
283 config LED_STATUS_STATE5
285 range LED_STATUS_OFF LED_STATUS_ON
286 default LED_STATUS_OFF
288 Should be set one of the following:
293 config LED_STATUS_FREQ5
294 int "blink frequency"
298 The LED blink period calculated from LED_STATUS_FREQ5:
299 LED_STATUS_PERIOD5 = CONFIG_SYS_HZ/LED_STATUS_FREQ5
304 config LED_STATUS_BOOT_ENABLE
305 bool "Enable BOOT LED"
307 Enable to turn an LED on when the board is booting.
309 if LED_STATUS_BOOT_ENABLE
311 config LED_STATUS_BOOT
312 int "LED to light when the board is booting"
314 Valid enabled LED device number.
316 endif # LED_STATUS_BOOT_ENABLE
318 config LED_STATUS_RED_ENABLE
319 bool "Enable red LED"
321 Enable red status LED.
323 if LED_STATUS_RED_ENABLE
325 config LED_STATUS_RED
326 int "Red LED identification"
328 Valid enabled LED device number.
330 endif # LED_STATUS_RED_ENABLE
332 config LED_STATUS_YELLOW_ENABLE
333 bool "Enable yellow LED"
335 Enable yellow status LED.
337 if LED_STATUS_YELLOW_ENABLE
339 config LED_STATUS_YELLOW
340 int "Yellow LED identification"
342 Valid enabled LED device number.
344 endif # LED_STATUS_YELLOW_ENABLE
346 config LED_STATUS_BLUE_ENABLE
347 bool "Enable blue LED"
349 Enable blue status LED.
351 if LED_STATUS_BLUE_ENABLE
353 config LED_STATUS_BLUE
354 int "Blue LED identification"
356 Valid enabled LED device number.
358 endif # LED_STATUS_BLUE_ENABLE
360 config LED_STATUS_GREEN_ENABLE
361 bool "Enable green LED"
363 Enable green status LED.
365 if LED_STATUS_GREEN_ENABLE
367 config LED_STATUS_GREEN
368 int "Green LED identification"
370 Valid enabled LED device number (0-5).
372 endif # LED_STATUS_GREEN_ENABLE
374 config LED_STATUS_CMD
375 bool "Enable status LED commands"