Prepare v2023.10
[platform/kernel/u-boot.git] / include / configs / mt7623.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Configuration for MediaTek MT7623 SoC
4  *
5  * Copyright (C) 2018 MediaTek Inc.
6  * Author: Weijie Gao <weijie.gao@mediatek.com>
7  */
8
9 #ifndef __MT7623_H
10 #define __MT7623_H
11
12 #include <linux/sizes.h>
13
14 /* MMC */
15 #define MMC_SUPPORTS_TUNING
16
17 /* DRAM */
18 #define CFG_SYS_SDRAM_BASE              0x80000000
19
20 /* This is needed for kernel booting */
21 #define FDT_HIGH                        "0xac000000"
22
23 #define ENV_MEM_LAYOUT_SETTINGS                         \
24         "fdt_high=" FDT_HIGH "\0"                       \
25         "kernel_addr_r=0x84000000\0"                    \
26         "fdt_addr_r=" FDT_HIGH "\0"                     \
27         "fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0"
28
29 #ifdef CONFIG_DISTRO_DEFAULTS
30
31 #define BOOT_TARGET_DEVICES(func)       \
32                 func(MMC, mmc, 1)
33
34 #include <config_distro_bootcmd.h>
35
36 /* Extra environment variables */
37 #define CFG_EXTRA_ENV_SETTINGS  \
38         ENV_MEM_LAYOUT_SETTINGS         \
39         BOOTENV
40
41 #endif /* ifdef CONFIG_DISTRO_DEFAULTS*/
42
43 #endif