gpc_reg.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. /*
  2. * Copyright 2020 NXP
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef GPC_REG_H
  7. #define GPC_REG_H
  8. #define LPCR_A53_BSC 0x0
  9. #define LPCR_A53_BSC2 0x108
  10. #define LPCR_A53_AD 0x4
  11. #define LPCR_M4 0x8
  12. #define SLPCR 0x14
  13. #define MST_CPU_MAPPING 0x18
  14. #define MLPCR 0x20
  15. #define PGC_ACK_SEL_A53 0x24
  16. #define IMR1_CORE0_A53 0x30
  17. #define IMR1_CORE1_A53 0x40
  18. #define IMR1_CORE2_A53 0x1C0
  19. #define IMR1_CORE3_A53 0x1D0
  20. #define IMR1_CORE0_M4 0x50
  21. #define SLT0_CFG 0xB0
  22. #define GPC_PU_PWRHSK 0x1FC
  23. #define PGC_CPU_0_1_MAPPING 0xEC
  24. #define CPU_PGC_UP_TRG 0xF0
  25. #define PU_PGC_UP_TRG 0xF8
  26. #define CPU_PGC_DN_TRG 0xFC
  27. #define PU_PGC_DN_TRG 0x104
  28. #define LPS_CPU1 0x114
  29. #define A53_CORE0_PGC 0x800
  30. #define A53_PLAT_PGC 0x900
  31. #define PLAT_PGC_PCR 0x900
  32. #define NOC_PGC_PCR 0xa40
  33. #define PGC_SCU_TIMING 0x910
  34. #define MASK_DSM_TRIGGER_A53 BIT(31)
  35. #define IRQ_SRC_A53_WUP BIT(30)
  36. #define IRQ_SRC_A53_WUP_SHIFT 30
  37. #define IRQ_SRC_C1 BIT(29)
  38. #define IRQ_SRC_C0 BIT(28)
  39. #define IRQ_SRC_C3 BIT(23)
  40. #define IRQ_SRC_C2 BIT(22)
  41. #define CPU_CLOCK_ON_LPM BIT(14)
  42. #define A53_CLK_ON_LPM BIT(14)
  43. #define MASTER0_LPM_HSK BIT(6)
  44. #define MASTER1_LPM_HSK BIT(7)
  45. #define MASTER2_LPM_HSK BIT(8)
  46. #define L2PGE BIT(31)
  47. #define EN_L2_WFI_PDN BIT(5)
  48. #define EN_PLAT_PDN BIT(4)
  49. #define SLPCR_EN_DSM BIT(31)
  50. #define SLPCR_RBC_EN BIT(30)
  51. #define SLPCR_A53_FASTWUP_STOP_MODE BIT(17)
  52. #define SLPCR_A53_FASTWUP_WAIT_MODE BIT(16)
  53. #define SLPCR_VSTBY BIT(2)
  54. #define SLPCR_SBYOS BIT(1)
  55. #define SLPCR_BYPASS_PMIC_READY BIT(0)
  56. #define SLPCR_RBC_COUNT_SHIFT 24
  57. #define SLPCR_STBY_COUNT_SHFT 3
  58. #define A53_DUMMY_PDN_ACK BIT(15)
  59. #define A53_DUMMY_PUP_ACK BIT(31)
  60. #define A53_PLAT_PDN_ACK BIT(2)
  61. #define A53_PLAT_PUP_ACK BIT(18)
  62. #define NOC_PDN_SLT_CTRL BIT(10)
  63. #define NOC_PUP_SLT_CTRL BIT(11)
  64. #define NOC_PGC_PDN_ACK BIT(3)
  65. #define NOC_PGC_PUP_ACK BIT(19)
  66. #define PLAT_PUP_SLT_CTRL BIT(9)
  67. #define PLAT_PDN_SLT_CTRL BIT(8)
  68. #define SLT_PLAT_PDN BIT(8)
  69. #define SLT_PLAT_PUP BIT(9)
  70. #define MASTER1_MAPPING BIT(1)
  71. #define MASTER2_MAPPING BIT(2)
  72. #define MIPI_PWR_REQ BIT(0)
  73. #define PCIE_PWR_REQ BIT(1)
  74. #define OTG1_PWR_REQ BIT(2)
  75. #define OTG2_PWR_REQ BIT(3)
  76. #define HSIOMIX_PWR_REQ BIT(4)
  77. #define DDRMIX_PWR_REQ BIT(5)
  78. #define GPU2D_PWR_REQ BIT(6)
  79. #define GPUMIX_PWR_REQ BIT(7)
  80. #define VPUMIX_PWR_REQ BIT(8)
  81. #define GPU3D_PWR_REQ BIT(9)
  82. #define DISPMIX_PWR_REQ BIT(10)
  83. #define VPU_G1_PWR_REQ BIT(11)
  84. #define VPU_G2_PWR_REQ BIT(12)
  85. #define VPU_H1_PWR_REQ BIT(13)
  86. #define DDRMIX_ADB400_SYNC BIT(2)
  87. #define HSIOMIX_ADB400_SYNC (0x3 << 5)
  88. #define DISPMIX_ADB400_SYNC BIT(7)
  89. #define VPUMIX_ADB400_SYNC BIT(8)
  90. #define GPU3D_ADB400_SYNC BIT(9)
  91. #define GPU2D_ADB400_SYNC BIT(10)
  92. #define GPUMIX_ADB400_SYNC BIT(11)
  93. #define DDRMIX_ADB400_ACK BIT(20)
  94. #define HSIOMIX_ADB400_ACK (0x3 << 23)
  95. #define DISPMIX_ADB400_ACK BIT(25)
  96. #define VPUMIX_ADB400_ACK BIT(26)
  97. #define GPU3D_ADB400_ACK BIT(27)
  98. #define GPU2D_ADB400_ACK BIT(28)
  99. #define GPUMIX_ADB400_ACK BIT(29)
  100. #define MIPI_PGC 0xc00
  101. #define PCIE_PGC 0xc40
  102. #define OTG1_PGC 0xc80
  103. #define OTG2_PGC 0xcc0
  104. #define HSIOMIX_PGC 0xd00
  105. #define DDRMIX_PGC 0xd40
  106. #define GPU2D_PGC 0xd80
  107. #define GPUMIX_PGC 0xdc0
  108. #define VPUMIX_PGC 0xe00
  109. #define GPU3D_PGC 0xe40
  110. #define DISPMIX_PGC 0xe80
  111. #define VPU_G1_PGC 0xec0
  112. #define VPU_G2_PGC 0xf00
  113. #define VPU_H1_PGC 0xf40
  114. #define IRQ_IMR_NUM U(4)
  115. #endif /* GPC_REG_H */