diff options
-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 aa80f0910720..2e3d6620d216 100644 --- a/drivers/usb/gadget/gadget_chips.h +++ b/drivers/usb/gadget/gadget_chips.h | |||
@@ -75,6 +75,12 @@ | |||
75 | #define gadget_is_pxa27x(g) 0 | 75 | #define gadget_is_pxa27x(g) 0 |
76 | #endif | 76 | #endif |
77 | 77 | ||
78 | #ifdef CONFIG_USB_GADGET_HUSB2DEV | ||
79 | #define gadget_is_husb2dev(g) !strcmp("husb2_udc", (g)->name) | ||
80 | #else | ||
81 | #define gadget_is_husb2dev(g) 0 | ||
82 | #endif | ||
83 | |||
78 | #ifdef CONFIG_USB_GADGET_S3C2410 | 84 | #ifdef CONFIG_USB_GADGET_S3C2410 |
79 | #define gadget_is_s3c2410(g) !strcmp("s3c2410_udc", (g)->name) | 85 | #define gadget_is_s3c2410(g) !strcmp("s3c2410_udc", (g)->name) |
80 | #else | 86 | #else |
@@ -169,5 +175,7 @@ static inline int usb_gadget_controller_number(struct usb_gadget *gadget) | |||
169 | return 0x16; | 175 | return 0x16; |
170 | else if (gadget_is_mpc8272(gadget)) | 176 | else if (gadget_is_mpc8272(gadget)) |
171 | return 0x17; | 177 | return 0x17; |
178 | else if (gadget_is_husb2dev(gadget)) | ||
179 | return 0x18; | ||
172 | return -ENOENT; | 180 | return -ENOENT; |
173 | } | 181 | } |