aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/gadget_chips.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/gadget/gadget_chips.h')
-rw-r--r--drivers/usb/gadget/gadget_chips.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/usb/gadget/gadget_chips.h b/drivers/usb/gadget/gadget_chips.h
index d041b919e7b8..96f50e35819f 100644
--- a/drivers/usb/gadget/gadget_chips.h
+++ b/drivers/usb/gadget/gadget_chips.h
@@ -125,6 +125,13 @@
125#define gadget_is_mpc8272(g) 0 125#define gadget_is_mpc8272(g) 0
126#endif 126#endif
127 127
128#ifdef CONFIG_USB_GADGET_M66592
129#define gadget_is_m66592(g) !strcmp("m66592_udc", (g)->name)
130#else
131#define gadget_is_m66592(g) 0
132#endif
133
134
128// CONFIG_USB_GADGET_SX2 135// CONFIG_USB_GADGET_SX2
129// CONFIG_USB_GADGET_AU1X00 136// CONFIG_USB_GADGET_AU1X00
130// ... 137// ...
@@ -185,5 +192,7 @@ static inline int usb_gadget_controller_number(struct usb_gadget *gadget)
185 return 0x18; 192 return 0x18;
186 else if (gadget_is_fsl_usb2(gadget)) 193 else if (gadget_is_fsl_usb2(gadget))
187 return 0x19; 194 return 0x19;
195 else if (gadget_is_m66592(gadget))
196 return 0x20;
188 return -ENOENT; 197 return -ENOENT;
189} 198}