summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorWeijie Gao <[email protected]>2022-09-09 19:59:13 +0800
committerTom Rini <[email protected]>2022-09-23 15:09:15 -0400
commit389ba6986bf3559d26564e4a770cab0a7503fd2f (patch)
tree1783042825243a8ac0fc5be4396e68f1602b0f80 /include
parented86e4fba10d8dcb9f65bef7a3535d17cefc9cf8 (diff)
board: mediatek: add MT7986 reference boards
Add general board files based on MT7986 SoCs. MT7986 uses one mmc controller for booting from both SD and eMMC. Both MT7986A and MT7986B use the same pins for spi controller. Configs for various boot types: 1. mt7986_rfb_defconfig - SPI-NOR and SPI-NAND for MT7986A/B 2. mt7986a_bpir3_emmc_defconfig - eMMC for MT7986A only 3. mt7986a_bpir3_sd_defconfig - SD for MT7986A only Reviewed-by: Simon Glass <[email protected]> Signed-off-by: Weijie Gao <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/configs/mt7986.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/configs/mt7986.h b/include/configs/mt7986.h
new file mode 100644
index 00000000000..ccdd6abdb18
--- /dev/null
+++ b/include/configs/mt7986.h
@@ -0,0 +1,25 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * Configuration for MediaTek MT7986 SoC
+ *
+ * Copyright (C) 2022 MediaTek Inc.
+ * Author: Sam Shih <[email protected]>
+ */
+
+#ifndef __MT7986_H
+#define __MT7986_H
+
+#include <linux/sizes.h>
+
+#define CONFIG_SYS_NONCACHED_MEMORY SZ_1M
+
+/* Uboot definition */
+#define CONFIG_SYS_UBOOT_BASE CONFIG_SYS_TEXT_BASE
+
+/* SPL -> Uboot */
+#define CONFIG_SYS_UBOOT_START CONFIG_SYS_TEXT_BASE
+
+/* DRAM */
+#define CONFIG_SYS_SDRAM_BASE 0x40000000
+
+#endif