diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-16 16:06:10 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-16 16:06:10 -0400 |
commit | e1f5b94fd0c93c3e27ede88b7ab652d086dc960f (patch) | |
tree | e8de7a132eb88521dd1c19e128eba2d5349bdf4f /drivers/usb/gadget/gadget_chips.h | |
parent | 6fd03301d76bc439382710e449f58efbb233df1b (diff) | |
parent | 1b6ed69f974f6f32c8be0d9a7fc952822eb83b6f (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6: (143 commits)
USB: xhci depends on PCI.
USB: xhci: Add Makefile, MAINTAINERS, and Kconfig entries.
USB: xhci: Respect critical sections.
USB: xHCI: Fix interrupt moderation.
USB: xhci: Remove packed attribute from structures.
usb; xhci: Fix TRB offset calculations.
USB: xhci: replace if-elseif-else with switch-case
USB: xhci: Make xhci-mem.c include linux/dmapool.h
USB: xhci: drop spinlock in xhci_urb_enqueue() error path.
USB: Change names of SuperSpeed ep companion descriptor structs.
USB: xhci: Avoid compiler reordering in Link TRB giveback.
USB: xhci: Clean up xhci_irq() function.
USB: xhci: Avoid global namespace pollution.
USB: xhci: Fix Link TRB handoff bit twiddling.
USB: xhci: Fix register write order.
USB: xhci: fix some compiler warnings in xhci.h
USB: xhci: fix lots of compiler warnings.
USB: xhci: use xhci_handle_event instead of handle_event
USB: xhci: URB cancellation support.
USB: xhci: Scatter gather list support for bulk transfers.
...
Diffstat (limited to 'drivers/usb/gadget/gadget_chips.h')
-rw-r--r-- | drivers/usb/gadget/gadget_chips.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/usb/gadget/gadget_chips.h b/drivers/usb/gadget/gadget_chips.h index ec6d439a2aa5..8e0e9a0b7364 100644 --- a/drivers/usb/gadget/gadget_chips.h +++ b/drivers/usb/gadget/gadget_chips.h | |||
@@ -137,6 +137,12 @@ | |||
137 | #define gadget_is_musbhdrc(g) 0 | 137 | #define gadget_is_musbhdrc(g) 0 |
138 | #endif | 138 | #endif |
139 | 139 | ||
140 | #ifdef CONFIG_USB_GADGET_LANGWELL | ||
141 | #define gadget_is_langwell(g) (!strcmp("langwell_udc", (g)->name)) | ||
142 | #else | ||
143 | #define gadget_is_langwell(g) 0 | ||
144 | #endif | ||
145 | |||
140 | /* from Montavista kernel (?) */ | 146 | /* from Montavista kernel (?) */ |
141 | #ifdef CONFIG_USB_GADGET_MPC8272 | 147 | #ifdef CONFIG_USB_GADGET_MPC8272 |
142 | #define gadget_is_mpc8272(g) !strcmp("mpc8272_udc", (g)->name) | 148 | #define gadget_is_mpc8272(g) !strcmp("mpc8272_udc", (g)->name) |
@@ -231,6 +237,8 @@ static inline int usb_gadget_controller_number(struct usb_gadget *gadget) | |||
231 | return 0x22; | 237 | return 0x22; |
232 | else if (gadget_is_ci13xxx(gadget)) | 238 | else if (gadget_is_ci13xxx(gadget)) |
233 | return 0x23; | 239 | return 0x23; |
240 | else if (gadget_is_langwell(gadget)) | ||
241 | return 0x24; | ||
234 | return -ENOENT; | 242 | return -ENOENT; |
235 | } | 243 | } |
236 | 244 | ||