[U-Boot] [PATCH v2 10/13] usb: gadget: add DWC3 USB gadget support

Vignesh R vigneshr at ti.com
Tue Jun 13 12:10:06 UTC 2017


DWC3 can operate in either device mode or host mode. Add an entry to
support DWC3 gadget.

Signed-off-by: Vignesh R <vigneshr at ti.com>
---
 drivers/usb/gadget/gadget_chips.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/usb/gadget/gadget_chips.h b/drivers/usb/gadget/gadget_chips.h
index f32070843149..9b0ad2e62b69 100644
--- a/drivers/usb/gadget/gadget_chips.h
+++ b/drivers/usb/gadget/gadget_chips.h
@@ -214,5 +214,7 @@ static inline int usb_gadget_controller_number(struct usb_gadget *gadget)
 		return 0x21;
 	else if (gadget_is_fotg210(gadget))
 		return 0x22;
+	else if (gadget_is_dwc3(gadget))
+		return 0x23;
 	return -ENOENT;
 }
-- 
2.13.0



More information about the U-Boot mailing list