projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4a3755
)
am33xx: board: init usb ether gadget for rndis support
author
Mugunthan V N
<mugunthanvnm@ti.com>
Thu, 17 Nov 2016 09:08:13 +0000
(14:38 +0530)
committer
Simon Glass
<sjg@chromium.org>
Mon, 9 Jan 2017 18:16:22 +0000
(11:16 -0700)
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>
arch/arm/mach-omap2/am33xx/board.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-omap2/am33xx/board.c
b/arch/arm/mach-omap2/am33xx/board.c
index 581c0ab518b2f88bf86a914e0c3202d63c376db5..8a90b3ba49dfe36e29efdde8f91acc74bb453eae 100644
(file)
--- 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;
}