1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  *
3  * Copyright (C) 2019-2020 PHYTEC Messtechnik GmbH
4  * Author: Teresa Remmet <t.remmet@phytec.de>
5  */
6 
7 #ifndef __PHYCORE_IMX8MM_H
8 #define __PHYCORE_IMX8MM_H
9 
10 #include <linux/sizes.h>
11 #include <linux/stringify.h>
12 #include <asm/arch/imx-regs.h>
13 
14 #define CFG_SYS_UBOOT_BASE \
15 		(QSPI0_AMBA_BASE + CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR * 512)
16 
17 #ifdef CONFIG_XPL_BUILD
18 /* malloc f used before GD_FLG_FULL_MALLOC_INIT set */
19 #define CFG_MALLOC_F_ADDR		0x930000
20 /* For RAW image gives a error info not panic */
21 #endif
22 
23 /* Link Definitions */
24 
25 #define CFG_SYS_INIT_RAM_ADDR	0x40000000
26 #define CFG_SYS_INIT_RAM_SIZE	SZ_512K
27 
28 #define CFG_SYS_SDRAM_BASE		0x40000000
29 
30 #define PHYS_SDRAM			0x40000000
31 #define PHYS_SDRAM_SIZE                 SZ_2G /* 2GB DDR */
32 
33 #endif /* __PHYCORE_IMX8MM_H */
34