summaryrefslogtreecommitdiff
path: root/arch/arm/mach-omap2
diff options
context:
space:
mode:
authorMugunthan V N <mugunthanvnm@ti.com>2016-11-17 09:08:13 (GMT)
committerSimon Glass <sjg@chromium.org>2017-01-09 18:16:22 (GMT)
commitba7916c72f198506602287839a6445d0e96ade8d (patch)
tree06251dc2a6324dbeda277ac176d0997c43fe8811 /arch/arm/mach-omap2
parentd4a3755368ca3d99f0a2b58ced8f8ddd42a80822 (diff)
downloadu-boot-ba7916c72f198506602287839a6445d0e96ade8d.tar.xz
am33xx: board: init usb ether gadget for rndis support
Add usb ether gadget device with usb_ether_init() when CONFIG_DM_ETH and CONFIG_USB_ETHER are defined. Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r--arch/arm/mach-omap2/am33xx/board.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/am33xx/board.c b/arch/arm/mach-omap2/am33xx/board.c
index 581c0ab..8a90b3b 100644
--- a/arch/arm/mach-omap2/am33xx/board.c
+++ b/arch/arm/mach-omap2/am33xx/board.c
@@ -204,6 +204,14 @@ int arch_misc_init(void)
ret = uclass_first_device(UCLASS_MISC, &dev);
if (ret || !dev)
return ret;
+
+#if defined(CONFIG_DM_ETH) && defined(CONFIG_USB_ETHER)
+ ret = usb_ether_init();
+ if (ret) {
+ error("USB ether init failed\n");
+ return ret;
+ }
+#endif
#endif
return 0;
}