blob: 3a6b972d9ac12b95a2b3bbe8c51538314089e9b2 [file] [log] [blame]
Giulio Benetti6986d6b2020-01-10 15:51:48 +01001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Copyright (C) 2019
4 * Author(s): Giulio Benetti <giulio.benetti@benettiengineering.com>
5 */
6
7#ifndef __IMXRT1050_EVK_H
8#define __IMXRT1050_EVK_H
9
10#include <asm/arch/imx-regs.h>
11
12#define CONFIG_SYS_INIT_SP_ADDR 0x20280000
13
14#ifdef CONFIG_SUPPORT_SPL
15#define CONFIG_SYS_LOAD_ADDR 0x20209000
16#else
17#define CONFIG_SYS_LOAD_ADDR 0x80000000
18#define CONFIG_LOADADDR 0x80000000
19#endif
20
21#define CONFIG_SYS_FSL_ERRATUM_ESDHC135 1
22#define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE 1
23
24#define PHYS_SDRAM 0x80000000
25#define PHYS_SDRAM_SIZE (32 * 1024 * 1024)
26
27#define DMAMEM_SZ_ALL (1 * 1024 * 1024)
28#define DMAMEM_BASE (PHYS_SDRAM + PHYS_SDRAM_SIZE - \
29 DMAMEM_SZ_ALL)
30
31#define CONFIG_SYS_MMC_ENV_DEV 0 /* USDHC1 */
32
Giulio Benetti341ca4f2020-04-08 17:10:20 +020033#ifdef CONFIG_DM_VIDEO
34#define CONFIG_VIDEO_MXS
35#define CONFIG_VIDEO_LOGO
36#define CONFIG_SPLASH_SCREEN
37#define CONFIG_SPLASH_SCREEN_ALIGN
38#define CONFIG_BMP_16BPP
39#define CONFIG_VIDEO_BMP_RLE8
40#define CONFIG_VIDEO_BMP_LOGO
41
42#define CONFIG_EXTRA_ENV_SETTINGS \
43 "stdin=serial\0" \
44 "stdout=serial,vidconsole\0" \
45 "stderr=serial,vidconsole\0"
46#endif
47
Giulio Benetti6986d6b2020-01-10 15:51:48 +010048/*
49 * Configuration of the external SDRAM memory
50 */
51#define CONFIG_SYS_MALLOC_LEN (1 * 1024 * 1024)
52
53/* For SPL */
54#ifdef CONFIG_SUPPORT_SPL
55#define CONFIG_SPL_STACK CONFIG_SYS_INIT_SP_ADDR
56#define CONFIG_SYS_SPL_LEN 0x00008000
57#define CONFIG_SYS_UBOOT_START 0x800023FD
58#endif
59/* For SPL ends */
60
61#endif /* __IMXRT1050_EVK_H */