aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/gadget_chips.h
diff options
context:
space:
mode:
authorLi Yang <leoli@freescale.com>2007-04-23 13:37:36 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2007-04-27 16:28:43 -0400
commitd2eef1fc99640f7de302dcdbcfbdfcec2eef13f6 (patch)
treeeef9d46f61e44c9a8eafda30b5ad72aa4d99ad79 /drivers/usb/gadget/gadget_chips.h
parentb504882da539c17ce6fee9da2a97f2fafabd495d (diff)
USB: update gadget files for fsl_usb2_udc driver
Update gadget_chip.c, ether.c for newly added Freescale Highspeed USB device driver. Signed-off-by: Li Yang <leoli@freescale.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.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/usb/gadget/gadget_chips.h b/drivers/usb/gadget/gadget_chips.h
index 2e3d6620d216..d041b919e7b8 100644
--- a/drivers/usb/gadget/gadget_chips.h
+++ b/drivers/usb/gadget/gadget_chips.h
@@ -99,6 +99,12 @@
99#define gadget_is_imx(g) 0 99#define gadget_is_imx(g) 0
100#endif 100#endif
101 101
102#ifdef CONFIG_USB_GADGET_FSL_USB2
103#define gadget_is_fsl_usb2(g) !strcmp("fsl-usb2-udc", (g)->name)
104#else
105#define gadget_is_fsl_usb2(g) 0
106#endif
107
102/* Mentor high speed function controller */ 108/* Mentor high speed function controller */
103#ifdef CONFIG_USB_GADGET_MUSBHSFC 109#ifdef CONFIG_USB_GADGET_MUSBHSFC
104#define gadget_is_musbhsfc(g) !strcmp("musbhsfc_udc", (g)->name) 110#define gadget_is_musbhsfc(g) !strcmp("musbhsfc_udc", (g)->name)
@@ -177,5 +183,7 @@ static inline int usb_gadget_controller_number(struct usb_gadget *gadget)
177 return 0x17; 183 return 0x17;
178 else if (gadget_is_husb2dev(gadget)) 184 else if (gadget_is_husb2dev(gadget))
179 return 0x18; 185 return 0x18;
186 else if (gadget_is_fsl_usb2(gadget))
187 return 0x19;
180 return -ENOENT; 188 return -ENOENT;
181} 189}