1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright 2021 Collabora Ltd.
6 #ifndef __IMX8MN_BSH_SMM_S2_H
7 #define __IMX8MN_BSH_SMM_S2_H
9 #include <configs/imx8mn_bsh_smm_s2_common.h>
11 #define BOOT_TARGET_DEVICES(func) \
14 #include <config_distro_bootcmd.h>
17 "nandargs=setenv bootargs console=${console} " \
19 "mtdparts=${mtdparts} " \
21 "rootfstype=${nandrootfstype}\0" \
22 "nandroot=ubi0:root rw ubi.mtd=nandrootfs\0" \
23 "nandrootfstype=ubifs rootwait\0" \
24 "nandboot=echo Booting from nand ...; " \
26 "nand read ${fdt_addr_r} nanddtb; " \
27 "nand read ${loadaddr} nandkernel; " \
28 "booti ${loadaddr} - ${fdt_addr_r}\0"
30 #define BOOTENV_DEV_NAND(devtypeu, devtypel, instance) \
31 "bootcmd_" #devtypel #instance "=" \
34 #define BOOTENV_DEV_NAME_NAND(devtypeu, devtypel, instance) \
35 #devtypel #instance " "
37 /* Initial environment variables */
38 #define CONFIG_EXTRA_ENV_SETTINGS \
39 MEM_LAYOUT_ENV_SETTINGS \
43 #define PHYS_SDRAM_SIZE SZ_256M
47 #define CFG_SYS_NAND_BASE 0x20000000
49 #endif /* __IMX8MN_BSH_SMM_S2_H */