mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-10-01 00:50:43 +09:00
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>
This commit is contained in:
parent
d4a3755368
commit
ba7916c72f
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user