fpga_def.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * Copyright (c) 2020, ARM Limited and Contributors. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #include <lib/utils_def.h>
  7. #ifndef FPGA_DEF_H
  8. #define FPGA_DEF_H
  9. /*
  10. * These are set to large values to account for images describing systems with
  11. * larger cluster configurations.
  12. *
  13. * For cases where the number of clusters, cores or threads is smaller than a
  14. * maximum value below, this does not affect the PSCI functionality as any PEs
  15. * that are present will still be indexed appropriately regardless of any empty
  16. * entries in the array used to represent the topology.
  17. */
  18. #define FPGA_MAX_CLUSTER_COUNT 4
  19. #define FPGA_MAX_CPUS_PER_CLUSTER 8
  20. #define FPGA_MAX_PE_PER_CPU 2
  21. #define FPGA_PRIMARY_CPU 0x0
  22. /*******************************************************************************
  23. * FPGA image memory map related constants
  24. ******************************************************************************/
  25. /*
  26. * UART base address, just for the crash console, as a fallback.
  27. * The actual console UART address is taken from the DT.
  28. */
  29. #define PLAT_FPGA_CRASH_UART_BASE 0x7ff80000
  30. #define FPGA_DEFAULT_TIMER_FREQUENCY 10000000
  31. #endif