Skip to content

Commit 6c5c859

Browse files
LorenzoBianconiAnsuel
authored andcommitted
mt76: Enable NPU support for Airoha AN7581 SoC
Airoha AN7581 SoC supports a Network Processor (NPU) to offload WiFi traffic. Add the required bits to enable the support of it in the MT76 driver. This will be enabled by default if we are compiling for the Airoha AN7581 SoC. Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> [ improve commit title/description ] Link: openwrt/openwrt#20826 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> (cherry picked from commit 79d418e)
1 parent 59b4c9e commit 6c5c859

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

package/kernel/mt76/Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,12 @@ ifdef CONFIG_PACKAGE_kmod-mt7921e
494494
endif
495495
ifdef CONFIG_PACKAGE_kmod-mt7996e
496496
PKG_MAKE_FLAGS += CONFIG_MT7996E=m
497+
ifdef CONFIG_TARGET_airoha_an7581
498+
PKG_MAKE_FLAGS += CONFIG_MT76_NPU=y
499+
PKG_MAKE_FLAGS += CONFIG_MT7996_NPU=y
500+
NOSTDINC_FLAGS += -DCONFIG_MT76_NPU
501+
NOSTDINC_FLAGS += -DCONFIG_MT7996_NPU
502+
endif
497503
endif
498504
ifdef CONFIG_PACKAGE_kmod-mt7925-common
499505
PKG_MAKE_FLAGS += CONFIG_MT7925_COMMON=m

0 commit comments

Comments
 (0)