Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AB8E9C433F5 for ; Mon, 30 May 2022 17:15:37 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7533E8438E; Mon, 30 May 2022 19:15:34 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=akkea.ca Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=akkea.ca header.i=@akkea.ca header.b="dycl80hW"; dkim=pass (1024-bit key) header.d=akkea.ca header.i=@akkea.ca header.b="dycl80hW"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 076D78438E; Mon, 30 May 2022 19:15:31 +0200 (CEST) Received: from node.akkea.ca (li1434-30.members.linode.com [45.33.107.30]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C84F0842E6 for ; Mon, 30 May 2022 19:15:27 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=akkea.ca Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=angus@akkea.ca Received: from localhost (localhost [127.0.0.1]) by node.akkea.ca (Postfix) with ESMTP id C6FEB4E2058; Mon, 30 May 2022 17:15:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akkea.ca; s=mail; t=1653930925; bh=XdvT8mWCEGJ6GcwyAlkHEQOM0ASj26Sb0/1psCFdfXg=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=dycl80hWLl7vJno3MzbfT2QMhg/xNdzjZXzZmjKSefcbVE8ueRnZgD0mDtbgHdgNm kmGCf2MT9KenYCWlU7SeLlxxsWPWgoyYdLE7T9rtDyKP4wogeRP7G6whQcCBhal2z2 o3Lt+JMYPP4Yjhpvn0jN81OGoFWTMh5dbR84v+f8= Received: from node.akkea.ca ([127.0.0.1]) by localhost (mail.akkea.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3bIBlvLiUl6l; Mon, 30 May 2022 17:15:25 +0000 (UTC) Received: from localhost.localdomain (S0106788a2041785e.gv.shawcable.net [70.66.95.121]) by node.akkea.ca (Postfix) with ESMTPSA id 48F0A4E2050; Mon, 30 May 2022 17:15:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akkea.ca; s=mail; t=1653930925; bh=XdvT8mWCEGJ6GcwyAlkHEQOM0ASj26Sb0/1psCFdfXg=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=dycl80hWLl7vJno3MzbfT2QMhg/xNdzjZXzZmjKSefcbVE8ueRnZgD0mDtbgHdgNm kmGCf2MT9KenYCWlU7SeLlxxsWPWgoyYdLE7T9rtDyKP4wogeRP7G6whQcCBhal2z2 o3Lt+JMYPP4Yjhpvn0jN81OGoFWTMh5dbR84v+f8= From: Angus Ainslie To: u-boot@lists.denx.de, sbabic@denx.de Cc: priyanka.jain@nxp.com, michael@walle.cc, kernel@puri.sm, marex@denx.de, Angus Ainslie Subject: [PATCH v3 1/2] usb: dwc3: add a SPL_USB_DWC3_GENERIC option for the dwc3 driver Date: Mon, 30 May 2022 10:15:16 -0700 Message-Id: <20220530171517.26284-2-angus@akkea.ca> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220530171517.26284-1-angus@akkea.ca> References: <20220530171517.26284-1-angus@akkea.ca> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean Suppress warnings when building the SPL without USB_DWC3_GENERIC Signed-off-by: Angus Ainslie --- drivers/usb/dwc3/Kconfig | 7 +++++++ drivers/usb/dwc3/Makefile | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/usb/dwc3/Kconfig b/drivers/usb/dwc3/Kconfig index 62aa65bf0c..f010291d02 100644 --- a/drivers/usb/dwc3/Kconfig +++ b/drivers/usb/dwc3/Kconfig @@ -30,6 +30,13 @@ config USB_DWC3_GENERIC Select this for Xilinx ZynqMP and similar Platforms. This wrapper supports Host and Peripheral operation modes. +config SPL_USB_DWC3_GENERIC + bool "Generic implementation of a DWC3 wrapper (aka dwc3 glue) for the SPL" + depends on SPL_DM_USB && USB_DWC3 && SPL_MISC + help + Select this for Xilinx ZynqMP and similar Platforms. + This wrapper supports Host and Peripheral operation modes. + config USB_DWC3_MESON_G12A bool "Amlogic Meson G12A USB wrapper" depends on DM_USB && USB_DWC3 && ARCH_MESON diff --git a/drivers/usb/dwc3/Makefile b/drivers/usb/dwc3/Makefile index 0dd1ba87cd..97b4f7191c 100644 --- a/drivers/usb/dwc3/Makefile +++ b/drivers/usb/dwc3/Makefile @@ -9,7 +9,7 @@ obj-$(CONFIG_USB_DWC3_GADGET) += gadget.o ep0.o obj-$(CONFIG_USB_DWC3_OMAP) += dwc3-omap.o obj-$(CONFIG_USB_DWC3_MESON_G12A) += dwc3-meson-g12a.o obj-$(CONFIG_USB_DWC3_MESON_GXL) += dwc3-meson-gxl.o -obj-$(CONFIG_USB_DWC3_GENERIC) += dwc3-generic.o +obj-$(CONFIG_$(SPL_)USB_DWC3_GENERIC) += dwc3-generic.o obj-$(CONFIG_USB_DWC3_UNIPHIER) += dwc3-uniphier.o obj-$(CONFIG_USB_DWC3_LAYERSCAPE) += dwc3-layerscape.o obj-$(CONFIG_USB_DWC3_PHY_OMAP) += ti_usb_phy.o -- 2.34.1