mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-28 23:23:30 +08:00
ARM: Mediatek: Add board_late_init to init usb gadget driver
Add board_late_init function to init usb gadget driver for mt8518 Signed-off-by: mingming lee <mingming.lee@mediatek.com>
This commit is contained in:
parent
7d017d607e
commit
e65016150e
@ -16,3 +16,21 @@ int board_init(void)
|
|||||||
debug("gd->fdt_blob is %p\n", gd->fdt_blob);
|
debug("gd->fdt_blob is %p\n", gd->fdt_blob);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int board_late_init(void)
|
||||||
|
{
|
||||||
|
#ifdef CONFIG_USB_GADGET
|
||||||
|
struct udevice *dev;
|
||||||
|
int ret;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_USB_GADGET
|
||||||
|
ret = uclass_get_device(UCLASS_USB_GADGET_GENERIC, 0, &dev);
|
||||||
|
if (ret) {
|
||||||
|
pr_err("%s: Cannot find USB device\n", __func__);
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user