diff options
Diffstat (limited to 'roms/u-boot/board/mediatek/mt8183')
-rw-r--r-- | roms/u-boot/board/mediatek/mt8183/Kconfig | 13 | ||||
-rw-r--r-- | roms/u-boot/board/mediatek/mt8183/MAINTAINERS | 6 | ||||
-rw-r--r-- | roms/u-boot/board/mediatek/mt8183/Makefile | 3 | ||||
-rw-r--r-- | roms/u-boot/board/mediatek/mt8183/mt8183_pumpkin.c | 28 |
4 files changed, 50 insertions, 0 deletions
diff --git a/roms/u-boot/board/mediatek/mt8183/Kconfig b/roms/u-boot/board/mediatek/mt8183/Kconfig new file mode 100644 index 000000000..b75c3b8d8 --- /dev/null +++ b/roms/u-boot/board/mediatek/mt8183/Kconfig @@ -0,0 +1,13 @@ +if TARGET_MT8183 + +config SYS_BOARD + default "mt8183" + +config SYS_CONFIG_NAME + default "mt8183" + +config MTK_BROM_HEADER_INFO + string + default "media=emmc" + +endif diff --git a/roms/u-boot/board/mediatek/mt8183/MAINTAINERS b/roms/u-boot/board/mediatek/mt8183/MAINTAINERS new file mode 100644 index 000000000..a49995e1b --- /dev/null +++ b/roms/u-boot/board/mediatek/mt8183/MAINTAINERS @@ -0,0 +1,6 @@ +MT8183 Pumpkin +M: Fabien Parent <fparent@baylibre.com> +S: Maintained +F: board/mediatek/mt8183 +F: include/configs/mt8183.h +F: configs/mt8183_pumpkin_defconfig diff --git a/roms/u-boot/board/mediatek/mt8183/Makefile b/roms/u-boot/board/mediatek/mt8183/Makefile new file mode 100644 index 000000000..90b5b7232 --- /dev/null +++ b/roms/u-boot/board/mediatek/mt8183/Makefile @@ -0,0 +1,3 @@ +# SPDX-License-Identifier: GPL-2.0 + +obj-y += mt8183_pumpkin.o diff --git a/roms/u-boot/board/mediatek/mt8183/mt8183_pumpkin.c b/roms/u-boot/board/mediatek/mt8183/mt8183_pumpkin.c new file mode 100644 index 000000000..db613ebdc --- /dev/null +++ b/roms/u-boot/board/mediatek/mt8183/mt8183_pumpkin.c @@ -0,0 +1,28 @@ +// 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; +} |