usb: introduce a separate config option for DM USB device
[platform/kernel/u-boot.git] / drivers / usb / Kconfig
index d456beb..98f8343 100644 (file)
@@ -52,6 +52,20 @@ config SPL_DM_USB
        depends on DM_USB
        default y
 
+config DM_USB_GADGET
+       bool "Enable driver model for USB Gadget"
+       depends on DM_USB
+       help
+         Enable driver model for USB Gadget (Peripheral
+         mode)
+
+config SPL_DM_USB_GADGET
+       bool "Enable driver model for USB Gadget in sPL"
+       depends on SPL_DM_USB
+       help
+         Enable driver model for USB Gadget in SPL
+         (Peripheral mode)
+
 source "drivers/usb/host/Kconfig"
 
 source "drivers/usb/dwc3/Kconfig"