diff mbox

[13/14] usb/gadget/kconfig: added dwc otg as an option for peripheral controller

Message ID 0141f2f382fd7e96192c528126384a252d96ae1e.1314704558.git.pratyush.anand@st.com (mailing list archive)
State Not Applicable
Headers show

Commit Message

Pratyush ANAND Aug. 30, 2011, 11:58 a.m. UTC
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(-)
diff mbox

Patch

diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig
index 09fa211..ca0d83a 100644
--- a/drivers/usb/gadget/Kconfig
+++ b/drivers/usb/gadget/Kconfig
@@ -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