usb: dwc3: add a SPL_USB_DWC3_GENERIC option for the dwc3 driver

Suppress warnings when building the SPL without USB_DWC3_GENERIC

Signed-off-by: Angus Ainslie <angus@akkea.ca>
This commit is contained in:
Angus Ainslie 2022-07-14 08:11:11 -07:00 committed by Marek Vasut
parent 26f6f7fb5c
commit 582ce23c78
2 changed files with 8 additions and 1 deletions

View file

@ -30,6 +30,13 @@ config USB_DWC3_GENERIC
Select this for Xilinx ZynqMP and similar Platforms. Select this for Xilinx ZynqMP and similar Platforms.
This wrapper supports Host and Peripheral operation modes. 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 config USB_DWC3_MESON_G12A
bool "Amlogic Meson G12A USB wrapper" bool "Amlogic Meson G12A USB wrapper"
depends on DM_USB && USB_DWC3 && ARCH_MESON depends on DM_USB && USB_DWC3 && ARCH_MESON

View file

@ -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_OMAP) += dwc3-omap.o
obj-$(CONFIG_USB_DWC3_MESON_G12A) += dwc3-meson-g12a.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_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_UNIPHIER) += dwc3-uniphier.o
obj-$(CONFIG_USB_DWC3_LAYERSCAPE) += dwc3-layerscape.o obj-$(CONFIG_USB_DWC3_LAYERSCAPE) += dwc3-layerscape.o
obj-$(CONFIG_USB_DWC3_PHY_OMAP) += ti_usb_phy.o obj-$(CONFIG_USB_DWC3_PHY_OMAP) += ti_usb_phy.o