From patchwork Tue Oct 29 15:46:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Maciej Nowak X-Patchwork-Id: 2003840 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=qPE2KhRl; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=desiato.20200630 header.b=hUmzzFty; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=terefe.re header.i=@terefe.re header.a=rsa-sha256 header.s=default header.b=LIhY4lYU; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XdHZ52pLvz1xwn for ; Wed, 30 Oct 2024 04:39:23 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=4miIvQW9JK5DWiC/aSAZ5S2/FIzy5+80ELItY6QMNZ4=; b=qPE2KhRlQ9Yn+6 birbnv2RKrXSZD8Otc/WTS19neqG6/Du20P85n2mopjNYlGq2f2P+BUTNUsfeX2RY14a4U4H3bOEi m3Iui9qbSWaxnR0Mk6Wm5qu9859ChrbX141ErWHGjQVtnSXkDXaZMHezEzxbe51jJxtQSnypzo6pf T1080zhPTbMr2uI4sPhQlrN6koAR7M5jiWWrvAiZuT7Uhj0KLr70H1HMnNNDN6mDFcQu6xiT6UfJu IpBmhWfdmTFGDW4vDXqqILBaYwboYh2BL36tOYA/sVMne1VXmWr0mYytcWdK8bTbgXU1tarL5nmV3 Z/5htQs0duKNgroskrvQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t5qA4-0000000FJIG-0IVs; Tue, 29 Oct 2024 17:37:44 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t5oou-0000000F4l0-1KbR for openwrt-devel@bombadil.infradead.org; Tue, 29 Oct 2024 16:11:48 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=NZQk3OK17yFWALkaYdIuZVIRZ3rZ8KoKMaM3mg4l33k=; b=hUmzzFtyHt0HoPNebUPnwZPXmx AfMwkAJsqYIr5wuFOr2TogFqomQtMbzYrsQ5iOjrO1oZCCg4S/+EgI23MDr1cRwpYsfxFaEqlokme T82Z+NgbswGl1H7yrUaX5bah5pgtl3tsHs8I2NJwZ255Q5x7jlrOQvNjvfHLnsmnlNMZ2/bHWJ24s Hui4mVthJePDvHPFFteTO36mxyBJ6zjyYa2q3S8HFAlCkQwqY8wxw0kSzZLTA8lf8ZjDxycwQhmXV GCy0wKVxeW3fAT5bd+KVc7AMRxD9wTc3UcLzbC7bapBEnxMefW2j+wbPCzekOzqG5vyXVAGOvqjyb nuwA+Z5w==; Received: from terefe.re ([2a04:52c0:101:a4a:0:ffff:5ff:60c8]) by desiato.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t5oor-00000009wkw-1pjD for openwrt-devel@lists.openwrt.org; Tue, 29 Oct 2024 16:11:47 +0000 Received: from localhost.localdomain (unknown [212.106.161.104]) by terefe.re (Postfix) with ESMTPSA id 3AF6B2030B; Tue, 29 Oct 2024 17:11:42 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=terefe.re; s=default; t=1730218302; bh=AgWTB21C1sD2uN7NkMqdtPrEihd1gtafwwFlXj9qCOQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LIhY4lYUvzJpdzk7X5VVERKmTWu/zNg9jFeoW1z7VZzp9g1xPb199M3q+sSNzv7Dy fnlXquNoOfnGRm+wVBNc/vjJd3WBuRRxRoMpT62vjA2pWfSsXY2gs38gH2NGGmSvnT VPxxraA25TcdjAiA69kMpy/h6bifJeHTKJT4eJoVISqlNIm+rmPYHhxkgoT9bLam8/ M4j3EfNEGGaJ5Y/m0gYXDYz4YsP43K703HURyV9WEl5P8CvILigbRPmfy/2NaOEbKm f5YxFG9lYkbaJpehg/bCwTcXiQ5ta05r4hozHA5eXTNkrlGeee9UbJ37F45fuA+ZTq 5j4DAoiqS9TkA== From: Tomasz Maciej Nowak To: openwrt-devel@lists.openwrt.org Cc: Raylynn Knight , Koen Vandeputte , Tomasz Maciej Nowak Subject: [PATCH 03/14] kernel: modules: package Tegra xHCI and OTG modules Date: Tue, 29 Oct 2024 16:46:56 +0100 Message-ID: <20241029161046.110403-4-tmn505@terefe.re> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241029161046.110403-1-tmn505@terefe.re> References: <20241029161046.110403-1-tmn505@terefe.re> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241029_161145_680397_DD625288 X-CRM114-Status: UNSURE ( 7.17 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "desiato.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: From: Koen Vandeputte These are used on Tegra SoC with USB 3.0 controller. Signed-off-by: Koen Vandeputte [add OTG module, rebase, reword, drop firmware package] Signed-off-by: Tomasz Maciej Nowak --- package/kernel/linux/mod [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org From: Koen Vandeputte These are used on Tegra SoC with USB 3.0 controller. Signed-off-by: Koen Vandeputte [add OTG module, rebase, reword, drop firmware package] Signed-off-by: Tomasz Maciej Nowak --- 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))