gpc_reg.h 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  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 0x180
  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 0x44
  18. #define IMR1_CORE2_A53 0x194
  19. #define IMR1_CORE3_A53 0x1A8
  20. #define IMR1_CORE0_M4 0x58
  21. #define SLT0_CFG 0x200
  22. #define GPC_PU_PWRHSK 0x190
  23. #define PGC_CPU_0_1_MAPPING 0x1CC
  24. #define CPU_PGC_UP_TRG 0xD0
  25. #define PU_PGC_UP_TRG 0xD8
  26. #define CPU_PGC_DN_TRG 0xDC
  27. #define PU_PGC_DN_TRG 0xE4
  28. #define LPS_CPU1 0xEC
  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(30)
  59. #define A53_DUMMY_PUP_ACK BIT(31)
  60. #define A53_PLAT_PDN_ACK BIT(8)
  61. #define A53_PLAT_PUP_ACK BIT(9)
  62. #define NOC_PDN_SLT_CTRL BIT(12)
  63. #define NOC_PUP_SLT_CTRL BIT(13)
  64. #define NOC_PGC_PDN_ACK BIT(12)
  65. #define NOC_PGC_PUP_ACK BIT(13)
  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 TMR_TCD2_SHIFT 0
  73. #define TMC_TMR_SHIFT 10
  74. #define TRC1_TMC_SHIFT 20
  75. #define MIPI_PHY1_PWR_REQ BIT(0)
  76. #define PCIE_PHY_PWR_REQ BIT(1)
  77. #define USB1_PHY_PWR_REQ BIT(2)
  78. #define USB2_PHY_PWR_REQ BIT(3)
  79. #define MLMIX_PWR_REQ BIT(4)
  80. #define AUDIOMIX_PWR_REQ BIT(5)
  81. #define GPU2D_PWR_REQ BIT(6)
  82. #define GPUMIX_PWR_REQ BIT(7)
  83. #define VPUMIX_PWR_REQ BIT(8)
  84. #define GPU3D_PWR_REQ BIT(9)
  85. #define MEDIAMIX_PWR_REQ BIT(10)
  86. #define VPU_G1_PWR_REQ BIT(11)
  87. #define VPU_G2_PWR_REQ BIT(12)
  88. #define VPU_H1_PWR_REQ BIT(13)
  89. #define HDMIMIX_PWR_REQ BIT(14)
  90. #define HDMI_PHY_PWR_REQ BIT(15)
  91. #define MIPI_PHY2_PWR_REQ BIT(16)
  92. #define HSIOMIX_PWR_REQ BIT(17)
  93. #define MEDIAMIX_ISPDWP_PWR_REQ BIT(18)
  94. #define DDRMIX_PWR_REQ BIT(19)
  95. #define AUDIOMIX_ADB400_SYNC (BIT(4) | BIT(15))
  96. #define MLMIX_ADB400_SYNC (BIT(7) | BIT(8))
  97. #define GPUMIX_ADB400_SYNC BIT(9)
  98. #define VPUMIX_ADB400_SYNC BIT(10)
  99. #define DDRMIX_ADB400_SYNC BIT(11)
  100. #define HSIOMIX_ADB400_SYNC BIT(12)
  101. #define HDMIMIX_ADB400_SYNC BIT(13)
  102. #define MEDIAMIX_ADB400_SYNC BIT(14)
  103. #define AUDIOMIX_ADB400_ACK (BIT(20) | BIT(31))
  104. #define MLMIX_ADB400_ACK (BIT(23) | BIT(24))
  105. #define GPUMIX_ADB400_ACK BIT(25)
  106. #define VPUMIX_ADB400_ACK BIT(26)
  107. #define DDRMIX_ADB400_ACK BIT(27)
  108. #define HSIOMIX_ADB400_ACK BIT(28)
  109. #define HDMIMIX_ADB400_ACK BIT(29)
  110. #define MEDIAMIX_ADB400_ACK BIT(30)
  111. #define MIPI_PHY1_PGC 0xb00
  112. #define PCIE_PHY_PGC 0xb40
  113. #define USB1_PHY_PGC 0xb80
  114. #define USB2_PHY_PGC 0xbc0
  115. #define MLMIX_PGC 0xc00
  116. #define AUDIOMIX_PGC 0xc40
  117. #define GPU2D_PGC 0xc80
  118. #define GPUMIX_PGC 0xcc0
  119. #define VPUMIX_PGC 0xd00
  120. #define GPU3D_PGC 0xd40
  121. #define MEDIAMIX_PGC 0xd80
  122. #define VPU_G1_PGC 0xdc0
  123. #define VPU_G2_PGC 0xe00
  124. #define VPU_H1_PGC 0xe40
  125. #define HDMIMIX_PGC 0xe80
  126. #define HDMI_PHY_PGC 0xec0
  127. #define MIPI_PHY2_PGC 0xf00
  128. #define HSIOMIX_PGC 0xf40
  129. #define MEDIAMIX_ISPDWP_PGC 0xf80
  130. #define DDRMIX_PGC 0xfc0
  131. #define IRQ_IMR_NUM U(5)
  132. #endif /* GPC_REG_H */