Files
u-boot/board
Andre Przywara dc2427ab20 sunxi: spl: fix SPL_SUNXI_LED active low configuration
The newly introduced Allwinner SPL LED "framework" defined a
SPL_SUNXI_LED_STATUS_STATE Kconfig symbol, that was supposed to denote
the active-low vs. active-high polarity of the LED. However this is
a bool symbol, so it will simply vanish if not defined, and we cannot use
it directly inside a C statement.

Filter the symbol through the IS_ENABLED() macro, which will return 0 if
the symbol is not defined, which is the intended value here.

Since the STATUS_STATE name is a bit confusing, rename it to ACTIVE_HIGH
on the way, because that is its real meaning. Also the LED_STATUS_BIT
name for the GPIO number is similarly a remnant of the old status LED
code, so rename it to LED_STATUS_GPIO as well.

This fixes configuring LEDs with active-low polarity.

Fixes: 256557dd9a ("sunxi: remove usage of legacy LED API")
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Paul Kocialkowski <paulk@sys-base.io>
Closes: https://lore.kernel.org/u-boot/adfMQBPdntWy1KIq@shepard/
Acked-by: Quentin Schulz <quentin.schulz@cherry.de>
2026-04-30 23:31:02 +02:00
..
2026-04-27 11:26:40 -06:00
2025-11-29 14:42:24 -03:00
2025-05-09 15:05:14 -06:00
2026-04-27 11:26:40 -06:00
2026-04-21 20:49:40 -03:00
2025-06-02 17:26:16 -06:00
2024-07-22 10:51:47 -06:00
2026-03-18 13:07:36 -06:00
2025-05-09 15:05:14 -06:00
2026-04-27 11:26:40 -06:00
2026-04-27 11:26:40 -06:00
2025-04-11 12:16:44 -06:00
2026-04-27 11:26:40 -06:00
2025-04-11 12:16:44 -06:00