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 CFG_SYS_FSL_ESDHC_ADDR 0
20 /* default to no extra bootparams, we need an empty define for stringification*/
21 #ifndef EXTRA_BOOTPARAMS
22 #define EXTRA_BOOTPARAMS
25 #define CFG_EXTRA_ENV_SETTINGS \
28 "fdtfile=imx7d-smegw01.dtb\0" \
29 "fdt_addr=0x83000000\0" \
30 "bootm_size=0x10000000\0" \
33 "mmcargs=setenv bootargs console=${console},${baudrate} " \
34 "root=/dev/mmcblk0p${mmcpart} rootwait rw " \
35 __stringify(EXTRA_BOOTPARAMS) "\0" \
37 "loadimage=load mmc ${mmcdev}:${mmcpart} ${loadaddr} boot/${image}\0" \
38 "loadfdt=load mmc ${mmcdev}:${mmcpart} ${fdt_addr} boot/${fdtfile}\0" \
39 "mmcboot=echo Booting from mmc ...; " \
41 "if run loadfdt; then " \
42 "if bootz ${loadaddr} - ${fdt_addr}; then " \
50 "altbootcmd=echo Performing rollback...; " \
51 "if test \"${mmcpart}\" = 1; then " \
52 "setenv mmcpart 2; " \
54 "setenv mmcpart 1; " \
55 "fi; setenv bootcount 0; setenv upgrade_available; setenv ustate 3; saveenv; " \
58 /* Physical Memory Map */
59 #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
61 #define CFG_SYS_SDRAM_BASE PHYS_SDRAM
62 #define CFG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
63 #define CFG_SYS_INIT_RAM_SIZE IRAM_SIZE