summaryrefslogtreecommitdiff
path: root/board/mediatek
diff options
context:
space:
mode:
authorJulien Masson <[email protected]>2026-02-02 09:23:42 +0100
committerTom Rini <[email protected]>2026-02-03 18:13:54 -0600
commitede7198a37019266bfc4a992bdd22292196a97f9 (patch)
tree1368e9709e64ff993c85ae3d317fdb4a06d53a9f /board/mediatek
parent28a1ac87b843cf5c25d5f74a4ef5fa3abb0431d4 (diff)
board: mediatek: add MT8390 EVK board support
This adds support for the MT8390 EVK board with the following features enabled/tested: Boot, UART, Watchdog and MMC. MT8390 is based on MT8188. Signed-off-by: Julien Masson <[email protected]> Signed-off-by: Julien Stephan <[email protected]> Reviewed-by: Mattijs Korpershoek <[email protected]>
Diffstat (limited to 'board/mediatek')
-rw-r--r--board/mediatek/mt8390_evk/MAINTAINERS6
-rw-r--r--board/mediatek/mt8390_evk/Makefile3
-rw-r--r--board/mediatek/mt8390_evk/mt8390_evk.c34
3 files changed, 43 insertions, 0 deletions
diff --git a/board/mediatek/mt8390_evk/MAINTAINERS b/board/mediatek/mt8390_evk/MAINTAINERS
new file mode 100644
index 00000000000..d46b8b2e156
--- /dev/null
+++ b/board/mediatek/mt8390_evk/MAINTAINERS
@@ -0,0 +1,6 @@
+MT8390 EVK
+M: Julien Masson <[email protected]>
+M: Macpaul Lin <[email protected]>
+S: Maintained
+F: board/mediatek/mt8390_evk/
+F: configs/mt8390_evk_defconfig
diff --git a/board/mediatek/mt8390_evk/Makefile b/board/mediatek/mt8390_evk/Makefile
new file mode 100644
index 00000000000..a26d46838c4
--- /dev/null
+++ b/board/mediatek/mt8390_evk/Makefile
@@ -0,0 +1,3 @@
+# SPDX-License-Identifier: GPL-2.0
+
+obj-y += mt8390_evk.o
diff --git a/board/mediatek/mt8390_evk/mt8390_evk.c b/board/mediatek/mt8390_evk/mt8390_evk.c
new file mode 100644
index 00000000000..1ca40366a55
--- /dev/null
+++ b/board/mediatek/mt8390_evk/mt8390_evk.c
@@ -0,0 +1,34 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Copyright (C) 2026 BayLibre SAS
+ * Author: Julien Masson <[email protected]>
+ */
+
+#include <linux/types.h>
+#include <asm/armv8/mmu.h>
+
+int board_init(void)
+{
+ return 0;
+}
+
+static struct mm_region mt8390_evk_mem_map[] = {
+ {
+ /* DDR */
+ .virt = 0x40000000UL,
+ .phys = 0x40000000UL,
+ .size = 0x200000000UL,
+ .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 = mt8390_evk_mem_map;