stm32f469-discovery.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (C) STMicroelectronics SA 2017
  4. * Author(s): Patrice CHOTARD, <patrice.chotard@st.com> for STMicroelectronics.
  5. */
  6. #ifndef __CONFIG_H
  7. #define __CONFIG_H
  8. #define CONFIG_SYS_FLASH_BASE 0x08000000
  9. #define CONFIG_SYS_INIT_SP_ADDR 0x10010000
  10. /*
  11. * Configuration of the external SDRAM memory
  12. */
  13. #define CONFIG_SYS_LOAD_ADDR 0x00400000
  14. #define CONFIG_LOADADDR 0x00400000
  15. #define CONFIG_SYS_MAX_FLASH_SECT 12
  16. #define CONFIG_SYS_MAX_FLASH_BANKS 2
  17. #define CONFIG_STM32_FLASH
  18. #define CONFIG_SYS_HZ_CLOCK 1000000 /* Timer is clocked at 1MHz */
  19. #define CONFIG_CMDLINE_TAG
  20. #define CONFIG_SETUP_MEMORY_TAGS
  21. #define CONFIG_INITRD_TAG
  22. #define CONFIG_REVISION_TAG
  23. #define CONFIG_SYS_CBSIZE 1024
  24. #define CONFIG_SYS_MALLOC_LEN (1 * 1024 * 1024)
  25. #define BOOT_TARGET_DEVICES(func) \
  26. func(MMC, mmc, 0)
  27. #include <config_distro_bootcmd.h>
  28. #define CONFIG_EXTRA_ENV_SETTINGS \
  29. "kernel_addr_r=0x00008000\0" \
  30. "fdtfile=stm32f469-disco.dtb\0" \
  31. "fdt_addr_r=0x00700000\0" \
  32. "scriptaddr=0x00800000\0" \
  33. "pxefile_addr_r=0x00800000\0" \
  34. "fdt_high=0xffffffffffffffff\0" \
  35. "initrd_high=0xffffffffffffffff\0" \
  36. "ramdisk_addr_r=0x00900000\0" \
  37. BOOTENV
  38. /*
  39. * Command line configuration.
  40. */
  41. #endif /* __CONFIG_H */