stm32f429-discovery.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * (C) Copyright 2015
  4. * Kamil Lulko, <kamil.lulko@gmail.com>
  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 0x90400000
  14. #define CONFIG_LOADADDR 0x90400000
  15. #define CONFIG_SYS_MAX_FLASH_SECT 12
  16. #define CONFIG_SYS_MAX_FLASH_BANKS 2
  17. #define CONFIG_RED_LED 110
  18. #define CONFIG_GREEN_LED 109
  19. #define CONFIG_STM32_FLASH
  20. #define CONFIG_SYS_HZ_CLOCK 1000000 /* Timer is clocked at 1MHz */
  21. #define CONFIG_CMDLINE_TAG
  22. #define CONFIG_SETUP_MEMORY_TAGS
  23. #define CONFIG_INITRD_TAG
  24. #define CONFIG_REVISION_TAG
  25. #define CONFIG_SYS_CBSIZE 1024
  26. #define CONFIG_SYS_MALLOC_LEN (2 << 20)
  27. #define CONFIG_BOOTCOMMAND \
  28. "run bootcmd_romfs"
  29. #define CONFIG_EXTRA_ENV_SETTINGS \
  30. "bootargs_romfs=uclinux.physaddr=0x08180000 root=/dev/mtdblock0\0" \
  31. "bootcmd_romfs=setenv bootargs ${bootargs} ${bootargs_romfs};" \
  32. "bootm 0x08044000 - 0x08042000\0"
  33. /*
  34. * Command line configuration.
  35. */
  36. #endif /* __CONFIG_H */