Skip to contentSkip to conversation

usb: gadget: Add xilinx usb2 device support

PATCH New Subbaraya Sundeep Bhatta 1 participant 1 message Sep 10, 2014 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#1 lore raw

PATCH v5 2/2 usb: gadget: Add xilinx usb2 device support

In reply to a message not in the archive

Xilinx USB2 device is a soft IP which supports both full and high speed USB 2.0 data transfers. This patch adds xilinx usb2 device driver support.

---
Changes for v5:
- used devm_kzalloc instead of kzalloc
- used snprintf instead of sprintf
- fixed minor indentation issues
Changes for v4:
- renamed xlnx,axi-usb2-device-4.00.a to xlnx,usb2-device-4.00.a
Changes for v3:
- Added pullup function
- Modified error handling
- Fixed all v2 comments except DMA interrupt handling since polling seems to be faster.
Please refer to below message thread:
http://www.kernelhub.org/?p=2&msg=481724
Changes for v2:
- Added Resume
- Added Remote wakeup
- Fixed v1 comments

 drivers/usb/gadget/udc/Kconfig      |   15 +
 drivers/usb/gadget/udc/Makefile     |    1 +
 drivers/usb/gadget/udc/udc-xilinx.c | 2180 +++++++++++++++++++++++++++++++++++
 3 files changed, 2196 insertions(+), 0 deletions(-)
 create mode 100644 drivers/usb/gadget/udc/udc-xilinx.c
drivers/usb/gadget/udc/Kconfig +15 -0
index 34ebaa6..021eb4a 100644
@@ -354,6 +354,21 @@ config USB_EG20T
 	  ML7213/ML7831 is completely compatible for Intel EG20T PCH.
 
 	  This driver can be used with Intel's Quark X1000 SOC platform
+
+config USB_GADGET_XILINX
+	tristate "Xilinx USB Driver"
+	depends on OF || COMPILE_TEST
+	help
+	  USB peripheral controller driver for Xilinx USB2 device.
+	  Xilinx USB2 device is a soft IP which supports both full
+	  and high speed USB 2.0 data transfers. It has seven configurable
+	  endpoints(bulk or interrupt or isochronous), as well as
+	  endpoint zero(for control transfers).
+
+	  Say "y" to link the driver statically, or "m" to build a
+	  dynamically linked module called "udc-xilinx" and force all
+	  gadget drivers to also be dynamically linked.
+
 #
 # LAST -- dummy/emulated controller
 #
drivers/usb/gadget/udc/Makefile +1 -0
index 4096122..a7f4491 100644
@@ -29,3 +29,4 @@ obj-$(CONFIG_USB_FUSB300)	+= fusb300_udc.o
 obj-$(CONFIG_USB_FOTG210_UDC)	+= fotg210-udc.o
 obj-$(CONFIG_USB_MV_U3D)	+= mv_u3d_core.o
 obj-$(CONFIG_USB_GR_UDC)	+= gr_udc.o
+obj-$(CONFIG_USB_GADGET_XILINX)	+= udc-xilinx.o
drivers/usb/gadget/udc/udc-xilinx.c new file +2180 -0

2,180 lines not on this page · raw message

Signature · 1 line
1.7.4