imxrt1020-evk.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (C) 2020
  4. * Author(s): Giulio Benetti <giulio.benetti@benettiengineering.com>
  5. */
  6. #ifndef __IMXRT1020_EVK_H
  7. #define __IMXRT1020_EVK_H
  8. #include <asm/arch/imx-regs.h>
  9. #define CONFIG_SYS_INIT_SP_ADDR 0x20240000
  10. #ifdef CONFIG_SUPPORT_SPL
  11. #define CONFIG_SYS_LOAD_ADDR 0x20209000
  12. #else
  13. #define CONFIG_SYS_LOAD_ADDR 0x80000000
  14. #define CONFIG_LOADADDR 0x80000000
  15. #endif
  16. #define CONFIG_SYS_FSL_ERRATUM_ESDHC135 1
  17. #define ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE 1
  18. #define PHYS_SDRAM 0x80000000
  19. #define PHYS_SDRAM_SIZE (32 * 1024 * 1024)
  20. #define DMAMEM_SZ_ALL (1 * 1024 * 1024)
  21. #define DMAMEM_BASE (PHYS_SDRAM + PHYS_SDRAM_SIZE - \
  22. DMAMEM_SZ_ALL)
  23. #define CONFIG_SYS_MMC_ENV_DEV 0 /* USDHC1 */
  24. /*
  25. * Configuration of the external SDRAM memory
  26. */
  27. #define CONFIG_SYS_MALLOC_LEN (1 * 1024 * 1024)
  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. #endif /* __IMXRT1020_EVK_H */