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 "Enable LED support in SPL"
14 depends on SPL && SPL_DM
16 The LED subsystem adds a small amount of overhead to the image.
17 If this is acceptable and you have a need to use LEDs in SPL,
18 enable this option. You will need to enable device tree in SPL
22 bool "LED support for GPIO-connected LEDs"
23 depends on LED && DM_GPIO
25 Enable support for LEDs which are connected to GPIO lines. These
26 GPIOs may be on the SoC or some other device which provides GPIOs.
27 The GPIO driver must used driver model. LEDs are configured using
31 bool "LED support for GPIO-connected LEDs in SPL"
32 depends on SPL_LED && DM_GPIO
34 This option is an SPL-variant of the LED_GPIO option.
35 See the help of LED_GPIO for details.
38 bool "Enable status LED API"
40 Allows common u-boot commands to use a board's leds to
41 provide status for activities like booting and downloading files.
51 config LED_STATUS_BLINKING
59 # Hidden constants end
61 config LED_STATUS_GPIO
62 bool "GPIO status LED implementation"
64 The status LED can be connected to a GPIO pin. In such cases, the
65 gpio_led driver can be used as a status LED backend implementation.
67 config LED_STATUS_BOARD_SPECIFIC
71 LED support is only for a specific board.
73 comment "LEDs parameters"
76 bool "Enable status LED 0"
83 CONFIG_LED_STATUS_BIT is passed into the __led_* functions to identify
84 which LED is being acted on. As such, the chosen value must be unique
85 with respect to the other CONFIG_LED_STATUS_BIT's. Mapping the value
86 to a physical LED is the responsibility of the __led_* function.
88 config LED_STATUS_STATE
90 range LED_STATUS_OFF LED_STATUS_ON
91 default LED_STATUS_OFF
93 Should be set one of the following:
98 config LED_STATUS_FREQ
103 The LED blink period calculated from LED_STATUS_FREQ:
104 LED_STATUS_PERIOD = CONFIG_SYS_HZ/LED_STATUS_FREQ
110 bool "Enable status LED 1"
114 config LED_STATUS_BIT1
117 CONFIG_LED_STATUS_BIT1 is passed into the __led_* functions to
118 identify which LED is being acted on. As such, the chosen value must
119 be unique with respect to the other CONFIG_LED_STATUS_BIT's. Mapping
120 the value to a physical LED is the responsibility of the __led_*
123 config LED_STATUS_STATE1
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_FREQ1
134 int "blink frequency"
138 The LED blink period calculated from LED_STATUS_FREQ1:
139 LED_STATUS_PERIOD1 = CONFIG_SYS_HZ/LED_STATUS_FREQ1
145 bool "Enable status LED 2"
149 config LED_STATUS_BIT2
152 CONFIG_LED_STATUS_BIT2 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_STATE2
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_FREQ2
169 int "blink frequency"
173 The LED blink period calculated from LED_STATUS_FREQ2:
174 LED_STATUS_PERIOD2 = CONFIG_SYS_HZ/LED_STATUS_FREQ2
180 bool "Enable status LED 3"
184 config LED_STATUS_BIT3
187 CONFIG_LED_STATUS_BIT3 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_STATE3
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_FREQ3
204 int "blink frequency"
208 The LED blink period calculated from LED_STATUS_FREQ3:
209 LED_STATUS_PERIOD3 = CONFIG_SYS_HZ/LED_STATUS_FREQ3
215 bool "Enable status LED 4"
219 config LED_STATUS_BIT4
222 CONFIG_LED_STATUS_BIT4 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_STATE4
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_FREQ4
239 int "blink frequency"
243 The LED blink period calculated from LED_STATUS_FREQ4:
244 LED_STATUS_PERIOD4 = CONFIG_SYS_HZ/LED_STATUS_FREQ4
250 bool "Enable status LED 5"
254 config LED_STATUS_BIT5
257 CONFIG_LED_STATUS_BIT5 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_STATE5
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_FREQ5
274 int "blink frequency"
278 The LED blink period calculated from LED_STATUS_FREQ5:
279 LED_STATUS_PERIOD5 = CONFIG_SYS_HZ/LED_STATUS_FREQ5
284 config LED_STATUS_BOOT_ENABLE
285 bool "Enable BOOT LED"
287 Enable to turn an LED on when the board is booting.
289 if LED_STATUS_BOOT_ENABLE
291 config LED_STATUS_BOOT
292 int "LED to light when the board is booting"
294 Valid enabled LED device number.
296 endif # LED_STATUS_BOOT_ENABLE
298 config LED_STATUS_RED_ENABLE
299 bool "Enable red LED"
301 Enable red status LED.
303 if LED_STATUS_RED_ENABLE
305 config LED_STATUS_RED
306 int "Red LED identification"
308 Valid enabled LED device number.
310 endif # LED_STATUS_RED_ENABLE
312 config LED_STATUS_YELLOW_ENABLE
313 bool "Enable yellow LED"
315 Enable yellow status LED.
317 if LED_STATUS_YELLOW_ENABLE
319 config LED_STATUS_YELLOW
320 int "Yellow LED identification"
322 Valid enabled LED device number.
324 endif # LED_STATUS_YELLOW_ENABLE
326 config LED_STATUS_BLUE_ENABLE
327 bool "Enable blue LED"
329 Enable blue status LED.
331 if LED_STATUS_BLUE_ENABLE
333 config LED_STATUS_BLUE
334 int "Blue LED identification"
336 Valid enabled LED device number.
338 endif # LED_STATUS_BLUE_ENABLE
340 config LED_STATUS_GREEN_ENABLE
341 bool "Enable green LED"
343 Enable green status LED.
345 if LED_STATUS_GREEN_ENABLE
347 config LED_STATUS_GREEN
348 int "Green LED identification"
350 Valid enabled LED device number (0-5).
352 endif # LED_STATUS_GREEN_ENABLE
354 config LED_STATUS_CMD
355 bool "Enable status LED commands"