ramips: mt7621: (APP-3302, PR #286) Move PWM LED from kmod to kernel builtin

The status LED is now driven by the PWM driver. When the driver is built as
a kmod module, it is loaded after the preinit state is set. This means
the diag.sh script cannot set the color and flashing pattern. Making the
driver built in means the LED can be controlled at preinit stage.

Approved-by: James Haggerty
Approved-by: Sophronia Koilpillai
This commit is contained in:
Evan Benn 2024-08-21 04:46:44 +00:00 committed by Arien Judge
parent beab97c836
commit 9c0c52cd70
2 changed files with 6 additions and 1 deletions

View file

@ -1684,7 +1684,7 @@ define Device/morse_artini
# If $1=squashfs remove, likewise with $2=sysupgrade.bin, for simpler names.
# So a 'normal' Artini image will look like openwrt-morse-2.7.0-artini.bin
DEVICE_IMG_NAME = $(VERSION_DIST_SANITIZED)-$$(IMG_PREFIX_VERCODE)$$(call sanitize,$$(DEVICE_MODEL))$$(if $$(filter-out squashfs,$$(1)),-$$(1),'')$$(if $$(filter-out sysupgrade.bin, $$(2)),-$$(2),.bin)
DEVICE_PACKAGES := kmod-mmc-mt7620 kmod-mt7603 kmod-pwm-gpio kmod-leds-pwm-multicolor \
DEVICE_PACKAGES := kmod-mmc-mt7620 kmod-mt7603 \
kmod-morse netifd-morse
endef
TARGET_DEVICES += morse_artini

View file

@ -104,6 +104,7 @@ CONFIG_IRQ_DOMAIN_HIERARCHY=y
CONFIG_IRQ_FORCED_THREADING=y
CONFIG_IRQ_MIPS_CPU=y
CONFIG_IRQ_WORK=y
CONFIG_LEDS_PWM_MULTICOLOR=y
CONFIG_LED_TRIGGER_PHY=y
CONFIG_LIBFDT=y
CONFIG_LOCK_DEBUGGING_SUPPORT=y
@ -221,6 +222,10 @@ CONFIG_POWER_RESET=y
CONFIG_POWER_RESET_GPIO=y
CONFIG_POWER_SUPPLY=y
CONFIG_PTP_1588_CLOCK_OPTIONAL=y
CONFIG_PWM=y
CONFIG_PWM_GPIO=y
# CONFIG_PWM_MEDIATEK_RAMIPS is not set
CONFIG_PWM_SYSFS=y
CONFIG_QUEUED_RWLOCKS=y
CONFIG_QUEUED_SPINLOCKS=y
CONFIG_RALINK=y