summaryrefslogtreecommitdiff
path: root/board/warp7
diff options
context:
space:
mode:
authorKevin Hilman <khilman@baylibre.com>2016-12-16 21:08:10 (GMT)
committerStefano Babic <sbabic@denx.de>2017-01-02 16:11:10 (GMT)
commit25aaebdb123b1c59c95d5515a06f14537a870855 (patch)
treec414b6153d0b0206ed3ac231ab4de0aa2e5662d2 /board/warp7
parent5d3a28abe4a1fa17798049b084f7f7fcd2da2b40 (diff)
downloadu-boot-25aaebdb123b1c59c95d5515a06f14537a870855.tar.xz
ARM: imx7s-warp: enable USB gadget ethernet
Enable USB gadget ethernet by default to have networking capabilities. Tested using DHCP and TFTP to transfer kernel, DT, ramdisk. Cc: Fabio Estevam <festevam@gmail.com> Signed-off-by: Kevin Hilman <khilman@baylibre.com>
Diffstat (limited to 'board/warp7')
-rw-r--r--board/warp7/warp7.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/board/warp7/warp7.c b/board/warp7/warp7.c
index da9afb4..df8e9da 100644
--- a/board/warp7/warp7.c
+++ b/board/warp7/warp7.c
@@ -19,6 +19,7 @@
#include <mmc.h>
#include <asm/arch/crm_regs.h>
#include <usb.h>
+#include <netdev.h>
#include <power/pmic.h>
#include <power/pfuze3000_pmic.h>
#include "../freescale/common/pfuze.h"
@@ -138,6 +139,19 @@ int power_init_board(void)
}
#endif
+int board_eth_init(bd_t *bis)
+{
+ int ret = 0;
+
+#ifdef CONFIG_USB_ETHER
+ ret = usb_eth_initialize(bis);
+ if (ret < 0)
+ printf("Error %d registering USB ether.\n", ret);
+#endif
+
+ return ret;
+}
+
int board_init(void)
{
/* address of boot parameters */