sama5d27_som1_ek.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Configuration file for the SAMA5D27 SOM1 EK Board.
  4. *
  5. * Copyright (C) 2017 Microchip Corporation
  6. * Wenyou Yang <wenyou.yang@microchip.com>
  7. */
  8. #ifndef __CONFIG_H
  9. #define __CONFIG_H
  10. #include "at91-sama5_common.h"
  11. #undef CONFIG_SYS_AT91_MAIN_CLOCK
  12. #define CONFIG_SYS_AT91_MAIN_CLOCK 24000000 /* from 24 MHz crystal */
  13. /* SDRAM */
  14. #define CONFIG_SYS_SDRAM_BASE 0x20000000
  15. #define CONFIG_SYS_SDRAM_SIZE 0x8000000
  16. #ifdef CONFIG_SPL_BUILD
  17. #define CONFIG_SYS_INIT_SP_ADDR 0x218000
  18. #else
  19. #define CONFIG_SYS_INIT_SP_ADDR \
  20. (CONFIG_SYS_SDRAM_BASE + 16 * 1024 - GENERATED_GBL_DATA_SIZE)
  21. #endif
  22. #define CONFIG_SYS_LOAD_ADDR 0x22000000 /* load address */
  23. /* NAND flash */
  24. /* SPI flash */
  25. #undef CONFIG_BOOTCOMMAND
  26. #ifdef CONFIG_SD_BOOT
  27. /* bootstrap + u-boot + env in sd card */
  28. #define CONFIG_BOOTCOMMAND "fatload mmc " CONFIG_ENV_FAT_DEVICE_AND_PART " 0x21000000 at91-sama5d27_som1_ek.dtb; " \
  29. "fatload mmc " CONFIG_ENV_FAT_DEVICE_AND_PART " 0x22000000 zImage; " \
  30. "bootz 0x22000000 - 0x21000000"
  31. #endif
  32. /* SPL */
  33. #define CONFIG_SPL_MAX_SIZE 0x10000
  34. #define CONFIG_SPL_BSS_START_ADDR 0x20000000
  35. #define CONFIG_SPL_BSS_MAX_SIZE 0x80000
  36. #define CONFIG_SYS_SPL_MALLOC_START 0x20080000
  37. #define CONFIG_SYS_SPL_MALLOC_SIZE 0x80000
  38. #define CONFIG_SYS_MONITOR_LEN (512 << 10)
  39. #ifdef CONFIG_SD_BOOT
  40. #define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME "u-boot.img"
  41. #endif
  42. #endif