blob: 64c0f5eaf0bc26a81853ec2bec2335feb6432f0f [file] [log] [blame]
Giulio Benetti931edc62020-02-18 20:02:55 +01001/* 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
Giulio Benetti931edc62020-02-18 20:02:55 +010014#define CONFIG_SYS_FSL_ERRATUM_ESDHC135 1
15#define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE 1
16
17#define PHYS_SDRAM 0x80000000
18#define PHYS_SDRAM_SIZE (32 * 1024 * 1024)
19
20#define DMAMEM_SZ_ALL (1 * 1024 * 1024)
21#define DMAMEM_BASE (PHYS_SDRAM + PHYS_SDRAM_SIZE - \
22 DMAMEM_SZ_ALL)
23
Giulio Benetti931edc62020-02-18 20:02:55 +010024/*
25 * Configuration of the external SDRAM memory
26 */
Giulio Benetti931edc62020-02-18 20:02:55 +010027
28/* For SPL */
29#ifdef CONFIG_SUPPORT_SPL
30#define CONFIG_SPL_STACK CONFIG_SYS_INIT_SP_ADDR
31#define CONFIG_SYS_SPL_LEN 0x00008000
32#define CONFIG_SYS_UBOOT_START 0x800023FD
33#endif
34/* For SPL ends */
35
36#endif /* __IMXRT1020_EVK_H */