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 "Support LED blinking"
35 Some drivers can support automatic blinking of LEDs with a given
36 period, without needing timers or extra code to handle the timing.
37 This option enables support for this which adds slightly to the
41 bool "Enable LED support in SPL"
42 depends on SPL && SPL_DM
44 The LED subsystem adds a small amount of overhead to the image.
45 If this is acceptable and you have a need to use LEDs in SPL,
46 enable this option. You will need to enable device tree in SPL
50 bool "LED support for GPIO-connected LEDs"
51 depends on LED && DM_GPIO
53 Enable support for LEDs which are connected to GPIO lines. These
54 GPIOs may be on the SoC or some other device which provides GPIOs.
55 The GPIO driver must used driver model. LEDs are configured using
59 bool "LED support for GPIO-connected LEDs in SPL"
60 depends on SPL_LED && DM_GPIO
62 This option is an SPL-variant of the LED_GPIO option.
63 See the help of LED_GPIO for details.
66 bool "Enable status LED API"
68 Allows common u-boot commands to use a board's leds to
69 provide status for activities like booting and downloading files.
79 config LED_STATUS_BLINKING
87 # Hidden constants end
89 config LED_STATUS_GPIO
90 bool "GPIO status LED implementation"
92 The status LED can be connected to a GPIO pin. In such cases, the
93 gpio_led driver can be used as a status LED backend implementation.
95 config LED_STATUS_BOARD_SPECIFIC
99 LED support is only for a specific board.
101 comment "LEDs parameters"
104 bool "Enable status LED 0"
108 config LED_STATUS_BIT
111 CONFIG_LED_STATUS_BIT is passed into the __led_* functions to identify
112 which LED is being acted on. As such, the chosen value must be unique
113 with respect to the other CONFIG_LED_STATUS_BIT's. Mapping the value
114 to a physical LED is the responsibility of the __led_* function.
116 config LED_STATUS_STATE
118 range LED_STATUS_OFF LED_STATUS_ON
119 default LED_STATUS_OFF
121 Should be set one of the following:
126 config LED_STATUS_FREQ
127 int "blink frequency"
131 The LED blink period calculated from LED_STATUS_FREQ:
132 LED_STATUS_PERIOD = CONFIG_SYS_HZ/LED_STATUS_FREQ
138 bool "Enable status LED 1"
142 config LED_STATUS_BIT1
145 CONFIG_LED_STATUS_BIT1 is passed into the __led_* functions to
146 identify which LED is being acted on. As such, the chosen value must
147 be unique with respect to the other CONFIG_LED_STATUS_BIT's. Mapping
148 the value to a physical LED is the responsibility of the __led_*
151 config LED_STATUS_STATE1
153 range LED_STATUS_OFF LED_STATUS_ON
154 default LED_STATUS_OFF
156 Should be set one of the following:
161 config LED_STATUS_FREQ1
162 int "blink frequency"
166 The LED blink period calculated from LED_STATUS_FREQ1:
167 LED_STATUS_PERIOD1 = CONFIG_SYS_HZ/LED_STATUS_FREQ1
173 bool "Enable status LED 2"
177 config LED_STATUS_BIT2
180 CONFIG_LED_STATUS_BIT2 is passed into the __led_* functions to
181 identify which LED is being acted on. As such, the chosen value must
182 be unique with respect to the other CONFIG_LED_STATUS_BIT's. Mapping
183 the value to a physical LED is the responsibility of the __led_*
186 config LED_STATUS_STATE2
188 range LED_STATUS_OFF LED_STATUS_ON
189 default LED_STATUS_OFF
191 Should be set one of the following:
196 config LED_STATUS_FREQ2
197 int "blink frequency"
201 The LED blink period calculated from LED_STATUS_FREQ2:
202 LED_STATUS_PERIOD2 = CONFIG_SYS_HZ/LED_STATUS_FREQ2
208 bool "Enable status LED 3"
212 config LED_STATUS_BIT3
215 CONFIG_LED_STATUS_BIT3 is passed into the __led_* functions to
216 identify which LED is being acted on. As such, the chosen value must
217 be unique with respect to the other CONFIG_LED_STATUS_BIT's. Mapping
218 the value to a physical LED is the responsibility of the __led_*
221 config LED_STATUS_STATE3
223 range LED_STATUS_OFF LED_STATUS_ON
224 default LED_STATUS_OFF
226 Should be set one of the following:
231 config LED_STATUS_FREQ3
232 int "blink frequency"
236 The LED blink period calculated from LED_STATUS_FREQ3:
237 LED_STATUS_PERIOD3 = CONFIG_SYS_HZ/LED_STATUS_FREQ3
243 bool "Enable status LED 4"
247 config LED_STATUS_BIT4
250 CONFIG_LED_STATUS_BIT4 is passed into the __led_* functions to
251 identify which LED is being acted on. As such, the chosen value must
252 be unique with respect to the other CONFIG_LED_STATUS_BIT's. Mapping
253 the value to a physical LED is the responsibility of the __led_*
256 config LED_STATUS_STATE4
258 range LED_STATUS_OFF LED_STATUS_ON
259 default LED_STATUS_OFF
261 Should be set one of the following:
266 config LED_STATUS_FREQ4
267 int "blink frequency"
271 The LED blink period calculated from LED_STATUS_FREQ4:
272 LED_STATUS_PERIOD4 = CONFIG_SYS_HZ/LED_STATUS_FREQ4
278 bool "Enable status LED 5"
282 config LED_STATUS_BIT5
285 CONFIG_LED_STATUS_BIT5 is passed into the __led_* functions to
286 identify which LED is being acted on. As such, the chosen value must
287 be unique with respect to the other CONFIG_LED_STATUS_BIT's. Mapping
288 the value to a physical LED is the responsibility of the __led_*
291 config LED_STATUS_STATE5
293 range LED_STATUS_OFF LED_STATUS_ON
294 default LED_STATUS_OFF
296 Should be set one of the following:
301 config LED_STATUS_FREQ5
302 int "blink frequency"
306 The LED blink period calculated from LED_STATUS_FREQ5:
307 LED_STATUS_PERIOD5 = CONFIG_SYS_HZ/LED_STATUS_FREQ5
312 config LED_STATUS_BOOT_ENABLE
313 bool "Enable BOOT LED"
315 Enable to turn an LED on when the board is booting.
317 if LED_STATUS_BOOT_ENABLE
319 config LED_STATUS_BOOT
320 int "LED to light when the board is booting"
322 Valid enabled LED device number.
324 endif # LED_STATUS_BOOT_ENABLE
326 config LED_STATUS_RED_ENABLE
327 bool "Enable red LED"
329 Enable red status LED.
331 if LED_STATUS_RED_ENABLE
333 config LED_STATUS_RED
334 int "Red LED identification"
336 Valid enabled LED device number.
338 endif # LED_STATUS_RED_ENABLE
340 config LED_STATUS_YELLOW_ENABLE
341 bool "Enable yellow LED"
343 Enable yellow status LED.
345 if LED_STATUS_YELLOW_ENABLE
347 config LED_STATUS_YELLOW
348 int "Yellow LED identification"
350 Valid enabled LED device number.
352 endif # LED_STATUS_YELLOW_ENABLE
354 config LED_STATUS_BLUE_ENABLE
355 bool "Enable blue LED"
357 Enable blue status LED.
359 if LED_STATUS_BLUE_ENABLE
361 config LED_STATUS_BLUE
362 int "Blue LED identification"
364 Valid enabled LED device number.
366 endif # LED_STATUS_BLUE_ENABLE
368 config LED_STATUS_GREEN_ENABLE
369 bool "Enable green LED"
371 Enable green status LED.
373 if LED_STATUS_GREEN_ENABLE
375 config LED_STATUS_GREEN
376 int "Green LED identification"
378 Valid enabled LED device number (0-5).
380 endif # LED_STATUS_GREEN_ENABLE
382 config LED_STATUS_CMD
383 bool "Enable status LED commands"