1 // SPDX-License-Identifier: GPL-2.0 2 /* 3 * Copyright (C) 2019 BayLibre SAS 4 */ 5 6 #include <common.h> 7 #include <dm.h> 8 board_init(void)9int board_init(void) 10 { 11 return 0; 12 } 13 board_late_init(void)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 } 29