diff options
Diffstat (limited to 'roms/u-boot/board/mediatek/mt8516')
-rw-r--r-- | roms/u-boot/board/mediatek/mt8516/Kconfig | 13 | ||||
-rw-r--r-- | roms/u-boot/board/mediatek/mt8516/MAINTAINERS | 6 | ||||
-rw-r--r-- | roms/u-boot/board/mediatek/mt8516/Makefile | 3 | ||||
-rw-r--r-- | roms/u-boot/board/mediatek/mt8516/mt8516_pumpkin.c | 32 |
4 files changed, 54 insertions, 0 deletions
diff --git a/roms/u-boot/board/mediatek/mt8516/Kconfig b/roms/u-boot/board/mediatek/mt8516/Kconfig new file mode 100644 index 000000000..a87d3872f --- /dev/null +++ b/roms/u-boot/board/mediatek/mt8516/Kconfig @@ -0,0 +1,13 @@ +if TARGET_MT8516 + +config SYS_BOARD + default "mt8516" + +config SYS_CONFIG_NAME + default "mt8516" + +config MTK_BROM_HEADER_INFO + string + default "media=emmc" + +endif diff --git a/roms/u-boot/board/mediatek/mt8516/MAINTAINERS b/roms/u-boot/board/mediatek/mt8516/MAINTAINERS new file mode 100644 index 000000000..2f0d8f646 --- /dev/null +++ b/roms/u-boot/board/mediatek/mt8516/MAINTAINERS @@ -0,0 +1,6 @@ +MT8516 Pumpkin +M: Fabien Parent <fparent@baylibre.com> +S: Maintained +F: board/mediatek/mt8516 +F: include/configs/mt8516.h +F: configs/mt8516_pumpkin_defconfig diff --git a/roms/u-boot/board/mediatek/mt8516/Makefile b/roms/u-boot/board/mediatek/mt8516/Makefile new file mode 100644 index 000000000..1d4815d13 --- /dev/null +++ b/roms/u-boot/board/mediatek/mt8516/Makefile @@ -0,0 +1,3 @@ +# SPDX-License-Identifier: GPL-2.0 + +obj-y += mt8516_pumpkin.o diff --git a/roms/u-boot/board/mediatek/mt8516/mt8516_pumpkin.c b/roms/u-boot/board/mediatek/mt8516/mt8516_pumpkin.c new file mode 100644 index 000000000..42f3863b9 --- /dev/null +++ b/roms/u-boot/board/mediatek/mt8516/mt8516_pumpkin.c @@ -0,0 +1,32 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) 2019 BayLibre SAS + */ + +#include <common.h> +#include <dm.h> +#include <net.h> + +int board_init(void) +{ + return 0; +} + +int board_late_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; +} |