blob: 37daf1c51b92f27a17a91a7ba97c068296a24300 [file] [log] [blame]
Fabien Parentbb4c5d62019-07-18 19:08:09 +02001// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 2019 BayLibre SAS
4 */
5
6#include <common.h>
Fabien Parentc2984eb2020-10-16 17:40:07 +02007#include <dm.h>
Fabien Parentbb4c5d62019-07-18 19:08:09 +02008
9int board_init(void)
10{
11 return 0;
12}
Fabien Parentc2984eb2020-10-16 17:40:07 +020013
14int board_late_init(void)
15{
16 struct udevice *dev;
17 int ret;
18
19 if (CONFIG_IS_ENABLED(USB_GADGET)) {
20 ret = uclass_get_device(UCLASS_USB_GADGET_GENERIC, 0, &dev);
21 if (ret) {
22 pr_err("%s: Cannot find USB device\n", __func__);
23 return ret;
24 }
25 }
26
27 return 0;
28}