aboutsummaryrefslogtreecommitdiffstats
path: root/include/configs
diff options
context:
space:
mode:
authorWeijie Gao <weijie.gao@mediatek.com>2022-09-09 19:59:16 +0800
committerTom Rini <trini@konsulko.com>2022-09-23 15:09:15 -0400
commite053ccf6ef45c0d803d4435d1f3e7fca6e14981e (patch)
treecf7d870cf1e4cb7fd74d38a9b36dd5b6f19cdf57 /include/configs
parent389ba6986bf3559d26564e4a770cab0a7503fd2f (diff)
downloadu-boot-e053ccf6ef45c0d803d4435d1f3e7fca6e14981e.tar.gz
board: mediatek: add MT7981 reference boards
This patch adds general board files based on MT7981 SoCs. MT7981 uses one mmc controller for booting from both SD and eMMC, and the pins of mmc controller are also shared with spi controller. So three configs are need for these boot types: 1. mt7981_rfb_defconfig - SPI-NOR and SPI-NAND 2. mt7981_emmc_rfb_defconfig - eMMC only 3. mt7981_sd_rfb_defconfig - SD only Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
Diffstat (limited to 'include/configs')
-rw-r--r--include/configs/mt7981.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/configs/mt7981.h b/include/configs/mt7981.h
new file mode 100644
index 00000000000..01ad3096088
--- /dev/null
+++ b/include/configs/mt7981.h
@@ -0,0 +1,25 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * Configuration for MediaTek MT7981 SoC
+ *
+ * Copyright (C) 2022 MediaTek Inc.
+ * Author: Sam Shih <sam.shih@mediatek.com>
+ */
+
+#ifndef __MT7981_H
+#define __MT7981_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