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} " \
20 "rootfstype=${nandrootfstype}\0" \
21 "nandroot=ubi0:root rw ubi.mtd=nandrootfs\0" \
22 "nandrootfstype=ubifs rootwait\0" \
23 "nandboot=echo Booting from nand ...; " \
25 "nand read ${fdt_addr_r} nanddtb; " \
26 "nand read ${loadaddr} nandkernel; " \
27 "booti ${loadaddr} - ${fdt_addr_r}\0"
29 #define BOOTENV_DEV_NAND(devtypeu, devtypel, instance) \
30 "bootcmd_" #devtypel #instance "=" \
33 #define BOOTENV_DEV_NAME_NAND(devtypeu, devtypel, instance) \
34 #devtypel #instance " "
36 /* Initial environment variables */
37 #define CONFIG_EXTRA_ENV_SETTINGS \
38 MEM_LAYOUT_ENV_SETTINGS \
42 #define PHYS_SDRAM_SIZE SZ_256M
45 #define CONFIG_SYS_MAX_NAND_DEVICE 1
47 #define CONFIG_SYS_NAND_BASE 0x20000000
49 #endif /* __IMX8MN_BSH_SMM_S2_H */