]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
am43xx: Add USB device boot support to SPL
authorTom Rini <trini@ti.com>
Thu, 6 Aug 2015 17:05:08 +0000 (22:35 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 11 Jan 2017 13:10:38 +0000 (14:10 +0100)
Add in code to initialize the DWC3 gadget controller so that we can do
RNDIS in SPL on these platforms.

Xilinx: Remove am43xx changes and add usb/common to Makefile compilation

Signed-off-by: Tom Rini <trini@ti.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
drivers/Makefile
drivers/usb/gadget/gadget_chips.h

index 761d0b3e85b4caee90e8aa798a81fcfd322c593d..dd42af246eb46b50d2e87808535812db3f00b7fd 100644 (file)
@@ -33,6 +33,9 @@ obj-$(CONFIG_SPL_ETH_SUPPORT) += net/
 obj-$(CONFIG_SPL_ETH_SUPPORT) += net/phy/
 obj-$(CONFIG_SPL_USBETH_SUPPORT) += net/phy/
 obj-$(CONFIG_SPL_MUSB_NEW_SUPPORT) += usb/musb-new/
+obj-$(CONFIG_USB_DWC3_GADGET) += usb/common/
+obj-$(CONFIG_USB_DWC3_GADGET) += usb/dwc3/
+obj-$(CONFIG_USB_DWC3_GADGET) += usb/gadget/udc/
 obj-$(CONFIG_SPL_USBETH_SUPPORT) += usb/gadget/
 obj-$(CONFIG_SPL_WATCHDOG_SUPPORT) += watchdog/
 obj-$(CONFIG_SPL_USB_HOST_SUPPORT) += usb/host/
index 973cd971ad19a0195dc8b6f18c9ab4fdcfcc5b3d..c09d30e0253cbd9d2373fbf7bbfb4a6c82de4ac6 100644 (file)
@@ -231,5 +231,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;
 }