@@ -169,6 +169,23 @@ config USB_DESIGNWARE
default USB_GADGET
select USB_GADGET_SELECTED
+config USB_GADGET_DESIGNWARE_OTG
+ boolean "Synopsys designware OTG Device Controller"
+ depends on DWC_OTG_MODE || DWC_DEVICE_ONLY
+ select USB_GADGET_DUALSPEED
+ help
+ This driver supports the OTG device synopsys controller.
+ Say "y" to link the driver statically, or "m" to build a
+ dynamically linked module called "spear_udc" and force all
+ gadget drivers to also be dynamically linked.
+
+config USB_DESIGNWARE_OTG
+ tristate
+ depends on USB_GADGET_DESIGNWARE_OTG
+ default USB_GADGET
+ select USB_GADGET_SELECTED
+
+
config USB_GADGET_FSL_USB2
boolean "Freescale Highspeed USB DR Peripheral Controller"
depends on FSL_SOC || ARCH_MXC
When dwc otg is configured as either dual or device only mode, then it can also be used as a usb gadget. So added dwc otg as an option for peripheral controller. Signed-off-by: Pratyush Anand <pratyush.anand@st.com> --- drivers/usb/gadget/Kconfig | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-)