Skip to content

Commit 0140cda

Browse files
committed
package: add support for LEDS_SYSCON per board
Currently there is no package enablement for LEDS_SYSCON, which means that for boards that map certain LEDs through syscon registers (like the Realtek Hasivo switch series, mapping LEDs through STC8 MFD driver), the LEDS_SYSCON would otherwise need to be enabled at a full target level. This package will allow individual boards to bring in syscon LED support. Signed-off-by: Bevan Weiss <bevan.weiss@gmail.com>
1 parent 75f2f96 commit 0140cda

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

  • package/kernel/linux/modules

package/kernel/linux/modules/leds.mk

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,19 @@ endef
2222

2323
$(eval $(call KernelPackage,leds-gpio))
2424

25+
define KernelPackage/leds-syscon
26+
SUBMENU:=$(LEDS_MENU)
27+
TITLE:=SYSCON LED support
28+
KCONFIG:=CONFIG_LEDS_SYSCON=y \
29+
CONFIG_MFD_SYSCON=y
30+
endef
31+
32+
define KernelPackage/leds-syscon/description
33+
Kernel support for LEDs via SYSCON registers
34+
endef
35+
36+
$(eval $(call KernelPackage,leds-syscon))
37+
2538
LED_TRIGGER_DIR=$(LINUX_DIR)/drivers/leds/trigger
2639

2740
define KernelPackage/leds-group-multicolor

0 commit comments

Comments
 (0)