[openwrt/openwrt] airoha: an7581: enable USB support

LEDE Commits lede-commits at lists.infradead.org
Wed Jan 28 14:50:49 PST 2026


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/f8a6798bf38c3d3e6fe6af9367ea5628df46429a

commit f8a6798bf38c3d3e6fe6af9367ea5628df46429a
Author: Ziyang Huang <hzyitc at outlook.com>
AuthorDate: Thu Jan 8 22:38:46 2026 +0800

    airoha: an7581: enable USB support
    
    The an7581.dtsi contains the mediatek,mtk-xhci device.
    
    Signed-off-by: Ziyang Huang <hzyitc at outlook.com>
    Link: https://github.com/openwrt/openwrt/pull/21460
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 package/kernel/linux/modules/usb.mk    | 1 +
 target/linux/airoha/an7581/config-6.12 | 1 +
 2 files changed, 2 insertions(+)

diff --git a/package/kernel/linux/modules/usb.mk b/package/kernel/linux/modules/usb.mk
index 7d99933725..b9d3dba13a 100644
--- a/package/kernel/linux/modules/usb.mk
+++ b/package/kernel/linux/modules/usb.mk
@@ -1860,6 +1860,7 @@ define KernelPackage/usb3
   TITLE:=Support for USB3 controllers
   DEPENDS:= \
 	+kmod-usb-xhci-hcd \
+	+TARGET_airoha_an7581:kmod-usb-xhci-mtk \
 	+TARGET_bcm53xx:kmod-usb-bcma \
 	+TARGET_bcm53xx:kmod-phy-bcm-ns-usb3 \
 	+TARGET_ramips_mt7621:kmod-usb-xhci-mtk \
diff --git a/target/linux/airoha/an7581/config-6.12 b/target/linux/airoha/an7581/config-6.12
index dee18e7d6c..5f28da5b02 100644
--- a/target/linux/airoha/an7581/config-6.12
+++ b/target/linux/airoha/an7581/config-6.12
@@ -395,6 +395,7 @@ CONFIG_TREE_RCU=y
 CONFIG_TREE_SRCU=y
 CONFIG_UBIFS_FS=y
 # CONFIG_UNMAP_KERNEL_AT_EL0 is not set
+CONFIG_USB_SUPPORT=y
 CONFIG_USER_STACKTRACE_SUPPORT=y
 CONFIG_VDSO_GETRANDOM=y
 CONFIG_VMAP_STACK=y




More information about the lede-commits mailing list