blob: 8619fdde7fdbcc51dcc3d9a8f32048339f5622da [file] [log] [blame]
Ariel D'Alessandro93add532022-04-12 10:31:38 -03001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Copyright 2021 Collabora Ltd.
4 */
5
6#ifndef __IMX8MN_BSH_SMM_S2PRO_H
7#define __IMX8MN_BSH_SMM_S2PRO_H
8
9#include <configs/imx8mn_bsh_smm_s2_common.h>
10
11#define BOOT_TARGET_DEVICES(func) \
12 func(MMC, mmc, 0) \
13
14#include <config_distro_bootcmd.h>
15
16#define EMMCARGS \
17 "fastboot_partition_alias_all=" \
18 __stringify(CONFIG_FASTBOOT_FLASH_MMC_DEV) ".0:0\0" \
19 "fastboot_partition_alias_bootloader=" \
20 __stringify(CONFIG_FASTBOOT_FLASH_MMC_DEV) ".1:0\0" \
21 "emmc_dev=" __stringify(CONFIG_FASTBOOT_FLASH_MMC_DEV) "\0" \
22 "emmc_ack=1\0" \
23
24/* Initial environment variables */
Tom Rinic9edebe2022-12-04 10:03:50 -050025#define CFG_EXTRA_ENV_SETTINGS \
Ariel D'Alessandro93add532022-04-12 10:31:38 -030026 MEM_LAYOUT_ENV_SETTINGS \
27 EMMCARGS \
28 BOOTENV
29
30#define PHYS_SDRAM_SIZE SZ_512M
31
32/* USDHC */
Tom Rini376b88a2022-10-28 20:27:13 -040033#define CFG_SYS_FSL_ESDHC_ADDR 0
Ariel D'Alessandro93add532022-04-12 10:31:38 -030034
35#endif /* __IMX8MN_BSH_SMM_S2PRO_H */