Skip to content
Snippets Groups Projects
Commit ba7916c7 authored by Mugunthan V N's avatar Mugunthan V N Committed by Simon Glass
Browse files

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: default avatarMugunthan V N <mugunthanvnm@ti.com>
Reviewed-by: default avatarTom Rini <trini@konsulko.com>
parent d4a37553
No related branches found
No related tags found
No related merge requests found
...@@ -204,6 +204,14 @@ int arch_misc_init(void) ...@@ -204,6 +204,14 @@ int arch_misc_init(void)
ret = uclass_first_device(UCLASS_MISC, &dev); ret = uclass_first_device(UCLASS_MISC, &dev);
if (ret || !dev) if (ret || !dev)
return ret; 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 #endif
return 0; return 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment