xilinx_versal.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Configuration for Xilinx Versal
  4. * (C) Copyright 2016 - 2018 Xilinx, Inc.
  5. * Michal Simek <michal.simek@xilinx.com>
  6. *
  7. * Based on Configuration for Xilinx ZynqMP
  8. */
  9. #ifndef __XILINX_VERSAL_H
  10. #define __XILINX_VERSAL_H
  11. #define CONFIG_REMAKE_ELF
  12. /* #define CONFIG_ARMV8_SWITCH_TO_EL1 */
  13. /* Generic Interrupt Controller Definitions */
  14. #define GICD_BASE 0xF9000000
  15. #define GICR_BASE 0xF9080000
  16. #define CONFIG_SYS_MEMTEST_SCRATCH 0xfffc0000
  17. #define CONFIG_SYS_MEMTEST_START 0
  18. #define CONFIG_SYS_MEMTEST_END 1000
  19. #define CONFIG_SYS_INIT_SP_ADDR CONFIG_SYS_TEXT_BASE
  20. /* Generic Timer Definitions - setup in EL3. Setup by ATF for other cases */
  21. #if CONFIG_COUNTER_FREQUENCY
  22. # define COUNTER_FREQUENCY CONFIG_COUNTER_FREQUENCY
  23. #endif
  24. /* Serial setup */
  25. #define CONFIG_ARM_DCC
  26. #define CONFIG_CPU_ARMV8
  27. #define CONFIG_SYS_BAUDRATE_TABLE \
  28. { 4800, 9600, 19200, 38400, 57600, 115200 }
  29. /* BOOTP options */
  30. #define CONFIG_BOOTP_BOOTFILESIZE
  31. #define CONFIG_BOOTP_MAY_FAIL
  32. #define CONFIG_IP_DEFRAG
  33. #define CONFIG_TFTP_BLOCKSIZE 4096
  34. /* Miscellaneous configurable options */
  35. #define CONFIG_SYS_LOAD_ADDR 0x8000000
  36. /* Monitor Command Prompt */
  37. /* Console I/O Buffer Size */
  38. #define CONFIG_SYS_CBSIZE 2048
  39. #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \
  40. sizeof(CONFIG_SYS_PROMPT) + 16)
  41. #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
  42. #define CONFIG_SYS_MAXARGS 64
  43. /* Ethernet driver */
  44. #if defined(CONFIG_ZYNQ_GEM)
  45. # define CONFIG_NET_MULTI
  46. # define CONFIG_SYS_FAULT_ECHO_LINK_DOWN
  47. # define PHY_ANEG_TIMEOUT 20000
  48. #endif
  49. #define CONFIG_SYS_BOOTM_LEN (60 * 1024 * 1024)
  50. #define CONFIG_CLOCKS
  51. #define ENV_MEM_LAYOUT_SETTINGS \
  52. "fdt_high=10000000\0" \
  53. "initrd_high=10000000\0" \
  54. "fdt_addr_r=0x40000000\0" \
  55. "pxefile_addr_r=0x10000000\0" \
  56. "kernel_addr_r=0x18000000\0" \
  57. "scriptaddr=0x02000000\0" \
  58. "ramdisk_addr_r=0x02100000\0"
  59. #define BOOT_TARGET_DEVICES(func) \
  60. func(PXE, pxe, na) \
  61. func(DHCP, dhcp, na)
  62. #include <config_distro_bootcmd.h>
  63. /* Initial environment variables */
  64. #ifndef CONFIG_EXTRA_ENV_SETTINGS
  65. #define CONFIG_EXTRA_ENV_SETTINGS \
  66. ENV_MEM_LAYOUT_SETTINGS \
  67. BOOTENV
  68. #endif
  69. #endif /* __XILINX_VERSAL_H */