mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-08 14:14:32 +00:00
e96bedf146
Add the MT8183 pumpkin board support. Signed-off-by: Fabien Parent <fparent@baylibre.com>
28 lines
496 B
C
28 lines
496 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
/*
|
|
* Copyright (C) 2020 BayLibre SAS
|
|
* Author: Fabien Parent <fparent@baylibre.com>
|
|
*/
|
|
|
|
#include <common.h>
|
|
#include <dm.h>
|
|
#include <net.h>
|
|
|
|
int board_init(void)
|
|
{
|
|
struct udevice *dev;
|
|
int ret;
|
|
|
|
if (CONFIG_IS_ENABLED(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;
|
|
}
|
|
}
|
|
|
|
if (CONFIG_IS_ENABLED(USB_ETHER))
|
|
usb_ether_init();
|
|
|
|
return 0;
|
|
}
|