summaryrefslogtreecommitdiff
path: root/board/mediatek
diff options
context:
space:
mode:
authorFabien Parent <fparent@baylibre.com>2021-02-15 19:21:12 +0100
committerTom Rini <trini@konsulko.com>2021-03-20 16:24:27 -0400
commite96bedf146bdb5ae980ab228165f5f06ef5a168d (patch)
treeab7d9411d00bb689bc763e181261be80561d4386 /board/mediatek
parent18380437c1475096a9d761f1d0ec86ab397edea1 (diff)
downloadu-boot-socfpga-e96bedf146bdb5ae980ab228165f5f06ef5a168d.tar.gz
board: Add MT8183 pumpkin board support
Add the MT8183 pumpkin board support. Signed-off-by: Fabien Parent <fparent@baylibre.com>
Diffstat (limited to 'board/mediatek')
-rw-r--r--board/mediatek/mt8183/Kconfig13
-rw-r--r--board/mediatek/mt8183/MAINTAINERS6
-rw-r--r--board/mediatek/mt8183/Makefile3
-rw-r--r--board/mediatek/mt8183/mt8183_pumpkin.c28
4 files changed, 50 insertions, 0 deletions
diff --git a/board/mediatek/mt8183/Kconfig b/board/mediatek/mt8183/Kconfig
new file mode 100644
index 0000000000..b75c3b8d80
--- /dev/null
+++ b/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/board/mediatek/mt8183/MAINTAINERS b/board/mediatek/mt8183/MAINTAINERS
new file mode 100644
index 0000000000..a49995e1bf
--- /dev/null
+++ b/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/board/mediatek/mt8183/Makefile b/board/mediatek/mt8183/Makefile
new file mode 100644
index 0000000000..90b5b72323
--- /dev/null
+++ b/board/mediatek/mt8183/Makefile
@@ -0,0 +1,3 @@
+# SPDX-License-Identifier: GPL-2.0
+
+obj-y += mt8183_pumpkin.o
diff --git a/board/mediatek/mt8183/mt8183_pumpkin.c b/board/mediatek/mt8183/mt8183_pumpkin.c
new file mode 100644
index 0000000000..db613ebdc4
--- /dev/null
+++ b/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;
+}