gpc_reg.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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 DDRMIX_PWR_REQ BIT(5)
  67. #define DDRMIX_ADB400_SYNC BIT(1)
  68. #define DDRMIX_ADB400_ACK BIT(18)
  69. #define DDRMIX_PGC 0xd40
  70. #define PLAT_PUP_SLT_CTRL BIT(9)
  71. #define PLAT_PDN_SLT_CTRL BIT(8)
  72. #define SLT_PLAT_PDN BIT(8)
  73. #define SLT_PLAT_PUP BIT(9)
  74. #define MASTER1_MAPPING BIT(1)
  75. #define MASTER2_MAPPING BIT(2)
  76. #define IRQ_IMR_NUM U(4)
  77. #endif /* GPC_REG_H */