blob: a371c5b3832c0f49152a41bf420d710344f09446 [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_S2_COMMON_H
7#define __IMX8MN_BSH_SMM_S2_COMMON_H
8
9#include <linux/sizes.h>
10#include <linux/stringify.h>
11#include <asm/arch/imx-regs.h>
12
Ariel D'Alessandro93add532022-04-12 10:31:38 -030013#define CONFIG_SYS_MONITOR_LEN SZ_512K
14#define CONFIG_SYS_UBOOT_BASE \
15 (QSPI0_AMBA_BASE + CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR * 512)
16
Ariel D'Alessandro93add532022-04-12 10:31:38 -030017#define MEM_LAYOUT_ENV_SETTINGS \
18 "scriptaddr=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
19 "kernel_addr_r=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
20 "ramdisk_addr_r=0x43800000\0" \
21 "fdt_addr_r=0x43000000\0" \
22 "fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0" \
23 "bootcmd_mfg=echo Running fastboot mode; fastboot usb 0\0" \
24
25/* Link Definitions */
26
27#define CONFIG_SYS_INIT_RAM_ADDR 0x40000000
28#define CONFIG_SYS_INIT_RAM_SIZE SZ_512K
Ariel D'Alessandro93add532022-04-12 10:31:38 -030029
30#define CONFIG_SYS_SDRAM_BASE 0x40000000
31#define PHYS_SDRAM 0x40000000
32
Ariel D'Alessandro93add532022-04-12 10:31:38 -030033#endif /* __IMX8MN_BSH_SMM_S2_COMMON_H */