fvp_ve_def.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /*
  2. * Copyright (c) 2019, Arm Limited. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef FVP_VE_DEF_H
  7. #define FVP_VE_DEF_H
  8. #include <lib/utils_def.h>
  9. /* Default cluster count for FVP VE */
  10. #define FVP_VE_CLUSTER_COUNT U(1)
  11. /* Default number of CPUs per cluster on FVP VE */
  12. #define FVP_VE_MAX_CPUS_PER_CLUSTER U(1)
  13. /* Default number of threads per CPU on FVP VE */
  14. #define FVP_VE_MAX_PE_PER_CPU U(1)
  15. #define FVP_VE_CORE_COUNT U(1)
  16. #define FVP_VE_PRIMARY_CPU 0x0
  17. /*******************************************************************************
  18. * FVP memory map related constants
  19. ******************************************************************************/
  20. #define FLASH1_BASE 0x0c000000
  21. #define FLASH1_SIZE 0x04000000
  22. /* Aggregate of all devices in the first GB */
  23. #define DEVICE0_BASE 0x20000000
  24. #define DEVICE0_SIZE 0x0c200000
  25. #define NSRAM_BASE 0x2e000000
  26. #define NSRAM_SIZE 0x10000
  27. #define PCIE_EXP_BASE 0x40000000
  28. #define TZRNG_BASE 0x7fe60000
  29. #define ARCH_MODEL_VE 0x5
  30. /* FVP Power controller base address*/
  31. #define PWRC_BASE UL(0x1c100000)
  32. /* FVP SP804 timer frequency is 35 MHz*/
  33. #define SP804_TIMER_CLKMULT 1
  34. #define SP804_TIMER_CLKDIV 35
  35. /* SP810 controller. FVP specific flags */
  36. #define FVP_SP810_CTRL_TIM0_OV (1 << 16)
  37. #define FVP_SP810_CTRL_TIM1_OV (1 << 18)
  38. #define FVP_SP810_CTRL_TIM2_OV (1 << 20)
  39. #define FVP_SP810_CTRL_TIM3_OV (1 << 22)
  40. /*******************************************************************************
  41. * GIC-400 & interrupt handling related constants
  42. ******************************************************************************/
  43. /* VE compatible GIC memory map */
  44. #define VE_GICD_BASE 0x2c001000
  45. #ifdef ARM_CORTEX_A5
  46. #define VE_GICC_BASE 0x2c000100
  47. #else
  48. #define VE_GICC_BASE 0x2c002000
  49. #endif
  50. #define VE_GICH_BASE 0x2c004000
  51. #define VE_GICV_BASE 0x2c006000
  52. #define FVP_VE_IRQ_TZ_WDOG 56
  53. #define FVP_VE_IRQ_SEC_SYS_TIMER 57
  54. #endif /* FVP_VE_DEF_H */