Skip to content

Commit 79d418e

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 <[email protected]> [ improve commit title/description ] Link: openwrt/openwrt#20826 Signed-off-by: Christian Marangi <[email protected]>
1 parent 00a166d commit 79d418e

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
@@ -495,6 +495,12 @@ ifdef CONFIG_PACKAGE_kmod-mt7921e
495495
endif
496496
ifdef CONFIG_PACKAGE_kmod-mt7996e
497497
PKG_MAKE_FLAGS += CONFIG_MT7996E=m
498+
ifdef CONFIG_TARGET_airoha_an7581
499+
PKG_MAKE_FLAGS += CONFIG_MT76_NPU=y
500+
PKG_MAKE_FLAGS += CONFIG_MT7996_NPU=y
501+
NOSTDINC_FLAGS += -DCONFIG_MT76_NPU
502+
NOSTDINC_FLAGS += -DCONFIG_MT7996_NPU
503+
endif
498504
endif
499505
ifdef CONFIG_PACKAGE_kmod-mt7925-common
500506
PKG_MAKE_FLAGS += CONFIG_MT7925_COMMON=m

0 commit comments

Comments
 (0)