[U-Boot] [PATCH] arm64: zynqmp: Start usb ethernet gadget automatically

Michal Simek michal.simek at xilinx.com
Thu Nov 29 15:31:44 UTC 2018


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 at ff9e0000/dwc3 at fe300000 usb_ether" (on zcu100)

Signed-off-by: Michal Simek <michal.simek at xilinx.com>
---

 board/xilinx/zynqmp/zynqmp.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c
index 168cf5c14b45..13c404b6ef08 100644
--- a/board/xilinx/zynqmp/zynqmp.c
+++ b/board/xilinx/zynqmp/zynqmp.c
@@ -543,6 +543,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;
-- 
1.9.1



More information about the U-Boot mailing list