1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (C) 2016 NXP Semiconductors
4 * Copyright (C) 2021 Fabio Estevam <festevam@denx.de>
6 * Configuration settings for the smegw01 board.
9 #ifndef __SMEGW01_CONFIG_H
10 #define __SMEGW01_CONFIG_H
12 #include "mx7_common.h"
15 #define PHYS_SDRAM_SIZE SZ_512M
18 #define CONFIG_SYS_FSL_ESDHC_ADDR 0
20 #define CONFIG_EXTRA_ENV_SETTINGS \
23 "fdtfile=imx7d-smegw01.dtb\0" \
24 "fdt_addr=0x83000000\0" \
25 "bootm_size=0x10000000\0" \
28 "mmcargs=setenv bootargs console=${console},${baudrate} " \
29 "root=/dev/mmcblk0p${mmcpart} rootwait rw\0" \
30 "loadimage=load mmc ${mmcdev}:${mmcpart} ${loadaddr} boot/${image}\0" \
31 "loadfdt=load mmc ${mmcdev}:${mmcpart} ${fdt_addr} boot/${fdtfile}\0" \
32 "mmcboot=echo Booting from mmc ...; " \
34 "if run loadfdt; then " \
35 "bootz ${loadaddr} - ${fdt_addr}; " \
38 /* Physical Memory Map */
39 #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
41 #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM
42 #define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
43 #define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE
45 #define CONFIG_SYS_INIT_SP_OFFSET \
46 (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
47 #define CONFIG_SYS_INIT_SP_ADDR \
48 (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)