[PATCH 03/14] kernel: modules: package Tegra xHCI and OTG modules
Tomasz Maciej Nowak
tmn505 at terefe.re
Tue Oct 29 08:46:56 PDT 2024
From: Koen Vandeputte <koen.vandeputte at citymesh.com>
These are used on Tegra SoC with USB 3.0 controller.
Signed-off-by: Koen Vandeputte <koen.vandeputte at citymesh.com>
[add OTG module, rebase, reword, drop firmware package]
Signed-off-by: Tomasz Maciej Nowak <tmn505 at gmail.com>
---
package/kernel/linux/modules/usb.mk | 37 +++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/package/kernel/linux/modules/usb.mk b/package/kernel/linux/modules/usb.mk
index 458c8c4ba68f..b1366245ffab 100644
--- a/package/kernel/linux/modules/usb.mk
+++ b/package/kernel/linux/modules/usb.mk
@@ -1911,3 +1911,40 @@ endef
$(eval $(call KernelPackage,chaoskey))
+
+define KernelPackage/usb-xhci-tegra
+ TITLE:=xHCI support for Tegra SoCs
+ DEPENDS:=@TARGET_tegra +kmod-usb-xhci-hcd +kmod-usb-roles
+ KCONFIG:= \
+ CONFIG_USB_XHCI_TEGRA \
+ CONFIG_PHY_TEGRA_XUSB=m
+ HIDDEN:=1
+ FILES:= \
+ $(LINUX_DIR)/drivers/usb/host/xhci-tegra.ko \
+ $(LINUX_DIR)/drivers/phy/tegra/phy-tegra-xusb.ko
+ AUTOLOAD:=$(call AutoLoad,54,phy-tegra-xusb xhci-tegra,1)
+ $(call AddDepends/usb)
+endef
+
+define KernelPackage/usb-xhci-tegra/description
+ Kernel support for the xHCI host controller found in Tegra SoCs.
+ For each SoC generation different firmware is needed.
+endef
+
+$(eval $(call KernelPackage,usb-xhci-tegra))
+
+
+define KernelPackage/usb-udc-tegra
+ SUBMENU:=$(USB_MENU)
+ TITLE:=NVIDIA Tegra Superspeed USB 3.0 Device Controller
+ DEPENDS:=@TARGET_tegra +kmod-usb-xhci-tegra
+ KCONFIG:=CONFIG_USB_TEGRA_XUDC
+ FILES:=$(LINUX_DIR)/drivers/usb/gadget/udc/tegra-xudc.ko
+ AUTOLOAD:=$(call AutoProbe,tegra-xudc)
+endef
+
+define KernelPackage/usb-udc-tegra/description
+ Enables NVIDIA Tegra USB 3.0 device mode controller driver.
+endef
+
+$(eval $(call KernelPackage,usb-udc-tegra))
--
2.47.0
More information about the openwrt-devel
mailing list