Fabio Estevam | 2ef69ef | 2023-01-10 17:18:08 -0300 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
| 3 | * Copyright 2019 NXP |
| 4 | */ |
| 5 | |
| 6 | #ifndef __IMX8MM_PHG_H |
| 7 | #define __IMX8MM_PHG_H |
| 8 | |
| 9 | #include <linux/sizes.h> |
| 10 | #include <linux/stringify.h> |
| 11 | #include <asm/arch/imx-regs.h> |
| 12 | #include <config_distro_bootcmd.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_SPL_BUILD |
| 18 | /* malloc f used before GD_FLG_FULL_MALLOC_INIT set */ |
| 19 | #define CFG_MALLOC_F_ADDR 0x930000 |
| 20 | #endif |
| 21 | |
| 22 | #define BOOT_TARGET_DEVICES(func) \ |
| 23 | func(MMC, mmc, 1) \ |
| 24 | func(MMC, mmc, 2) \ |
| 25 | func(DHCP, dhcp, na) |
| 26 | |
| 27 | #include <config_distro_bootcmd.h> |
| 28 | |
| 29 | /* Initial environment variables */ |
| 30 | #define CFG_EXTRA_ENV_SETTINGS BOOTENV |
| 31 | |
| 32 | /* Link Definitions */ |
| 33 | |
| 34 | #define CFG_SYS_INIT_RAM_ADDR 0x40000000 |
| 35 | #define CFG_SYS_INIT_RAM_SIZE 0x200000 |
| 36 | |
| 37 | #define CFG_SYS_SDRAM_BASE 0x40000000 |
| 38 | #define PHYS_SDRAM 0x40000000 |
| 39 | #define PHYS_SDRAM_SIZE 0x80000000 /* 2GB DDR */ |
| 40 | |
| 41 | #endif |