1/* SPDX-License-Identifier: GPL-2.0+ */ 2/* 3 * Copyright (c) 2020 Engicam srl 4 * Copyright (c) 2020 Amarula Solutions(India) 5 */ 6 7#ifndef __IMX8MM_ICORE_MX8MM_H 8#define __IMX8MM_ICORE_MX8MM_H 9 10#include <linux/sizes.h> 11#include <asm/arch/imx-regs.h> 12 13#define CFG_SYS_UBOOT_BASE \ 14 (QSPI0_AMBA_BASE + CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR * 512) 15 16#ifdef CONFIG_SPL_BUILD 17/* malloc f used before GD_FLG_FULL_MALLOC_INIT set */ 18# define CFG_MALLOC_F_ADDR 0x930000 19/* For RAW image gives a error info not panic */ 20#endif /* CONFIG_SPL_BUILD */ 21 22#define BOOT_TARGET_DEVICES(func) \ 23 func(MMC, mmc, 2) \ 24 func(MMC, mmc, 0) 25#include <config_distro_bootcmd.h> 26 27#define ENV_MEM_LAYOUT_SETTINGS \ 28 "fdt_addr_r=0x44000000\0" \ 29 "kernel_addr_r=0x42000000\0" \ 30 "ramdisk_addr_r=0x46400000\0" \ 31 "scriptaddr=0x46000000\0" 32 33#define CFG_EXTRA_ENV_SETTINGS \ 34 ENV_MEM_LAYOUT_SETTINGS \ 35 "fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0" \ 36 "console=ttymxc1,115200\0" \ 37 BOOTENV 38 39/* Link Definitions */ 40 41#define CFG_SYS_INIT_RAM_ADDR 0x40000000 42#define CFG_SYS_INIT_RAM_SIZE SZ_2M 43 44#define CFG_SYS_SDRAM_BASE 0x40000000 45 46/* SDRAM configuration */ 47#define PHYS_SDRAM 0x40000000 48#define PHYS_SDRAM_SIZE SZ_2G /* 2GB DDR */ 49 50/* USDHC */ 51#define CFG_SYS_FSL_USDHC_NUM 2 52#define CFG_SYS_FSL_ESDHC_ADDR 0 53 54#endif /* __IMX8MM_ICORE_MX8MM_H */ 55