]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
arm64: zynqmp: Start usb ethernet gadget automatically
authorMichal Simek <michal.simek@xilinx.com>
Fri, 5 Oct 2018 06:55:16 +0000 (08:55 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 12 Dec 2018 11:43:22 +0000 (12:43 +0100)
If only usb ethernet gadget is enabled it can start automatically.
If more gagdets are enabled usb ethernet gadget can be bind by
"bind /amba/usb1@ff9e0000/dwc3@fe300000 usb_ether" (on zcu100)

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
board/xilinx/zynqmp/zynqmp.c

index 9ff6e4ddaf3174576902b56c25f28f4d288a53f8..3356098cbbcd4dbd6bb34bf8e509fbb4b322a706 100644 (file)
@@ -544,6 +544,10 @@ int board_late_init(void)
        char *env_targets;
        int ret;
 
+#if defined(CONFIG_USB_ETHER) && !defined(CONFIG_USB_GADGET_DOWNLOAD)
+       usb_ether_init();
+#endif
+
        if (!(gd->flags & GD_FLG_ENV_DEFAULT)) {
                debug("Saved variables - Skipping\n");
                return 0;