Skip to contentSkip to conversation

usb: gadget: net2280: add USB2380 support

PATCH New Tim Harvey 1 participant 1 message May 23, 2016 USB

lore
Share & tools
lore

Tim Harvey

author
#0 lore raw

PATCH 1/1 usb: gadget: net2280: add USB2380 support

The PLX USB2380 is a PCIe version of the NET2280 and behaves more like the USB338x but without the USB3.0 superspeed support.

This was tested with g_ether, g_serial, g_mass_storage on a Gateworks Ventana GW2383.

Cc Justin DeFields <[email protected]>
---
 drivers/usb/gadget/udc/Kconfig   |  4 +++-
 drivers/usb/gadget/udc/net2280.c | 51 +++++++++++++++++++++++-----------------
 drivers/usb/gadget/udc/net2280.h |  1 +
 3 files changed, 34 insertions(+), 22 deletions(-)
drivers/usb/gadget/udc/Kconfig +3 -1
index 7c28941..658b8da 100644
@@ -312,7 +312,7 @@ config USB_NET2272_DMA
 	  If unsure, say "N" here.  The driver works fine in PIO mode.
 
 config USB_NET2280
-	tristate "NetChip 228x / PLX USB338x"
+	tristate "NetChip NET228x / PLX USB3x8x"
 	depends on PCI
 	help
 	   NetChip 2280 / 2282 is a PCI based USB peripheral controller which
@@ -322,6 +322,8 @@ config USB_NET2280
 	   (for control transfers) and several endpoints with dedicated
 	   functions.
 
+	   PLX 2380 is a PCIe version of the PLX 2380.
+
 	   PLX 3380 / 3382 is a PCIe based USB peripheral controller which
 	   supports full, high speed USB 2.0 and super speed USB 3.0
 	   data transfers.
drivers/usb/gadget/udc/net2280.c +30 -21

180 lines not on this page · raw message

drivers/usb/gadget/udc/net2280.h +1 -0
index 0d32052..2736a95 100644
@@ -47,6 +47,7 @@ set_idx_reg(struct net2280_regs __iomem *regs, u32 index, u32 value)
 #define PLX_LEGACY		BIT(0)
 #define PLX_2280		BIT(1)
 #define PLX_SUPERSPEED		BIT(2)
+#define PLX_PCIE		BIT(3)
 
 #define REG_DIAG		0x0
 #define     RETRY_COUNTER                                       16
Signature · 1 line
1.9.1