]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
usb: dwc3: Tighten driver glue dependencies
authorTom Rini <trini@konsulko.com>
Thu, 11 Sep 2025 21:50:18 +0000 (15:50 -0600)
committerMarek Vasut <marek.vasut+usb@mailbox.org>
Thu, 25 Sep 2025 22:06:00 +0000 (00:06 +0200)
A few of the platform specific DWC3 host glue drivers cannot build
without access to some platform specific header files. Express those
requirements in Kconfig as well.

Reviewed-by: Marek Vasut <marek.vasut@mailbox.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
drivers/usb/dwc3/Kconfig

index 682a6910655610e03a49850e6b37143c01678a2a..744dfa90463c8cd120142ebfd4d2d56fbc4bfb5f 100644 (file)
@@ -17,6 +17,7 @@ comment "Platform Glue Driver Support"
 
 config USB_DWC3_OMAP
        bool "Texas Instruments OMAP5 and similar Platforms"
+       depends on ARCH_OMAP2PLUS
        help
          Some platforms from Texas Instruments like OMAP5, DRA7xxx and
          AM437x use this IP for USB2/3 functionality.
@@ -39,14 +40,14 @@ config SPL_USB_DWC3_GENERIC
 
 config SPL_USB_DWC3_AM62
        bool "TI AM62 USB wrapper"
-       depends on SPL_DM_USB && SPL_USB_DWC3_GENERIC && SPL_SYSCON
+       depends on SPL_DM_USB && SPL_USB_DWC3_GENERIC && SPL_SYSCON && ARCH_K3
        help
          Select this for TI AM62 Platforms.
          This wrapper supports Host and Peripheral operation modes.
 
 config USB_DWC3_AM62
        bool "TI AM62 USB wrapper"
-       depends on DM_USB && USB_DWC3_GENERIC && SYSCON
+       depends on DM_USB && USB_DWC3_GENERIC && SYSCON && ARCH_K3
        help
          Select this for TI AM62 Platforms.
          This wrapper supports Host and Peripheral operation modes.
@@ -80,7 +81,7 @@ config USB_DWC3_UNIPHIER
 config USB_DWC3_LAYERSCAPE
        bool "Freescale Layerscape platform support"
        depends on DM_USB && USB_DWC3
-       depends on !USB_XHCI_FSL
+       depends on !USB_XHCI_FSL && ARM
        help
          Select this for Freescale Layerscape Platforms.
 
@@ -99,12 +100,14 @@ menu "PHY Subsystem"
 
 config USB_DWC3_PHY_OMAP
        bool "TI OMAP SoC series USB DRD PHY driver"
+       depends on ARCH_OMAP2PLUS
        help
          Enable single driver for both USB2 PHY programming and USB3 PHY
          programming for TI SoCs.
 
 config USB_DWC3_PHY_SAMSUNG
        bool "Exynos5 SoC series USB DRD PHY driver"
+       depends on ARCH_EXYNOS
        help
          Enable USB DRD PHY support for Exynos 5 SoC series.
          This driver provides PHY interface for USB 3.0 DRD controller