Message ID | 20161117090815.17226-5-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: > MUSB wrapper driver is bound as MISC device and underlying usb > devices are bind to usb drivers based on dr_mode, so probing the > MISC wrapper driver to register musb devices. > > Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com> > Reviewed-by: Tom Rini <trini@konsulko.com> > --- > arch/arm/cpu/armv7/am33xx/board.c | 7 +++++++ > 1 file changed, 7 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 fd4235e526..c3f50e9733 100644 --- a/arch/arm/cpu/armv7/am33xx/board.c +++ b/arch/arm/cpu/armv7/am33xx/board.c @@ -197,6 +197,13 @@ int arch_misc_init(void) musb_register(&otg1_plat, &otg1_board_data, (void *)USB1_OTG_BASE); #endif +#else + struct udevice *dev; + int ret; + + ret = uclass_first_device(UCLASS_MISC, &dev); + if (ret || !dev) + return ret; #endif return 0; }