]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
airoha: an7583: build USB support into the kernel
authorVitaliy Sochnev <sochnev.v.74@gmail.com>
Fri, 7 Aug 2026 20:01:40 +0000 (21:01 +0100)
committerRobert Marko <robimarko@gmail.com>
Thu, 13 Aug 2026 08:44:41 +0000 (10:44 +0200)
The AN7583 has a single xHCI controller, the same block as on AN7581 and
the MediaTek SoCs. Build the host controller and its glue driver into the
kernel instead of shipping them as modules: the module route needs a
subtarget dependency in KernelPackage/usb3 plus kmod-usb3 in the
DEVICE_PACKAGES of every board that has USB ports, which is a roundabout
way of getting two drivers loaded.

Boards without USB ports carry the code as well, but they are not size
constrained.

Suggested-by: Robert Marko <robert.marko@sartura.hr>
Signed-off-by: Vitaliy Sochnev <sochnev.v.74@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/24609
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/airoha/an7583/config-6.18

index bebd4c8a3099848c19ed222f8797b46aeed7a104..494dac53d142e7d75b4502b6ed057fd0264ff9d2 100644 (file)
@@ -368,6 +368,12 @@ CONFIG_TREE_RCU=y
 CONFIG_TREE_SRCU=y
 CONFIG_UBIFS_FS=y
 # CONFIG_UNMAP_KERNEL_AT_EL0 is not set
+CONFIG_USB=y
+CONFIG_USB_COMMON=y
+CONFIG_USB_SUPPORT=y
+CONFIG_USB_XHCI_HCD=y
+CONFIG_USB_XHCI_MTK=y
+# CONFIG_USB_XHCI_PLATFORM is not set
 CONFIG_USER_STACKTRACE_SUPPORT=y
 CONFIG_VDSO_GETRANDOM=y
 CONFIG_VMAP_STACK=y