stm32h743-disco.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (C) 2017, STMicroelectronics - All Rights Reserved
  4. * Author(s): Patrice Chotard, <patrice.chotard@foss.st.com> for STMicroelectronics.
  5. */
  6. #ifndef __CONFIG_H
  7. #define __CONFIG_H
  8. #include <config.h>
  9. #include <linux/sizes.h>
  10. /* For booting Linux, use the first 16MB of memory */
  11. #define CONFIG_SYS_BOOTMAPSZ SZ_16M
  12. #define CONFIG_SYS_FLASH_BASE 0x08000000
  13. #define CONFIG_SYS_INIT_SP_ADDR 0x24040000
  14. /*
  15. * Configuration of the external SDRAM memory
  16. */
  17. #define CONFIG_SYS_LOAD_ADDR 0xD0400000
  18. #define CONFIG_LOADADDR 0xD0400000
  19. #define CONFIG_SYS_HZ_CLOCK 1000000
  20. #define CONFIG_CMDLINE_TAG
  21. #define CONFIG_SETUP_MEMORY_TAGS
  22. #define CONFIG_INITRD_TAG
  23. #define CONFIG_REVISION_TAG
  24. #define CONFIG_SYS_MAXARGS 16
  25. #define CONFIG_SYS_MALLOC_LEN (1 * 1024 * 1024)
  26. #define BOOT_TARGET_DEVICES(func) \
  27. func(MMC, mmc, 0)
  28. #include <config_distro_bootcmd.h>
  29. #define CONFIG_EXTRA_ENV_SETTINGS \
  30. "kernel_addr_r=0xD0008000\0" \
  31. "fdtfile=stm32h743i-disco.dtb\0" \
  32. "fdt_addr_r=0xD0408000\0" \
  33. "scriptaddr=0xD0418000\0" \
  34. "pxefile_addr_r=0xD0428000\0" \
  35. "ramdisk_addr_r=0xD0438000\0" \
  36. BOOTENV
  37. #endif /* __CONFIG_H */