diff options
author | mingming lee <mingming.lee@mediatek.com> | 2020-01-16 16:11:38 +0800 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-01-25 12:04:36 -0500 |
commit | e65016150e2b66dfee0521cb3b2d477694b341ef (patch) | |
tree | 93fd1881dfc14efbb9b996ed72cedb3f7702b259 /board/mediatek/mt8518 | |
parent | 7d017d607eaa12e8037d754dbe15cc35aca249ed (diff) |
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>
Diffstat (limited to 'board/mediatek/mt8518')
-rw-r--r-- | board/mediatek/mt8518/mt8518_ap1.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/board/mediatek/mt8518/mt8518_ap1.c b/board/mediatek/mt8518/mt8518_ap1.c index 9710907fe2..2ac7c6cd18 100644 --- a/board/mediatek/mt8518/mt8518_ap1.c +++ b/board/mediatek/mt8518/mt8518_ap1.c @@ -16,3 +16,21 @@ int board_init(void) debug("gd->fdt_blob is %p\n", gd->fdt_blob); 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; +} |