Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 259199
b: refs/heads/master
c: ceb8036
h: refs/heads/master
i:
  259197: e174877
  259195: 34931a3
  259191: 7f07f3b
  259183: a4b96c4
  259167: f5f0c05
  259135: 69912c5
  259071: 7ea23c9
v: v3
  • Loading branch information
Seth Levy authored and Greg Kroah-Hartman committed Jun 6, 2011
1 parent 3ab52ed commit d8610c7
Show file tree
Hide file tree
Showing 6 changed files with 3,358 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c4fc2342cb611f945fa468e742759e25984005ad
refs/heads/master: ceb80363b2ec1091dffd78064771e3d4679f69c7
29 changes: 29 additions & 0 deletions trunk/drivers/usb/gadget/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,35 @@ config USB_CI13XXX_PCI
default USB_GADGET
select USB_GADGET_SELECTED

config USB_GADGET_NET2272
boolean "PLX NET2272"
select USB_GADGET_DUALSPEED
help
PLX NET2272 is a USB peripheral controller which supports
both full and high speed USB 2.0 data transfers.

It has three configurable endpoints, as well as endpoint zero
(for control transfer).
Say "y" to link the driver statically, or "m" to build a
dynamically linked module called "net2272" and force all
gadget drivers to also be dynamically linked.

config USB_GADGET_NET2272_DMA
boolean "Support external DMA controller"
depends on USB_GADGET_NET2272
help
The NET2272 part can optionally support an external DMA
controller, but your board has to have support in the
driver itself.

If unsure, say "N" here. The driver works fine in PIO mode.

config USB_NET2272
tristate
depends on USB_GADGET_NET2272
default USB_GADGET
select USB_GADGET_SELECTED

config USB_GADGET_NET2280
boolean "NetChip 228x"
depends on PCI
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/usb/gadget/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
ccflags-$(CONFIG_USB_GADGET_DEBUG) := -DDEBUG

obj-$(CONFIG_USB_DUMMY_HCD) += dummy_hcd.o
obj-$(CONFIG_USB_NET2272) += net2272.o
obj-$(CONFIG_USB_NET2280) += net2280.o
obj-$(CONFIG_USB_AMD5536UDC) += amd5536udc.o
obj-$(CONFIG_USB_PXA25X) += pxa25x_udc.o
Expand Down
8 changes: 8 additions & 0 deletions trunk/drivers/usb/gadget/gadget_chips.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
#ifndef __GADGET_CHIPS_H
#define __GADGET_CHIPS_H

#ifdef CONFIG_USB_GADGET_NET2272
#define gadget_is_net2272(g) !strcmp("net2272", (g)->name)
#else
#define gadget_is_net2272(g) 0
#endif

#ifdef CONFIG_USB_GADGET_NET2280
#define gadget_is_net2280(g) !strcmp("net2280", (g)->name)
#else
Expand Down Expand Up @@ -223,6 +229,8 @@ static inline int usb_gadget_controller_number(struct usb_gadget *gadget)
return 0x29;
else if (gadget_is_s3c_hsudc(gadget))
return 0x30;
else if (gadget_is_net2272(gadget))
return 0x31;

return -ENOENT;
}
Expand Down
Loading

0 comments on commit d8610c7

Please sign in to comment.