Commit 6a436c91 authored by Simon Glass's avatar Simon Glass

dm: led: Tidy up SPL options for the led and led-gpio

At present SPL does not have its own option. But these features can
increase SPL code size. Adjust the Kconfig and Makefile so that
separate a SPL option can be selected.
Signed-off-by: default avatarSimon Glass <>
parent c5acf4a2
......@@ -11,7 +11,7 @@ config LED
config SPL_LED
bool "Enable LED support in SPL"
depends on LED
depends on SPL && SPL_DM
The LED subsystem adds a small amount of overhead to the image.
If this is acceptable and you have a need to use LEDs in SPL,
......@@ -27,4 +27,11 @@ config LED_GPIO
The GPIO driver must used driver model. LEDs are configured using
the device tree.
bool "LED support for GPIO-connected LEDs in SPL"
depends on SPL_LED && DM_GPIO
This option is an SPL-variant of the LED_GPIO option.
See the help of LED_GPIO for details.
......@@ -5,5 +5,5 @@
# SPDX-License-Identifier: GPL-2.0+
obj-$(CONFIG_LED) += led-uclass.o
obj-$(CONFIG_LED_GPIO) += led_gpio.o
obj-y += led-uclass.o
obj-$(CONFIG_$(SPL_)LED_GPIO) += led_gpio.o
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment