diff options
author | Marek Szyprowski <m.szyprowski@samsung.com> | 2015-03-03 17:32:11 +0100 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2015-04-14 05:48:12 +0200 |
commit | 16bece51c58a7758309918daecdc0c4bb45e271b (patch) | |
tree | b1bf48a2bf5ee9d636dd16076e583ab83be5a0be /drivers/usb/gadget/gadget_chips.h | |
parent | 5dc4538bf3fea0baf4ca2e4191e0e62991fbd779 (diff) | |
download | u-boot-imx-16bece51c58a7758309918daecdc0c4bb45e271b.zip u-boot-imx-16bece51c58a7758309918daecdc0c4bb45e271b.tar.gz u-boot-imx-16bece51c58a7758309918daecdc0c4bb45e271b.tar.bz2 |
usb: dwc3: gadget: add common endpoint configuration for dwc3 udc driver
This patch adds code to select standard, commonly used usb endpoint
configuration (ep1in-bulk, ep2out-bulk, ep3in-int) to dwc3 driver. This
ensures compatibility with old userspace and windows drivers, which
expects hardcoded endpoint numbers.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Diffstat (limited to 'drivers/usb/gadget/gadget_chips.h')
-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 cc94771..c859df2 100644 --- a/drivers/usb/gadget/gadget_chips.h +++ b/drivers/usb/gadget/gadget_chips.h @@ -156,6 +156,14 @@ #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 |