global: Convert CONFIG_LOADADDR to CONFIG_SYS_LOADADDR
[platform/kernel/u-boot.git] / include / configs / imxrt1020-evk.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright (C) 2020
4  * Author(s): Giulio Benetti <giulio.benetti@benettiengineering.com>
5  */
6
7 #ifndef __IMXRT1020_EVK_H
8 #define __IMXRT1020_EVK_H
9
10 #include <asm/arch/imx-regs.h>
11
12 #define CONFIG_SYS_INIT_SP_ADDR         0x20240000
13
14 #ifdef CONFIG_SUPPORT_SPL
15 #define CONFIG_SYS_LOAD_ADDR            0x20209000
16 #else
17 #define CONFIG_SYS_LOAD_ADDR            0x80000000
18 #endif
19
20 #define CONFIG_SYS_FSL_ERRATUM_ESDHC135         1
21 #define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE       1
22
23 #define PHYS_SDRAM                      0x80000000
24 #define PHYS_SDRAM_SIZE                 (32 * 1024 * 1024)
25
26 #define DMAMEM_SZ_ALL                   (1 * 1024 * 1024)
27 #define DMAMEM_BASE                     (PHYS_SDRAM + PHYS_SDRAM_SIZE - \
28                                          DMAMEM_SZ_ALL)
29
30 /*
31  * Configuration of the external SDRAM memory
32  */
33 #define CONFIG_SYS_MALLOC_LEN           (1 * 1024 * 1024)
34
35 /* For SPL */
36 #ifdef CONFIG_SUPPORT_SPL
37 #define CONFIG_SPL_STACK                CONFIG_SYS_INIT_SP_ADDR
38 #define CONFIG_SYS_SPL_LEN              0x00008000
39 #define CONFIG_SYS_UBOOT_START          0x800023FD
40 #endif
41 /* For SPL ends */
42
43 #endif /* __IMXRT1020_EVK_H */