1 /* SPDX-License-Identifier: GPL-2.0+ */ 2 /* 3 * Copyright 2020 Compass Electronics Group, LLC 4 */ 5 6 #ifndef __IMX8MN_BEACON_H 7 #define __IMX8MN_BEACON_H 8 9 #include <linux/sizes.h> 10 #include <asm/arch/imx-regs.h> 11 12 #define CFG_SYS_UBOOT_BASE \ 13 (QSPI0_AMBA_BASE + CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR * 512) 14 15 /* Link Definitions */ 16 17 #define CFG_SYS_INIT_RAM_ADDR 0x40000000 18 #define CFG_SYS_INIT_RAM_SIZE 0x200000 19 20 #define CFG_SYS_SDRAM_BASE 0x40000000 21 #define PHYS_SDRAM 0x40000000 22 #if IS_ENABLED(CONFIG_IMX8MN_BEACON_2GB_LPDDR) 23 #define PHYS_SDRAM_SIZE 0x80000000 /* 2GB DDR */ 24 #else 25 #define PHYS_SDRAM_SIZE 0x40000000 /* 1GB DDR */ 26 #endif 27 28 #endif 29