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
21 bool "LED support for GPIO-connected LEDs"
22 depends on LED && DM_GPIO
24 Enable support for LEDs which are connected to GPIO lines. These
25 GPIOs may be on the SoC or some other device which provides GPIOs.
26 The GPIO driver must used driver model. LEDs are configured using
30 bool "LED support for GPIO-connected LEDs in SPL"
31 depends on SPL_LED && DM_GPIO
33 This option is an SPL-variant of the LED_GPIO option.
34 See the help of LED_GPIO for details.
37 bool "Enable status LED API"
39 Allows common u-boot commands to use a board's leds to
40 provide status for activities like booting and downloading files.
50 config LED_STATUS_BLINKING
58 # Hidden constants end
60 config LED_STATUS_GPIO
61 bool "GPIO status LED implementation"
63 The status LED can be connected to a GPIO pin. In such cases, the
64 gpio_led driver can be used as a status LED backend implementation.
66 config LED_STATUS_BOARD_SPECIFIC
70 LED support is only for a specific board.
72 comment "LEDs parameters"
75 bool "Enable status LED 0"
82 CONFIG_LED_STATUS_BIT is passed into the __led_* functions to identify
83 which LED is being acted on. As such, the chosen value must be unique
84 with respect to the other CONFIG_LED_STATUS_BIT's. Mapping the value
85 to a physical LED is the responsibility of the __led_* function.
87 config LED_STATUS_STATE
89 range LED_STATUS_OFF LED_STATUS_ON
90 default LED_STATUS_OFF
92 Should be set one of the following:
97 config LED_STATUS_FREQ
102 The LED blink period calculated from LED_STATUS_FREQ:
103 LED_STATUS_PERIOD = CONFIG_SYS_HZ/LED_STATUS_FREQ
109 bool "Enable status LED 1"
113 config LED_STATUS_BIT1
116 CONFIG_LED_STATUS_BIT1 is passed into the __led_* functions to
117 identify which LED is being acted on. As such, the chosen value must
118 be unique with respect to the other CONFIG_LED_STATUS_BIT's. Mapping
119 the value to a physical LED is the responsibility of the __led_*
122 config LED_STATUS_STATE1
124 range LED_STATUS_OFF LED_STATUS_ON
125 default LED_STATUS_OFF
127 Should be set one of the following:
132 config LED_STATUS_FREQ1
133 int "blink frequency"
137 The LED blink period calculated from LED_STATUS_FREQ1:
138 LED_STATUS_PERIOD1 = CONFIG_SYS_HZ/LED_STATUS_FREQ1
144 bool "Enable status LED 2"
148 config LED_STATUS_BIT2
151 CONFIG_LED_STATUS_BIT2 is passed into the __led_* functions to
152 identify which LED is being acted on. As such, the chosen value must
153 be unique with respect to the other CONFIG_LED_STATUS_BIT's. Mapping
154 the value to a physical LED is the responsibility of the __led_*
157 config LED_STATUS_STATE2
159 range LED_STATUS_OFF LED_STATUS_ON
160 default LED_STATUS_OFF
162 Should be set one of the following:
167 config LED_STATUS_FREQ2
168 int "blink frequency"
172 The LED blink period calculated from LED_STATUS_FREQ2:
173 LED_STATUS_PERIOD2 = CONFIG_SYS_HZ/LED_STATUS_FREQ2
179 bool "Enable status LED 3"
183 config LED_STATUS_BIT3
186 CONFIG_LED_STATUS_BIT3 is passed into the __led_* functions to
187 identify which LED is being acted on. As such, the chosen value must
188 be unique with respect to the other CONFIG_LED_STATUS_BIT's. Mapping
189 the value to a physical LED is the responsibility of the __led_*
192 config LED_STATUS_STATE3
194 range LED_STATUS_OFF LED_STATUS_ON
195 default LED_STATUS_OFF
197 Should be set one of the following:
202 config LED_STATUS_FREQ3
203 int "blink frequency"
207 The LED blink period calculated from LED_STATUS_FREQ3:
208 LED_STATUS_PERIOD3 = CONFIG_SYS_HZ/LED_STATUS_FREQ3
214 bool "Enable status LED 4"
218 config LED_STATUS_BIT4
221 CONFIG_LED_STATUS_BIT4 is passed into the __led_* functions to
222 identify which LED is being acted on. As such, the chosen value must
223 be unique with respect to the other CONFIG_LED_STATUS_BIT's. Mapping
224 the value to a physical LED is the responsibility of the __led_*
227 config LED_STATUS_STATE4
229 range LED_STATUS_OFF LED_STATUS_ON
230 default LED_STATUS_OFF
232 Should be set one of the following:
237 config LED_STATUS_FREQ4
238 int "blink frequency"
242 The LED blink period calculated from LED_STATUS_FREQ4:
243 LED_STATUS_PERIOD4 = CONFIG_SYS_HZ/LED_STATUS_FREQ4
249 bool "Enable status LED 5"
253 config LED_STATUS_BIT5
256 CONFIG_LED_STATUS_BIT5 is passed into the __led_* functions to
257 identify which LED is being acted on. As such, the chosen value must
258 be unique with respect to the other CONFIG_LED_STATUS_BIT's. Mapping
259 the value to a physical LED is the responsibility of the __led_*
262 config LED_STATUS_STATE5
264 range LED_STATUS_OFF LED_STATUS_ON
265 default LED_STATUS_OFF
267 Should be set one of the following:
272 config LED_STATUS_FREQ5
273 int "blink frequency"
277 The LED blink period calculated from LED_STATUS_FREQ5:
278 LED_STATUS_PERIOD5 = CONFIG_SYS_HZ/LED_STATUS_FREQ5
283 config LED_STATUS_BOOT_ENABLE
284 bool "Enable BOOT LED"
286 Enable to turn an LED on when the board is booting.
288 if LED_STATUS_BOOT_ENABLE
290 config LED_STATUS_BOOT
291 int "LED to light when the board is booting"
293 Valid enabled LED device number.
295 endif # LED_STATUS_BOOT_ENABLE
297 config LED_STATUS_RED_ENABLE
298 bool "Enable red LED"
300 Enable red status LED.
302 if LED_STATUS_RED_ENABLE
304 config LED_STATUS_RED
305 int "Red LED identification"
307 Valid enabled LED device number.
309 endif # LED_STATUS_RED_ENABLE
311 config LED_STATUS_YELLOW_ENABLE
312 bool "Enable yellow LED"
314 Enable yellow status LED.
316 if LED_STATUS_YELLOW_ENABLE
318 config LED_STATUS_YELLOW
319 int "Yellow LED identification"
321 Valid enabled LED device number.
323 endif # LED_STATUS_YELLOW_ENABLE
325 config LED_STATUS_BLUE_ENABLE
326 bool "Enable blue LED"
328 Enable blue status LED.
330 if LED_STATUS_BLUE_ENABLE
332 config LED_STATUS_BLUE
333 int "Blue LED identification"
335 Valid enabled LED device number.
337 endif # LED_STATUS_BLUE_ENABLE
339 config LED_STATUS_GREEN_ENABLE
340 bool "Enable green LED"
342 Enable green status LED.
344 if LED_STATUS_GREEN_ENABLE
346 config LED_STATUS_GREEN
347 int "Green LED identification"
349 Valid enabled LED device number (0-5).
351 endif # LED_STATUS_GREEN_ENABLE
353 config LED_STATUS_CMD
354 bool "Enable status LED commands"