Masahiro Yamada | cc85b7b | 2015-07-26 02:46:26 +0900 | [diff] [blame] | 1 | menu "LED Support" |
| 2 | |
Simon Glass | cce3aed | 2015-06-23 15:38:45 -0600 | [diff] [blame] | 3 | config LED |
| 4 | bool "Enable LED support" |
| 5 | depends on DM |
| 6 | help |
| 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. |
| 11 | |
Masahiro Yamada | 645dbd6 | 2015-08-12 07:31:50 +0900 | [diff] [blame] | 12 | config SPL_LED |
Simon Glass | cce3aed | 2015-06-23 15:38:45 -0600 | [diff] [blame] | 13 | bool "Enable LED support in SPL" |
Simon Glass | 965f4da | 2015-08-30 16:55:14 -0600 | [diff] [blame^] | 14 | depends on SPL && SPL_DM |
Simon Glass | cce3aed | 2015-06-23 15:38:45 -0600 | [diff] [blame] | 15 | help |
| 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 |
| 19 | for this to work. |
Simon Glass | 5a9390b | 2015-06-23 15:38:46 -0600 | [diff] [blame] | 20 | |
| 21 | config LED_GPIO |
| 22 | bool "LED support for GPIO-connected LEDs" |
| 23 | depends on LED && DM_GPIO |
| 24 | help |
| 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 |
| 28 | the device tree. |
Masahiro Yamada | cc85b7b | 2015-07-26 02:46:26 +0900 | [diff] [blame] | 29 | |
Simon Glass | 965f4da | 2015-08-30 16:55:14 -0600 | [diff] [blame^] | 30 | config SPL_LED_GPIO |
| 31 | bool "LED support for GPIO-connected LEDs in SPL" |
| 32 | depends on SPL_LED && DM_GPIO |
| 33 | help |
| 34 | This option is an SPL-variant of the LED_GPIO option. |
| 35 | See the help of LED_GPIO for details. |
| 36 | |
Masahiro Yamada | cc85b7b | 2015-07-26 02:46:26 +0900 | [diff] [blame] | 37 | endmenu |