diff options
Diffstat (limited to 'drivers/usb/gadget/gadget_chips.h')
-rw-r--r-- | drivers/usb/gadget/gadget_chips.h | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/drivers/usb/gadget/gadget_chips.h b/drivers/usb/gadget/gadget_chips.h index e511fec9f26d..5c2720d64ffa 100644 --- a/drivers/usb/gadget/gadget_chips.h +++ b/drivers/usb/gadget/gadget_chips.h | |||
@@ -96,7 +96,7 @@ | |||
96 | 96 | ||
97 | /* Mentor high speed "dual role" controller, in peripheral role */ | 97 | /* Mentor high speed "dual role" controller, in peripheral role */ |
98 | #ifdef CONFIG_USB_GADGET_MUSB_HDRC | 98 | #ifdef CONFIG_USB_GADGET_MUSB_HDRC |
99 | #define gadget_is_musbhdrc(g) !strcmp("musb_hdrc", (g)->name) | 99 | #define gadget_is_musbhdrc(g) !strcmp("musb-hdrc", (g)->name) |
100 | #else | 100 | #else |
101 | #define gadget_is_musbhdrc(g) 0 | 101 | #define gadget_is_musbhdrc(g) 0 |
102 | #endif | 102 | #endif |
@@ -120,10 +120,10 @@ | |||
120 | #define gadget_is_fsl_qe(g) 0 | 120 | #define gadget_is_fsl_qe(g) 0 |
121 | #endif | 121 | #endif |
122 | 122 | ||
123 | #ifdef CONFIG_USB_GADGET_CI13XXX | 123 | #ifdef CONFIG_USB_GADGET_CI13XXX_PCI |
124 | #define gadget_is_ci13xxx(g) (!strcmp("ci13xxx_udc", (g)->name)) | 124 | #define gadget_is_ci13xxx_pci(g) (!strcmp("ci13xxx_pci", (g)->name)) |
125 | #else | 125 | #else |
126 | #define gadget_is_ci13xxx(g) 0 | 126 | #define gadget_is_ci13xxx_pci(g) 0 |
127 | #endif | 127 | #endif |
128 | 128 | ||
129 | // CONFIG_USB_GADGET_SX2 | 129 | // CONFIG_USB_GADGET_SX2 |
@@ -142,6 +142,17 @@ | |||
142 | #define gadget_is_s3c_hsotg(g) 0 | 142 | #define gadget_is_s3c_hsotg(g) 0 |
143 | #endif | 143 | #endif |
144 | 144 | ||
145 | #ifdef CONFIG_USB_GADGET_EG20T | ||
146 | #define gadget_is_pch(g) (!strcmp("pch_udc", (g)->name)) | ||
147 | #else | ||
148 | #define gadget_is_pch(g) 0 | ||
149 | #endif | ||
150 | |||
151 | #ifdef CONFIG_USB_GADGET_CI13XXX_MSM | ||
152 | #define gadget_is_ci13xxx_msm(g) (!strcmp("ci13xxx_msm", (g)->name)) | ||
153 | #else | ||
154 | #define gadget_is_ci13xxx_msm(g) 0 | ||
155 | #endif | ||
145 | 156 | ||
146 | /** | 157 | /** |
147 | * usb_gadget_controller_number - support bcdDevice id convention | 158 | * usb_gadget_controller_number - support bcdDevice id convention |
@@ -192,7 +203,7 @@ static inline int usb_gadget_controller_number(struct usb_gadget *gadget) | |||
192 | return 0x21; | 203 | return 0x21; |
193 | else if (gadget_is_fsl_qe(gadget)) | 204 | else if (gadget_is_fsl_qe(gadget)) |
194 | return 0x22; | 205 | return 0x22; |
195 | else if (gadget_is_ci13xxx(gadget)) | 206 | else if (gadget_is_ci13xxx_pci(gadget)) |
196 | return 0x23; | 207 | return 0x23; |
197 | else if (gadget_is_langwell(gadget)) | 208 | else if (gadget_is_langwell(gadget)) |
198 | return 0x24; | 209 | return 0x24; |
@@ -200,6 +211,10 @@ static inline int usb_gadget_controller_number(struct usb_gadget *gadget) | |||
200 | return 0x25; | 211 | return 0x25; |
201 | else if (gadget_is_s3c_hsotg(gadget)) | 212 | else if (gadget_is_s3c_hsotg(gadget)) |
202 | return 0x26; | 213 | return 0x26; |
214 | else if (gadget_is_pch(gadget)) | ||
215 | return 0x27; | ||
216 | else if (gadget_is_ci13xxx_msm(gadget)) | ||
217 | return 0x28; | ||
203 | return -ENOENT; | 218 | return -ENOENT; |
204 | } | 219 | } |
205 | 220 | ||