gpc_reg.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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 TMR_TCD2_SHIFT 0
  73. #define TMC_TMR_SHIFT 10
  74. #define TRC1_TMC_SHIFT 20
  75. #define MIPI_PWR_REQ BIT(0)
  76. #define OTG1_PWR_REQ BIT(2)
  77. #define HSIOMIX_PWR_REQ BIT(4)
  78. #define DDRMIX_PWR_REQ BIT(5)
  79. #define GPUMIX_PWR_REQ BIT(7)
  80. #define DISPMIX_PWR_REQ BIT(10)
  81. #define DDRMIX_ADB400_SYNC BIT(2)
  82. #define HSIOMIX_ADB400_SYNC BIT(5)
  83. #define DISPMIX_ADB400_SYNC BIT(7)
  84. #define GPUMIX_ADB400_SYNC (0x5 << 9)
  85. #define DDRMIX_ADB400_ACK BIT(20)
  86. #define HSIOMIX_ADB400_ACK BIT(23)
  87. #define DISPMIX_ADB400_ACK BIT(25)
  88. #define GPUMIX_ADB400_ACK (0x5 << 27)
  89. #define MIPI_PGC 0xc00
  90. #define OTG1_PGC 0xc80
  91. #define HSIOMIX_PGC 0xd00
  92. #define DDRMIX_PGC 0xd40
  93. #define GPUMIX_PGC 0xdc0
  94. #define DISPMIX_PGC 0xe80
  95. #define IRQ_IMR_NUM U(4)
  96. #endif /* GPC_REG_H */