diff options
Diffstat (limited to 'drivers/usb/gadget/gadget_chips.h')
-rw-r--r-- | drivers/usb/gadget/gadget_chips.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/gadget/gadget_chips.h b/drivers/usb/gadget/gadget_chips.h index f3a83cd0ef50..a8855d0b7f3b 100644 --- a/drivers/usb/gadget/gadget_chips.h +++ b/drivers/usb/gadget/gadget_chips.h | |||
@@ -31,6 +31,7 @@ | |||
31 | #define gadget_is_ci13xxx_msm(g) (!strcmp("ci13xxx_msm", (g)->name)) | 31 | #define gadget_is_ci13xxx_msm(g) (!strcmp("ci13xxx_msm", (g)->name)) |
32 | #define gadget_is_ci13xxx_pci(g) (!strcmp("ci13xxx_pci", (g)->name)) | 32 | #define gadget_is_ci13xxx_pci(g) (!strcmp("ci13xxx_pci", (g)->name)) |
33 | #define gadget_is_dummy(g) (!strcmp("dummy_udc", (g)->name)) | 33 | #define gadget_is_dummy(g) (!strcmp("dummy_udc", (g)->name)) |
34 | #define gadget_is_dwc3(g) (!strcmp("dwc3-gadget", (g)->name)) | ||
34 | #define gadget_is_fsl_qe(g) (!strcmp("fsl_qe_udc", (g)->name)) | 35 | #define gadget_is_fsl_qe(g) (!strcmp("fsl_qe_udc", (g)->name)) |
35 | #define gadget_is_fsl_usb2(g) (!strcmp("fsl-usb2-udc", (g)->name)) | 36 | #define gadget_is_fsl_usb2(g) (!strcmp("fsl-usb2-udc", (g)->name)) |
36 | #define gadget_is_goku(g) (!strcmp("goku_udc", (g)->name)) | 37 | #define gadget_is_goku(g) (!strcmp("goku_udc", (g)->name)) |
@@ -115,6 +116,8 @@ static inline int usb_gadget_controller_number(struct usb_gadget *gadget) | |||
115 | return 0x30; | 116 | return 0x30; |
116 | else if (gadget_is_net2272(gadget)) | 117 | else if (gadget_is_net2272(gadget)) |
117 | return 0x31; | 118 | return 0x31; |
119 | else if (gadget_is_dwc3(gadget)) | ||
120 | return 0x32; | ||
118 | 121 | ||
119 | return -ENOENT; | 122 | return -ENOENT; |
120 | } | 123 | } |