summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Jacques Hiblot <jjhiblot@ti.com>2018-08-09 17:17:40 +0300
committerMarek Vasut <marex@denx.de>2018-08-21 17:21:37 +0300
commitc73251eac199a54643ead1febde2db0b02970cc6 (patch)
tree31a007ef3b0dccc186f135752e5d39cd1c5a6553
parent1a35526e1d54a346e12435bee757bfe47093157d (diff)
downloadu-boot-c73251eac199a54643ead1febde2db0b02970cc6.tar.xz
usb: gadget: Add bcdDevice for the DWC3 USB Gadget Controller
Add an entry in usb_gadget_controller_number() for the DWC3 gadget controller. Without it, it is not possible to bind the USB Ethernet driver. Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
-rw-r--r--drivers/usb/gadget/gadget_chips.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/gadget/gadget_chips.h b/drivers/usb/gadget/gadget_chips.h
index b9b081999a..2c8f235d51 100644
--- a/drivers/usb/gadget/gadget_chips.h
+++ b/drivers/usb/gadget/gadget_chips.h
@@ -206,5 +206,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;
}