diff options
author | Michal Simek <michal.simek@xilinx.com> | 2018-10-05 08:55:16 +0200 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2018-11-30 10:45:26 +0100 |
commit | e615f39e7f686f7ffef3283c61751e92a5962606 (patch) | |
tree | d1de89a884f7e647fedb5343419310249ae5288b /board | |
parent | ee97a9996a4e18d52f57095232eb12134a722272 (diff) |
arm64: zynqmp: Start usb ethernet gadget automatically
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>
Diffstat (limited to 'board')
-rw-r--r-- | board/xilinx/zynqmp/zynqmp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c index 168cf5c14b..13c404b6ef 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; |