diff options
author | David Lopo <dlopo@chipidea.mips.com> | 2008-11-17 17:14:51 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-01-07 12:59:58 -0500 |
commit | aa69a8093ff985873cb44fe1157bd6db29a20fe4 (patch) | |
tree | c3cf9484e9f9a607e3076fd538f57246b482c1ed /drivers/usb/gadget/gadget_chips.h | |
parent | bb9496c6f7e853e5d4edd5397c9d45f1968d623c (diff) |
USB: gadget: MIPS ci13xxx_udc
MIPS USB IP core family device controller
Currently it only supports IP part number CI13412.
[dbrownell@users.sourceforge.net: minor comment tweaks]
Signed-off-by: David Lopo <dlopo@chipidea.mips.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/gadget/gadget_chips.h')
-rw-r--r-- | drivers/usb/gadget/gadget_chips.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/usb/gadget/gadget_chips.h b/drivers/usb/gadget/gadget_chips.h index 4e3107dd2f34..c0679b176027 100644 --- a/drivers/usb/gadget/gadget_chips.h +++ b/drivers/usb/gadget/gadget_chips.h | |||
@@ -158,6 +158,11 @@ | |||
158 | #define gadget_is_fsl_qe(g) 0 | 158 | #define gadget_is_fsl_qe(g) 0 |
159 | #endif | 159 | #endif |
160 | 160 | ||
161 | #ifdef CONFIG_USB_GADGET_CI13XXX | ||
162 | #define gadget_is_ci13xxx(g) (!strcmp("ci13xxx_udc", (g)->name)) | ||
163 | #else | ||
164 | #define gadget_is_ci13xxx(g) 0 | ||
165 | #endif | ||
161 | 166 | ||
162 | // CONFIG_USB_GADGET_SX2 | 167 | // CONFIG_USB_GADGET_SX2 |
163 | // CONFIG_USB_GADGET_AU1X00 | 168 | // CONFIG_USB_GADGET_AU1X00 |
@@ -225,6 +230,8 @@ static inline int usb_gadget_controller_number(struct usb_gadget *gadget) | |||
225 | return 0x21; | 230 | return 0x21; |
226 | else if (gadget_is_fsl_qe(gadget)) | 231 | else if (gadget_is_fsl_qe(gadget)) |
227 | return 0x22; | 232 | return 0x22; |
233 | else if (gadget_is_ci13xxx(gadget)) | ||
234 | return 0x23; | ||
228 | return -ENOENT; | 235 | return -ENOENT; |
229 | } | 236 | } |
230 | 237 | ||