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 BCM6858"
33 depends on LED && (ARCH_BCM6858 || ARCH_BCM63158)
35 This option enables support for LEDs connected to the BCM6858
36 HW has blinking capabilities and up to 32 LEDs can be controlled.
39 bool "Support LED blinking"
42 Some drivers can support automatic blinking of LEDs with a given
43 period, without needing timers or extra code to handle the timing.
44 This option enables support for this which adds slightly to the
48 bool "Enable LED support in SPL"
49 depends on SPL && SPL_DM
51 The LED subsystem adds a small amount of overhead to the image.
52 If this is acceptable and you have a need to use LEDs in SPL,
53 enable this option. You will need to enable device tree in SPL
57 bool "LED support for GPIO-connected LEDs"
58 depends on LED && DM_GPIO
60 Enable support for LEDs which are connected to GPIO lines. These
61 GPIOs may be on the SoC or some other device which provides GPIOs.
62 The GPIO driver must used driver model. LEDs are configured using
66 bool "LED support for GPIO-connected LEDs in SPL"
67 depends on SPL_LED && DM_GPIO
69 This option is an SPL-variant of the LED_GPIO option.
70 See the help of LED_GPIO for details.
73 bool "Enable status LED API"
75 Allows common u-boot commands to use a board's leds to
76 provide status for activities like booting and downloading files.
86 config LED_STATUS_BLINKING
94 # Hidden constants end
96 config LED_STATUS_GPIO
97 bool "GPIO status LED implementation"
99 The status LED can be connected to a GPIO pin. In such cases, the
100 gpio_led driver can be used as a status LED backend implementation.
102 config LED_STATUS_BOARD_SPECIFIC
103 bool "Specific board"
106 LED support is only for a specific board.
108 comment "LEDs parameters"
111 bool "Enable status LED 0"
115 config LED_STATUS_BIT
118 CONFIG_LED_STATUS_BIT is passed into the __led_* functions to identify
119 which LED is being acted on. As such, the chosen value must be unique
120 with respect to the other CONFIG_LED_STATUS_BIT's. Mapping the value
121 to a physical LED is the responsibility of the __led_* function.
123 config LED_STATUS_STATE
125 range LED_STATUS_OFF LED_STATUS_ON
126 default LED_STATUS_OFF
128 Should be set one of the following:
133 config LED_STATUS_FREQ
134 int "blink frequency"
138 The LED blink period calculated from LED_STATUS_FREQ:
139 LED_STATUS_PERIOD = CONFIG_SYS_HZ/LED_STATUS_FREQ
145 bool "Enable status LED 1"
149 config LED_STATUS_BIT1
152 CONFIG_LED_STATUS_BIT1 is passed into the __led_* functions to
153 identify which LED is being acted on. As such, the chosen value must
154 be unique with respect to the other CONFIG_LED_STATUS_BIT's. Mapping
155 the value to a physical LED is the responsibility of the __led_*
158 config LED_STATUS_STATE1
160 range LED_STATUS_OFF LED_STATUS_ON
161 default LED_STATUS_OFF
163 Should be set one of the following:
168 config LED_STATUS_FREQ1
169 int "blink frequency"
173 The LED blink period calculated from LED_STATUS_FREQ1:
174 LED_STATUS_PERIOD1 = CONFIG_SYS_HZ/LED_STATUS_FREQ1
180 bool "Enable status LED 2"
184 config LED_STATUS_BIT2
187 CONFIG_LED_STATUS_BIT2 is passed into the __led_* functions to
188 identify which LED is being acted on. As such, the chosen value must
189 be unique with respect to the other CONFIG_LED_STATUS_BIT's. Mapping
190 the value to a physical LED is the responsibility of the __led_*
193 config LED_STATUS_STATE2
195 range LED_STATUS_OFF LED_STATUS_ON
196 default LED_STATUS_OFF
198 Should be set one of the following:
203 config LED_STATUS_FREQ2
204 int "blink frequency"
208 The LED blink period calculated from LED_STATUS_FREQ2:
209 LED_STATUS_PERIOD2 = CONFIG_SYS_HZ/LED_STATUS_FREQ2
215 bool "Enable status LED 3"
219 config LED_STATUS_BIT3
222 CONFIG_LED_STATUS_BIT3 is passed into the __led_* functions to
223 identify which LED is being acted on. As such, the chosen value must
224 be unique with respect to the other CONFIG_LED_STATUS_BIT's. Mapping
225 the value to a physical LED is the responsibility of the __led_*
228 config LED_STATUS_STATE3
230 range LED_STATUS_OFF LED_STATUS_ON
231 default LED_STATUS_OFF
233 Should be set one of the following:
238 config LED_STATUS_FREQ3
239 int "blink frequency"
243 The LED blink period calculated from LED_STATUS_FREQ3:
244 LED_STATUS_PERIOD3 = CONFIG_SYS_HZ/LED_STATUS_FREQ3
250 bool "Enable status LED 4"
254 config LED_STATUS_BIT4
257 CONFIG_LED_STATUS_BIT4 is passed into the __led_* functions to
258 identify which LED is being acted on. As such, the chosen value must
259 be unique with respect to the other CONFIG_LED_STATUS_BIT's. Mapping
260 the value to a physical LED is the responsibility of the __led_*
263 config LED_STATUS_STATE4
265 range LED_STATUS_OFF LED_STATUS_ON
266 default LED_STATUS_OFF
268 Should be set one of the following:
273 config LED_STATUS_FREQ4
274 int "blink frequency"
278 The LED blink period calculated from LED_STATUS_FREQ4:
279 LED_STATUS_PERIOD4 = CONFIG_SYS_HZ/LED_STATUS_FREQ4
285 bool "Enable status LED 5"
289 config LED_STATUS_BIT5
292 CONFIG_LED_STATUS_BIT5 is passed into the __led_* functions to
293 identify which LED is being acted on. As such, the chosen value must
294 be unique with respect to the other CONFIG_LED_STATUS_BIT's. Mapping
295 the value to a physical LED is the responsibility of the __led_*
298 config LED_STATUS_STATE5
300 range LED_STATUS_OFF LED_STATUS_ON
301 default LED_STATUS_OFF
303 Should be set one of the following:
308 config LED_STATUS_FREQ5
309 int "blink frequency"
313 The LED blink period calculated from LED_STATUS_FREQ5:
314 LED_STATUS_PERIOD5 = CONFIG_SYS_HZ/LED_STATUS_FREQ5
319 config LED_STATUS_BOOT_ENABLE
320 bool "Enable BOOT LED"
322 Enable to turn an LED on when the board is booting.
324 if LED_STATUS_BOOT_ENABLE
326 config LED_STATUS_BOOT
327 int "LED to light when the board is booting"
329 Valid enabled LED device number.
331 endif # LED_STATUS_BOOT_ENABLE
333 config LED_STATUS_RED_ENABLE
334 bool "Enable red LED"
336 Enable red status LED.
338 if LED_STATUS_RED_ENABLE
340 config LED_STATUS_RED
341 int "Red LED identification"
343 Valid enabled LED device number.
345 endif # LED_STATUS_RED_ENABLE
347 config LED_STATUS_YELLOW_ENABLE
348 bool "Enable yellow LED"
350 Enable yellow status LED.
352 if LED_STATUS_YELLOW_ENABLE
354 config LED_STATUS_YELLOW
355 int "Yellow LED identification"
357 Valid enabled LED device number.
359 endif # LED_STATUS_YELLOW_ENABLE
361 config LED_STATUS_BLUE_ENABLE
362 bool "Enable blue LED"
364 Enable blue status LED.
366 if LED_STATUS_BLUE_ENABLE
368 config LED_STATUS_BLUE
369 int "Blue LED identification"
371 Valid enabled LED device number.
373 endif # LED_STATUS_BLUE_ENABLE
375 config LED_STATUS_GREEN_ENABLE
376 bool "Enable green LED"
378 Enable green status LED.
380 if LED_STATUS_GREEN_ENABLE
382 config LED_STATUS_GREEN
383 int "Green LED identification"
385 Valid enabled LED device number (0-5).
387 endif # LED_STATUS_GREEN_ENABLE
389 config LED_STATUS_CMD
390 bool "Enable status LED commands"