Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 226915
b: refs/heads/master
c: f646cf9
h: refs/heads/master
i:
  226913: 9b0fe6a
  226911: 1e2e905
v: v3
  • Loading branch information
Toshiharu Okada authored and Greg Kroah-Hartman committed Nov 16, 2010
1 parent e1bf91b commit 52a1fef
Show file tree
Hide file tree
Showing 5 changed files with 2,972 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: d8df0b611c66db3b7afd0678213979209616681a
refs/heads/master: f646cf94520e22cb11eb5d2e9a35b33bfe4bea1b
22 changes: 22 additions & 0 deletions trunk/drivers/usb/gadget/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,28 @@ config USB_LANGWELL
default USB_GADGET
select USB_GADGET_SELECTED

config USB_GADGET_EG20T
boolean "Intel EG20T(Topcliff) USB Device controller"
depends on PCI
select USB_GADGET_DUALSPEED
help
This is a USB device driver for EG20T PCH.
EG20T PCH is the platform controller hub that is used in Intel's
general embedded platform. EG20T PCH has USB device interface.
Using this interface, it is able to access system devices connected
to USB device.
This driver enables USB device function.
USB device is a USB peripheral controller which
supports both full and high speed USB 2.0 data transfers.
This driver supports both control transfer and bulk transfer modes.
This driver dose not support interrupt transfer or isochronous
transfer modes.

config USB_EG20T
tristate
depends on USB_GADGET_EG20T
default USB_GADGET
select USB_GADGET_SELECTED

#
# LAST -- dummy/emulated controller
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 @@ -24,6 +24,7 @@ obj-$(CONFIG_USB_FSL_QE) += fsl_qe_udc.o
obj-$(CONFIG_USB_CI13XXX) += ci13xxx_udc.o
obj-$(CONFIG_USB_S3C_HSOTG) += s3c-hsotg.o
obj-$(CONFIG_USB_LANGWELL) += langwell_udc.o
obj-$(CONFIG_USB_EG20T) += pch_udc.o

#
# USB gadget drivers
Expand Down
7 changes: 7 additions & 0 deletions trunk/drivers/usb/gadget/gadget_chips.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,11 @@
#define gadget_is_s3c_hsotg(g) 0
#endif

#ifdef CONFIG_USB_GADGET_EG20T
#define gadget_is_pch(g) (!strcmp("pch_udc", (g)->name))
#else
#define gadget_is_pch(g) 0
#endif

/**
* usb_gadget_controller_number - support bcdDevice id convention
Expand Down Expand Up @@ -200,6 +205,8 @@ static inline int usb_gadget_controller_number(struct usb_gadget *gadget)
return 0x25;
else if (gadget_is_s3c_hsotg(gadget))
return 0x26;
else if (gadget_is_pch(gadget))
return 0x27;
return -ENOENT;
}

Expand Down
Loading

0 comments on commit 52a1fef

Please sign in to comment.