sama7g5ek.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Configuration file for the SAMA7G5EK Board.
  4. *
  5. * Copyright (C) 2020 Microchip Corporation
  6. * Eugen Hristev <eugen.hristev@microchip.com>
  7. */
  8. #ifndef __CONFIG_H
  9. #define __CONFIG_H
  10. #define CONFIG_SYS_AT91_SLOW_CLOCK 32768
  11. #define CONFIG_SYS_AT91_MAIN_CLOCK 24000000 /* from 24 MHz crystal */
  12. #define CONFIG_SYS_BOOTM_LEN SZ_32M
  13. /* SDRAM */
  14. #define CONFIG_SYS_SDRAM_BASE 0x60000000
  15. #define CONFIG_SYS_SDRAM_SIZE 0x20000000
  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 + CONFIG_SYS_MALLOC_F_LEN - \
  21. GENERATED_GBL_DATA_SIZE)
  22. #endif
  23. #define CONFIG_SYS_LOAD_ADDR 0x62000000 /* load address */
  24. #undef CONFIG_BOOTCOMMAND
  25. #ifdef CONFIG_SD_BOOT
  26. /* u-boot env in sd/mmc card */
  27. /* bootstrap + u-boot + env in sd card */
  28. #define CONFIG_BOOTCOMMAND "fatload mmc " CONFIG_ENV_FAT_DEVICE_AND_PART " 0x61000000 at91-sama7g5ek.dtb; " \
  29. "fatload mmc " CONFIG_ENV_FAT_DEVICE_AND_PART " 0x62000000 zImage; " \
  30. "bootz 0x62000000 - 0x61000000"
  31. #endif
  32. /* Size of malloc() pool */
  33. #define CONFIG_SYS_MALLOC_LEN (4 * 1024 * 1024)
  34. #define CONFIG_ARP_TIMEOUT 200
  35. #define CONFIG_NET_RETRY_COUNT 50
  36. #endif