[PATCH v2 3/5] usb: gadget: Tighten the dependency for DWC2 OTG support

Tom Rini trini at konsulko.com
Fri Sep 26 17:30:32 CEST 2025


The DWC2 OTG driver depends on an ARM-specific header file to compile,
so make it depend on ARM.

Signed-off-by: Tom Rini <trini at konsulko.com>
---
Changes in v2:
- None

Cc: Marek Vasut <marek.vasut at mailbox.org>
---
 drivers/usb/gadget/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig
index 0121f9872ae6..9065e14768ad 100644
--- a/drivers/usb/gadget/Kconfig
+++ b/drivers/usb/gadget/Kconfig
@@ -109,6 +109,7 @@ config USB_GADGET_AT91
 
 config USB_GADGET_DWC2_OTG
 	bool "DesignWare USB2.0 HS OTG controller (gadget mode)"
+	depends on ARM
 	select USB_GADGET_DUALSPEED
 	help
 	  The Designware USB2.0 high-speed gadget controller
-- 
2.43.0



More information about the U-Boot mailing list