Ariel D'Alessandro | 93add53 | 2022-04-12 10:31:38 -0300 | [diff] [blame] | 1 | /* 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'Alessandro | 93add53 | 2022-04-12 10:31:38 -0300 | [diff] [blame] | 13 | #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'Alessandro | 93add53 | 2022-04-12 10:31:38 -0300 | [diff] [blame] | 17 | #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'Alessandro | 93add53 | 2022-04-12 10:31:38 -0300 | [diff] [blame] | 29 | |
| 30 | #define CONFIG_SYS_SDRAM_BASE 0x40000000 |
| 31 | #define PHYS_SDRAM 0x40000000 |
| 32 | |
Ariel D'Alessandro | 93add53 | 2022-04-12 10:31:38 -0300 | [diff] [blame] | 33 | #endif /* __IMX8MN_BSH_SMM_S2_COMMON_H */ |