juno_def.h 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. /*
  2. * Copyright (c) 2014-2020, ARM Limited and Contributors. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef JUNO_DEF_H
  7. #define JUNO_DEF_H
  8. #include <lib/utils_def.h>
  9. /******************************************************************************
  10. * Definition of platform soc id
  11. *****************************************************************************/
  12. #define JUNO_SOC_ID 1
  13. /*******************************************************************************
  14. * Juno memory map related constants
  15. ******************************************************************************/
  16. /* Board revisions */
  17. #define REV_JUNO_R0 U(0x1) /* Rev B */
  18. #define REV_JUNO_R1 U(0x2) /* Rev C */
  19. #define REV_JUNO_R2 U(0x3) /* Rev D */
  20. /* Bypass offset from start of NOR flash */
  21. #define BL1_ROM_BYPASS_OFFSET UL(0x03EC0000)
  22. #define EMMC_BASE UL(0x0c000000)
  23. #define EMMC_SIZE UL(0x04000000)
  24. #define PSRAM_BASE UL(0x14000000)
  25. #define PSRAM_SIZE UL(0x02000000)
  26. #define JUNO_SSC_VER_PART_NUM U(0x030)
  27. /*******************************************************************************
  28. * Juno topology related constants
  29. ******************************************************************************/
  30. #define JUNO_CLUSTER_COUNT U(2)
  31. #define JUNO_CLUSTER0_CORE_COUNT U(2)
  32. #define JUNO_CLUSTER1_CORE_COUNT U(4)
  33. /*******************************************************************************
  34. * TZC-400 related constants
  35. ******************************************************************************/
  36. #define TZC400_NSAID_CCI400 0 /* Note: Same as default NSAID!! */
  37. #define TZC400_NSAID_PCIE 1
  38. #define TZC400_NSAID_HDLCD0 2
  39. #define TZC400_NSAID_HDLCD1 3
  40. #define TZC400_NSAID_USB 4
  41. #define TZC400_NSAID_DMA330 5
  42. #define TZC400_NSAID_THINLINKS 6
  43. #define TZC400_NSAID_AP 9
  44. #define TZC400_NSAID_GPU 10
  45. #define TZC400_NSAID_SCP 11
  46. #define TZC400_NSAID_CORESIGHT 12
  47. /*******************************************************************************
  48. * TRNG related constants
  49. ******************************************************************************/
  50. #define TRNG_BASE UL(0x7FE60000)
  51. #define TRNG_NOUTPUTS 4
  52. #define TRNG_STATUS UL(0x10)
  53. #define TRNG_INTMASK UL(0x14)
  54. #define TRNG_CONFIG UL(0x18)
  55. #define TRNG_CONTROL UL(0x1C)
  56. #define TRNG_NBYTES 16 /* Number of bytes generated per round. */
  57. /*******************************************************************************
  58. * MMU-401 related constants
  59. ******************************************************************************/
  60. #define MMU401_SSD_OFFSET UL(0x4000)
  61. #define MMU401_DMA330_BASE UL(0x7fb00000)
  62. /*******************************************************************************
  63. * Interrupt handling constants
  64. ******************************************************************************/
  65. #define JUNO_IRQ_DMA_SMMU 126
  66. #define JUNO_IRQ_HDLCD0_SMMU 128
  67. #define JUNO_IRQ_HDLCD1_SMMU 130
  68. #define JUNO_IRQ_USB_SMMU 132
  69. #define JUNO_IRQ_THIN_LINKS_SMMU 134
  70. #define JUNO_IRQ_SEC_I2C 137
  71. #define JUNO_IRQ_GPU_SMMU_1 73
  72. #define JUNO_IRQ_ETR_SMMU 75
  73. /*******************************************************************************
  74. * Memprotect definitions
  75. ******************************************************************************/
  76. /* PSCI memory protect definitions:
  77. * This variable is stored in a non-secure flash because some ARM reference
  78. * platforms do not have secure NVRAM. Real systems that provided MEM_PROTECT
  79. * support must use a secure NVRAM to store the PSCI MEM_PROTECT definitions.
  80. */
  81. #define PLAT_ARM_MEM_PROT_ADDR (V2M_FLASH0_BASE + \
  82. V2M_FLASH0_SIZE - V2M_FLASH_BLOCK_SIZE)
  83. #endif /* JUNO_DEF_H */