Message ID | 20161117090815.17226-9-mugunthanvnm@ti.com |
---|---|
State | Accepted |
Delegated to: | Simon Glass |
Headers | show |
On 17 November 2016 at 02:08, Mugunthan V N <mugunthanvnm@ti.com> wrote: > 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/cpu/armv7/am33xx/board.c | 8 ++++++++ > 1 file changed, 8 insertions(+) Applied to u-boot-dm, thanks!
diff --git a/arch/arm/cpu/armv7/am33xx/board.c b/arch/arm/cpu/armv7/am33xx/board.c index 245a9575ec..48816c9809 100644 --- a/arch/arm/cpu/armv7/am33xx/board.c +++ b/arch/arm/cpu/armv7/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; }