summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLorenzo Bianconi2025-11-16 14:17:32 +0000
committerChristian Marangi2025-11-19 12:54:41 +0000
commit6c5c8598abf1736506bcc7b6aef006d7891d629d (patch)
tree444136c3f48a77404cd4336c150094491700f049
parent59b4c9e1142b941ed400c8df3f2a92298c5619c9 (diff)
downloadopenwrt-6c5c8598abf1736506bcc7b6aef006d7891d629d.tar.gz
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: https://github.com/openwrt/openwrt/pull/20826 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> (cherry picked from commit 79d418eed8d86c528714df9fcd64155a8fb5ba49)
-rw-r--r--package/kernel/mt76/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/kernel/mt76/Makefile b/package/kernel/mt76/Makefile
index baced1baf1..3c7494a964 100644
--- a/package/kernel/mt76/Makefile
+++ b/package/kernel/mt76/Makefile
@@ -494,6 +494,12 @@ ifdef CONFIG_PACKAGE_kmod-mt7921e
endif
ifdef CONFIG_PACKAGE_kmod-mt7996e
PKG_MAKE_FLAGS += CONFIG_MT7996E=m
+ ifdef CONFIG_TARGET_airoha_an7581
+ PKG_MAKE_FLAGS += CONFIG_MT76_NPU=y
+ PKG_MAKE_FLAGS += CONFIG_MT7996_NPU=y
+ NOSTDINC_FLAGS += -DCONFIG_MT76_NPU
+ NOSTDINC_FLAGS += -DCONFIG_MT7996_NPU
+ endif
endif
ifdef CONFIG_PACKAGE_kmod-mt7925-common
PKG_MAKE_FLAGS += CONFIG_MT7925_COMMON=m