projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Kconfig: USB: Migrate CONFIG_USB_EHCI to CONFIG_USB_EHCI_HCD
[oweals/u-boot.git]
/
drivers
/
usb
/
gadget
/
gadget_chips.h
diff --git
a/drivers/usb/gadget/gadget_chips.h
b/drivers/usb/gadget/gadget_chips.h
index aa54b8547e73d2945a9b5d8df5486c87ec73f3bc..973cd971ad19a0195dc8b6f18c9ab4fdcfcc5b3d 100644
(file)
--- a/
drivers/usb/gadget/gadget_chips.h
+++ b/
drivers/usb/gadget/gadget_chips.h
@@
-11,7
+11,7
@@
* Some are available on 2.4 kernels; several are available, but not
* yet pushed in the 2.6 mainline tree.
*
* Some are available on 2.4 kernels; several are available, but not
* yet pushed in the 2.6 mainline tree.
*
- * Ported to U-
b
oot by: Thomas Smits <ts.smits@gmail.com> and
+ * Ported to U-
B
oot by: Thomas Smits <ts.smits@gmail.com> and
* Remy Bohmer <linux@bohmer.net>
*/
#ifdef CONFIG_USB_GADGET_NET2280
* Remy Bohmer <linux@bohmer.net>
*/
#ifdef CONFIG_USB_GADGET_NET2280
@@
-125,7
+125,7
@@
#endif
/* Mentor high speed "dual role" controller, in peripheral role */
#endif
/* Mentor high speed "dual role" controller, in peripheral role */
-#ifdef CONFIG_MUSB_GADGET
+#ifdef CONFIG_
USB_
MUSB_GADGET
#define gadget_is_musbhdrc(g) (!strcmp("musb-hdrc", (g)->name))
#else
#define gadget_is_musbhdrc(g) 0
#define gadget_is_musbhdrc(g) (!strcmp("musb-hdrc", (g)->name))
#else
#define gadget_is_musbhdrc(g) 0
@@
-144,10
+144,10
@@
#define gadget_is_m66592(g) 0
#endif
#define gadget_is_m66592(g) 0
#endif
-#ifdef CONFIG_
MV
_UDC
-#define gadget_is_
mv(g) (!strcmp("mv
_udc", (g)->name))
+#ifdef CONFIG_
CI
_UDC
+#define gadget_is_
ci(g) (!strcmp("ci
_udc", (g)->name))
#else
#else
-#define gadget_is_
mv
(g) 0
+#define gadget_is_
ci
(g) 0
#endif
#ifdef CONFIG_USB_GADGET_FOTG210
#endif
#ifdef CONFIG_USB_GADGET_FOTG210
@@
-156,6
+156,14
@@
#define gadget_is_fotg210(g) 0
#endif
#define gadget_is_fotg210(g) 0
#endif
+#ifdef CONFIG_USB_DWC3_GADGET
+#define gadget_is_dwc3(g) (!strcmp("dwc3-gadget", (g)->name))
+#else
+#define gadget_is_dwc3(g) 0
+#endif
+
+
+
/*
* CONFIG_USB_GADGET_SX2
* CONFIG_USB_GADGET_AU1X00
/*
* CONFIG_USB_GADGET_SX2
* CONFIG_USB_GADGET_AU1X00
@@
-219,7
+227,7
@@
static inline int usb_gadget_controller_number(struct usb_gadget *gadget)
return 0x19;
else if (gadget_is_m66592(gadget))
return 0x20;
return 0x19;
else if (gadget_is_m66592(gadget))
return 0x20;
- else if (gadget_is_
mv
(gadget))
+ else if (gadget_is_
ci
(gadget))
return 0x21;
else if (gadget_is_fotg210(gadget))
return 0x22;
return 0x21;
else if (gadget_is_fotg210(gadget))
return 0x22;