Commit c9b65c9a330ba34515c829627458a51ae3fb715e

Authored by Mugunthan V N
Committed by Lokesh Vutla
1 parent 44a51112aa

am33xx: board: init usb ether gadget for rndis support

commit ba7916c72f198506602287839a6445d0e96ade8d upstream.

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>
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>

Showing 1 changed file with 8 additions and 0 deletions Side-by-side Diff

arch/arm/mach-omap2/am33xx/board.c
... ... @@ -219,6 +219,14 @@
219 219 ret = uclass_first_device(UCLASS_MISC, &dev);
220 220 if (ret || !dev)
221 221 return ret;
  222 +
  223 +#if defined(CONFIG_DM_ETH) && defined(CONFIG_USB_ETHER)
  224 + ret = usb_ether_init();
  225 + if (ret) {
  226 + error("USB ether init failed\n");
  227 + return ret;
  228 + }
  229 +#endif
222 230 #endif
223 231 return 0;
224 232 }