This adds support for the MT8370 EVK board with the following
features enabled/tested: Boot, UART, Watchdog and MMC.

MT8370 is based on MT8188.

Signed-off-by: Julien Stephan <[email protected]>
---
 board/mediatek/mt8370_evk/MAINTAINERS  |  6 ++++++
 board/mediatek/mt8370_evk/Makefile     |  3 +++
 board/mediatek/mt8370_evk/mt8370_evk.c | 34 ++++++++++++++++++++++++++++++++++
 3 files changed, 43 insertions(+)

diff --git a/board/mediatek/mt8370_evk/MAINTAINERS 
b/board/mediatek/mt8370_evk/MAINTAINERS
new file mode 100644
index 00000000000..ee2b5cd8291
--- /dev/null
+++ b/board/mediatek/mt8370_evk/MAINTAINERS
@@ -0,0 +1,6 @@
+MT8390 EVK
+M:     Julien Stephan <[email protected]>
+M:     Macpaul Lin <[email protected]>
+S:     Maintained
+F:     board/mediatek/mt8370_evk/
+F:     configs/mt8370_evk_defconfig
diff --git a/board/mediatek/mt8370_evk/Makefile 
b/board/mediatek/mt8370_evk/Makefile
new file mode 100644
index 00000000000..39b630f981d
--- /dev/null
+++ b/board/mediatek/mt8370_evk/Makefile
@@ -0,0 +1,3 @@
+# SPDX-License-Identifier:     GPL-2.0
+
+obj-y += mt8370_evk.o
diff --git a/board/mediatek/mt8370_evk/mt8370_evk.c 
b/board/mediatek/mt8370_evk/mt8370_evk.c
new file mode 100644
index 00000000000..58874a876ef
--- /dev/null
+++ b/board/mediatek/mt8370_evk/mt8370_evk.c
@@ -0,0 +1,34 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2026 BayLibre SAS
+ * Author: Julien Stephan <[email protected]>
+ */
+
+#include <linux/types.h>
+#include <asm/armv8/mmu.h>
+
+int board_init(void)
+{
+       return 0;
+}
+
+static struct mm_region mt8370_evk_mem_map[] = {
+       {
+               /* DDR */
+               .virt = 0x40000000UL,
+               .phys = 0x40000000UL,
+               .size = 0x100000000UL,
+               .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) | PTE_BLOCK_OUTER_SHARE,
+       }, {
+               .virt = 0x00000000UL,
+               .phys = 0x00000000UL,
+               .size = 0x20000000UL,
+               .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) |
+                        PTE_BLOCK_NON_SHARE |
+                        PTE_BLOCK_PXN | PTE_BLOCK_UXN
+       }, {
+               0,
+       }
+};
+
+struct mm_region *mem_map = mt8370_evk_mem_map;

---
base-commit: 64662b99c0ebc56c2773ca32a20aa055d25719f7
change-id: 20260204-add-mt8370-evk-board-6d2f94630b67
prerequisite-change-id: 20260122-add-genio-700-board-5621b428c04e:v2
prerequisite-patch-id: aa6329af5f80e12578b758eab20e3325303837ee

Best regards,
-- 
Julien Stephan <[email protected]>

Reply via email to