[PATCH 05/27] led: Make the LED config common
Simon Glass
sjg at chromium.org
Thu Sep 26 22:44:25 CEST 2024
Use an if...endif construct to avoid needing to make everything depend
on LED. Make SPL_LED depend on LED since that seems reasonable.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
drivers/led/Kconfig | 22 ++++++++++++----------
1 file changed, 12 insertions(+), 10 deletions(-)
diff --git a/drivers/led/Kconfig b/drivers/led/Kconfig
index 5c401f92080..32f0eade710 100644
--- a/drivers/led/Kconfig
+++ b/drivers/led/Kconfig
@@ -9,9 +9,11 @@ config LED
can provide access to board-specific LEDs. Use of the device tree
for configuration is encouraged.
+if LED
+
config LED_BCM6328
bool "LED Support for BCM6328"
- depends on LED && ARCH_BMIPS
+ depends on ARCH_BMIPS
help
This option enables support for LEDs connected to the BCM6328
LED HW controller accessed via MMIO registers.
@@ -22,7 +24,7 @@ config LED_BCM6328
config LED_BCM6358
bool "LED Support for BCM6358"
- depends on LED && ARCH_BMIPS
+ depends on ARCH_BMIPS
help
This option enables support for LEDs connected to the BCM6358
LED HW controller accessed via MMIO registers.
@@ -30,28 +32,28 @@ config LED_BCM6358
config LED_BCM6753
bool "LED Support for BCM6753"
- depends on LED && BCM6855
+ depends on BCM6855
help
This option enables support for LEDs connected to the BCM6753
HW has blinking and fading capabilities and up to 32 LEDs can be controlled.
config LED_BCM6858
bool "LED Support for BCM6858"
- depends on LED && (BCM6856 || BCM6858 || BCM63158)
+ depends on BCM6856 || BCM6858 || BCM63158
help
This option enables support for LEDs connected to the BCM6858
HW has blinking capabilities and up to 32 LEDs can be controlled.
config LED_CORTINA
bool "LED Support for Cortina Access CAxxxx SoCs"
- depends on LED && (CORTINA_PLATFORM)
+ depends on CORTINA_PLATFORM
help
This option enables support for LEDs connected to the Cortina
Access CAxxxx SOCs.
config LED_LP5562
bool "LED Support for LP5562"
- depends on LED && DM_I2C
+ depends on DM_I2C
help
This option enables support for LEDs connected to the TI LP5562
4 channel I2C LED controller. Driver fully supports blink on the
@@ -59,14 +61,13 @@ config LED_LP5562
config LED_PWM
bool "LED PWM"
- depends on LED && DM_PWM
+ depends on DM_PWM
help
Enable support for LEDs connected to PWM.
Linux compatible ofdata.
config LED_BLINK
bool "Support hardware LED blinking"
- depends on LED
help
Some drivers can support automatic blinking of LEDs with a given
period, without needing timers or extra code to handle the timing.
@@ -75,7 +76,6 @@ config LED_BLINK
config LED_SW_BLINK
bool "Support software LED blinking"
- depends on LED
select CYCLIC
help
Turns on led blinking implemented in the software, useful when
@@ -98,7 +98,7 @@ config SPL_LED
config LED_GPIO
bool "LED support for GPIO-connected LEDs"
- depends on LED && DM_GPIO
+ depends on DM_GPIO
help
Enable support for LEDs which are connected to GPIO lines. These
GPIOs may be on the SoC or some other device which provides GPIOs.
@@ -112,6 +112,8 @@ config SPL_LED_GPIO
This option is an SPL-variant of the LED_GPIO option.
See the help of LED_GPIO for details.
+endif # LED
+
config LED_STATUS
bool "Enable status LED API"
help
--
2.43.0
More information about the U-Boot
mailing list