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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxx>
---
 drivers/usb/gadget/Kconfig |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

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
-- 
1.7.2.2

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux