[openwrt/openwrt] mt76: Enable NPU support for Airoha AN7581 SoC

LEDE Commits lede-commits at lists.infradead.org
Wed Nov 19 02:31:07 PST 2025


ansuel pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/79d418eed8d86c528714df9fcd64155a8fb5ba49

commit 79d418eed8d86c528714df9fcd64155a8fb5ba49
Author: Lorenzo Bianconi <lorenzo at kernel.org>
AuthorDate: Sun Nov 16 15:17:32 2025 +0100

    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 at kernel.org>
    [ improve commit title/description ]
    Link: https://github.com/openwrt/openwrt/pull/20826
    Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
---
 package/kernel/mt76/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/package/kernel/mt76/Makefile b/package/kernel/mt76/Makefile
index b9c002dca7..f525877fd7 100644
--- a/package/kernel/mt76/Makefile
+++ b/package/kernel/mt76/Makefile
@@ -495,6 +495,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




More information about the lede-commits mailing list