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 && (BCM6856 || BCM6858 || 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 depends on LED && DM_PWM
56 Enable support for LEDs connected to PWM.
57 Linux compatible ofdata.
60 bool "Support LED blinking"
63 Some drivers can support automatic blinking of LEDs with a given
64 period, without needing timers or extra code to handle the timing.
65 This option enables support for this which adds slightly to the
69 bool "Enable LED support in SPL"
72 The LED subsystem adds a small amount of overhead to the image.
73 If this is acceptable and you have a need to use LEDs in SPL,
74 enable this option. You will need to enable device tree in SPL
78 bool "LED support for GPIO-connected LEDs"
79 depends on LED && DM_GPIO
81 Enable support for LEDs which are connected to GPIO lines. These
82 GPIOs may be on the SoC or some other device which provides GPIOs.
83 The GPIO driver must used driver model. LEDs are configured using
87 bool "LED support for GPIO-connected LEDs in SPL"
88 depends on SPL_LED && SPL_DM_GPIO
90 This option is an SPL-variant of the LED_GPIO option.
91 See the help of LED_GPIO for details.
94 bool "Enable status LED API"
96 Allows common u-boot commands to use a board's leds to
97 provide status for activities like booting and downloading files.
103 config LED_STATUS_OFF
107 config LED_STATUS_BLINKING
115 # Hidden constants end
117 config LED_STATUS_GPIO
118 bool "GPIO status LED implementation"
120 The status LED can be connected to a GPIO pin. In such cases, the
121 gpio_led driver can be used as a status LED backend implementation.
123 config LED_STATUS_BOARD_SPECIFIC
124 bool "Specific board"
127 LED support is only for a specific board.
129 comment "LEDs parameters"
132 bool "Enable status LED 0"
136 config LED_STATUS_BIT
139 CONFIG_LED_STATUS_BIT is passed into the __led_* functions to identify
140 which LED is being acted on. As such, the chosen value must be unique
141 with respect to the other CONFIG_LED_STATUS_BIT's. Mapping the value
142 to a physical LED is the responsibility of the __led_* function.
144 config LED_STATUS_STATE
146 range LED_STATUS_OFF LED_STATUS_ON
147 default LED_STATUS_OFF
149 Should be set one of the following:
154 config LED_STATUS_FREQ
155 int "blink frequency"
159 The LED blink period calculated from LED_STATUS_FREQ:
160 LED_STATUS_PERIOD = CONFIG_SYS_HZ/LED_STATUS_FREQ
166 bool "Enable status LED 1"
170 config LED_STATUS_BIT1
173 CONFIG_LED_STATUS_BIT1 is passed into the __led_* functions to
174 identify which LED is being acted on. As such, the chosen value must
175 be unique with respect to the other CONFIG_LED_STATUS_BIT's. Mapping
176 the value to a physical LED is the responsibility of the __led_*
179 config LED_STATUS_STATE1
181 range LED_STATUS_OFF LED_STATUS_ON
182 default LED_STATUS_OFF
184 Should be set one of the following:
189 config LED_STATUS_FREQ1
190 int "blink frequency"
194 The LED blink period calculated from LED_STATUS_FREQ1:
195 LED_STATUS_PERIOD1 = CONFIG_SYS_HZ/LED_STATUS_FREQ1
201 bool "Enable status LED 2"
205 config LED_STATUS_BIT2
208 CONFIG_LED_STATUS_BIT2 is passed into the __led_* functions to
209 identify which LED is being acted on. As such, the chosen value must
210 be unique with respect to the other CONFIG_LED_STATUS_BIT's. Mapping
211 the value to a physical LED is the responsibility of the __led_*
214 config LED_STATUS_STATE2
216 range LED_STATUS_OFF LED_STATUS_ON
217 default LED_STATUS_OFF
219 Should be set one of the following:
224 config LED_STATUS_FREQ2
225 int "blink frequency"
229 The LED blink period calculated from LED_STATUS_FREQ2:
230 LED_STATUS_PERIOD2 = CONFIG_SYS_HZ/LED_STATUS_FREQ2
236 bool "Enable status LED 3"
240 config LED_STATUS_BIT3
243 CONFIG_LED_STATUS_BIT3 is passed into the __led_* functions to
244 identify which LED is being acted on. As such, the chosen value must
245 be unique with respect to the other CONFIG_LED_STATUS_BIT's. Mapping
246 the value to a physical LED is the responsibility of the __led_*
249 config LED_STATUS_STATE3
251 range LED_STATUS_OFF LED_STATUS_ON
252 default LED_STATUS_OFF
254 Should be set one of the following:
259 config LED_STATUS_FREQ3
260 int "blink frequency"
264 The LED blink period calculated from LED_STATUS_FREQ3:
265 LED_STATUS_PERIOD3 = CONFIG_SYS_HZ/LED_STATUS_FREQ3
271 bool "Enable status LED 4"
275 config LED_STATUS_BIT4
278 CONFIG_LED_STATUS_BIT4 is passed into the __led_* functions to
279 identify which LED is being acted on. As such, the chosen value must
280 be unique with respect to the other CONFIG_LED_STATUS_BIT's. Mapping
281 the value to a physical LED is the responsibility of the __led_*
284 config LED_STATUS_STATE4
286 range LED_STATUS_OFF LED_STATUS_ON
287 default LED_STATUS_OFF
289 Should be set one of the following:
294 config LED_STATUS_FREQ4
295 int "blink frequency"
299 The LED blink period calculated from LED_STATUS_FREQ4:
300 LED_STATUS_PERIOD4 = CONFIG_SYS_HZ/LED_STATUS_FREQ4
306 bool "Enable status LED 5"
310 config LED_STATUS_BIT5
313 CONFIG_LED_STATUS_BIT5 is passed into the __led_* functions to
314 identify which LED is being acted on. As such, the chosen value must
315 be unique with respect to the other CONFIG_LED_STATUS_BIT's. Mapping
316 the value to a physical LED is the responsibility of the __led_*
319 config LED_STATUS_STATE5
321 range LED_STATUS_OFF LED_STATUS_ON
322 default LED_STATUS_OFF
324 Should be set one of the following:
329 config LED_STATUS_FREQ5
330 int "blink frequency"
334 The LED blink period calculated from LED_STATUS_FREQ5:
335 LED_STATUS_PERIOD5 = CONFIG_SYS_HZ/LED_STATUS_FREQ5
340 config LED_STATUS_BOOT_ENABLE
341 bool "Enable BOOT LED"
343 Enable to turn an LED on when the board is booting.
345 if LED_STATUS_BOOT_ENABLE
347 config LED_STATUS_BOOT
348 int "LED to light when the board is booting"
350 Valid enabled LED device number.
352 endif # LED_STATUS_BOOT_ENABLE
354 config LED_STATUS_RED_ENABLE
355 bool "Enable red LED"
357 Enable red status LED.
359 if LED_STATUS_RED_ENABLE
361 config LED_STATUS_RED
362 int "Red LED identification"
364 Valid enabled LED device number.
366 endif # LED_STATUS_RED_ENABLE
368 config LED_STATUS_YELLOW_ENABLE
369 bool "Enable yellow LED"
371 Enable yellow status LED.
373 if LED_STATUS_YELLOW_ENABLE
375 config LED_STATUS_YELLOW
376 int "Yellow LED identification"
378 Valid enabled LED device number.
380 endif # LED_STATUS_YELLOW_ENABLE
382 config LED_STATUS_BLUE_ENABLE
383 bool "Enable blue LED"
385 Enable blue status LED.
387 if LED_STATUS_BLUE_ENABLE
389 config LED_STATUS_BLUE
390 int "Blue LED identification"
392 Valid enabled LED device number.
394 endif # LED_STATUS_BLUE_ENABLE
396 config LED_STATUS_GREEN_ENABLE
397 bool "Enable green LED"
399 Enable green status LED.
401 if LED_STATUS_GREEN_ENABLE
403 config LED_STATUS_GREEN
404 int "Green LED identification"
406 Valid enabled LED device number (0-5).
408 endif # LED_STATUS_GREEN_ENABLE
410 config LED_STATUS_CMD
411 bool "Enable status LED commands"