pcm_def.h 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. /*
  2. * Copyright (c) 2022, MediaTek Inc. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef PCM_DEF_H
  7. #define PCM_DEF_H
  8. /*
  9. * Auto generated by DE, please DO NOT modify this file directly.
  10. */
  11. /* --- R0 Define --- */
  12. #define R0_SC_26M_CK_OFF (1U << 0)
  13. #define R0_SC_TX_TRACK_RETRY_EN (1U << 1)
  14. #define R0_SC_MEM_CK_OFF (1U << 2)
  15. #define R0_SC_AXI_CK_OFF (1U << 3)
  16. #define R0_SC_DR_SRAM_LOAD (1U << 4)
  17. #define R0_SC_MD26M_CK_OFF (1U << 5)
  18. #define R0_SC_DPY_MODE_SW (1U << 6)
  19. #define R0_SC_DMSUS_OFF (1U << 7)
  20. #define R0_SC_DPY_2ND_DLL_EN (1U << 8)
  21. #define R0_SC_DR_SRAM_RESTORE (1U << 9)
  22. #define R0_SC_MPLLOUT_OFF (1U << 10)
  23. #define R0_SC_TX_TRACKING_DIS (1U << 11)
  24. #define R0_SC_DPY_DLL_EN (1U << 12)
  25. #define R0_SC_DPY_DLL_CK_EN (1U << 13)
  26. #define R0_SC_DPY_VREF_EN (1U << 14)
  27. #define R0_SC_PHYPLL_EN (1U << 15)
  28. #define R0_SC_DDRPHY_FB_CK_EN (1U << 16)
  29. #define R0_SC_DPY_BCLK_ENABLE (1U << 17)
  30. #define R0_SC_MPLL_OFF (1U << 18)
  31. #define R0_SC_SHU_RESTORE (1U << 19)
  32. #define R0_SC_CKSQ0_OFF (1U << 20)
  33. #define R0_SC_DR_SHU_LEVEL_SRAM_LATCH (1U << 21)
  34. #define R0_SC_DR_SHU_EN (1U << 22)
  35. #define R0_SC_DPHY_PRECAL_UP (1U << 23)
  36. #define R0_SC_MPLL_S_OFF (1U << 24)
  37. #define R0_SC_DPHY_RXDLY_TRACKING_EN (1U << 25)
  38. #define R0_SC_PHYPLL_SHU_EN (1U << 26)
  39. #define R0_SC_PHYPLL2_SHU_EN (1U << 27)
  40. #define R0_SC_PHYPLL_MODE_SW (1U << 28)
  41. #define R0_SC_PHYPLL2_MODE_SW (1U << 29)
  42. #define R0_SC_DR0_SHU_LEVEL (1U << 30)
  43. #define R0_SC_DR1_SHU_LEVEL (1U << 31)
  44. /* --- R7 Define --- */
  45. #define R7_PWRAP_SLEEP_REQ (1U << 0)
  46. #define R7_EMI_CLK_OFF_REQ_PCM (1U << 1)
  47. #define R7_PCM_BUS_PROTECT_REQ (1U << 2)
  48. #define R7_SPM_CK_UPDATE (1U << 3)
  49. #define R7_SPM_CK_SEL0 (1U << 4)
  50. #define R7_SPM_CK_SEL1 (1U << 5)
  51. #define R7_SPM_LEAVE_DEEPIDLE_REQ (1U << 6)
  52. #define R7_SC_FHC_PAUSE_MPLL (1U << 7)
  53. #define R7_SC_26M_CK_SEL (1U << 8)
  54. #define R7_PCM_TIMER_SET (1U << 9)
  55. #define R7_PCM_TIMER_CLR (1U << 10)
  56. #define R7_SPM_LEAVE_SUSPEND_REQ (1U << 11)
  57. #define R7_CSYSPWRUPACK (1U << 12)
  58. #define R7_PCM_IM_SLP_EN (1U << 13)
  59. #define R7_SRCCLKENO0 (1U << 14)
  60. #define R7_FORCE_DDR_EN_WAKE (1U << 15)
  61. #define R7_SPM_APSRC_INTERNAL_ACK (1U << 16)
  62. #define R7_CPU_SYS_TIMER_CLK_SEL (1U << 17)
  63. #define R7_SC_AXI_DCM_DIS (1U << 18)
  64. #define R7_SC_FHC_PAUSE_MEM (1U << 19)
  65. #define R7_SC_FHC_PAUSE_MAIN (1U << 20)
  66. #define R7_SRCCLKENO1 (1U << 21)
  67. #define R7_PCM_WDT_KICK_P (1U << 22)
  68. #define R7_SPM2EMI_S1_MODE_ASYNC (1U << 23)
  69. #define R7_SC_DDR_PST_REQ_PCM (1U << 24)
  70. #define R7_SC_DDR_PST_ABORT_REQ_PCM (1U << 25)
  71. #define R7_PMIC_IRQ_REQ_EN (1U << 26)
  72. #define R7_FORCE_F26M_WAKE (1U << 27)
  73. #define R7_FORCE_APSRC_WAKE (1U << 28)
  74. #define R7_FORCE_INFRA_WAKE (1U << 29)
  75. #define R7_FORCE_VRF18_WAKE (1U << 30)
  76. #define R7_SPM_DDR_EN_INTERNAL_ACK (1U << 31)
  77. /* --- R12 Define --- */
  78. #define R12_PCM_TIMER (1U << 0)
  79. #define R12_TWAM_IRQ_B (1U << 1)
  80. #define R12_KP_IRQ_B (1U << 2)
  81. #define R12_APWDT_EVENT_B (1U << 3)
  82. #define R12_APXGPT1_EVENT_B (1U << 4)
  83. #define R12_CONN2AP_SPM_WAKEUP_B (1U << 5)
  84. #define R12_EINT_EVENT_B (1U << 6)
  85. #define R12_CONN_WDT_IRQ_B (1U << 7)
  86. #define R12_CCIF0_EVENT_B (1U << 8)
  87. #define R12_LOWBATTERY_IRQ_B (1U << 9)
  88. #define R12_SSPM2SPM_WAKEUP_B (1U << 10)
  89. #define R12_SCP2SPM_WAKEUP_B (1U << 11)
  90. #define R12_ADSP2SPM_WAKEUP_B (1U << 12)
  91. #define R12_PCM_WDT_WAKEUP_B (1U << 13)
  92. #define R12_USBX_CDSC_B (1U << 14)
  93. #define R12_USBX_POWERDWN_B (1U << 15)
  94. #define R12_SYS_TIMER_EVENT_B (1U << 16)
  95. #define R12_EINT_EVENT_SECURE_B (1U << 17)
  96. #define R12_CCIF1_EVENT_B (1U << 18)
  97. #define R12_UART0_IRQ_B (1U << 19)
  98. #define R12_AFE_IRQ_MCU_B (1U << 20)
  99. #define R12_THERM_CTRL_EVENT_B (1U << 21)
  100. #define R12_SYS_CIRQ_IRQ_B (1U << 22)
  101. #define R12_MD2AP_PEER_EVENT_B (1U << 23)
  102. #define R12_CSYSPWREQ_B (1U << 24)
  103. #define R12_NNA_WAKEUP (1U << 25)
  104. #define R12_CLDMA_EVENT_B (1U << 26)
  105. #define R12_SEJ_EVENT_B (1U << 27)
  106. #define R12_REG_CPU_WAKEUP (1U << 28)
  107. #define R12_CPU_IRQOUT (1U << 29)
  108. #define R12_CPU_WFI (1U << 30)
  109. #define R12_MCUSYS_IDLE (1U << 31)
  110. /* --- R12ext Define --- */
  111. #define R12EXT_26M_WAKE (1U << 0)
  112. #define R12EXT_26M_SLEEP (1U << 1)
  113. #define R12EXT_INFRA_WAKE (1U << 2)
  114. #define R12EXT_INFRA_SLEEP (1U << 3)
  115. #define R12EXT_APSRC_WAKE (1U << 4)
  116. #define R12EXT_APSRC_SLEEP (1U << 5)
  117. #define R12EXT_VRF18_WAKE (1U << 6)
  118. #define R12EXT_VRF18_SLEEP (1U << 7)
  119. #define R12EXT_DVFS_WAKE (1U << 8)
  120. #define R12EXT_DDREN_WAKE (1U << 9)
  121. #define R12EXT_DDREN_SLEEP (1U << 10)
  122. #define R12EXT_MCU_PM_WFI (1U << 11)
  123. #define R12EXT_SSPM_IDLE (1U << 12)
  124. #define R12EXT_CONN_SRCCLKENB (1U << 13)
  125. #define R12EXT_DRAMC_MD32_WFI_MERGE (1U << 14)
  126. #define R12EXT_SW_MAILBOX_WAKE (1U << 15)
  127. #define R12EXT_SSPM_MAILBOX_WAKE (1U << 16)
  128. #define R12EXT_ADSP_MAILBOX_WAKE (1U << 17)
  129. #define R12EXT_SCP_MAILBOX_WAKE (1U << 18)
  130. #define R12EXT_SPM_LEAVE_SUSPEND_ACK (1U << 19)
  131. #define R12EXT_SPM_LEAVE_DEEPIDLE_ACK (1U << 20)
  132. #define R12EXT_BIT21 (1U << 21)
  133. #define R12EXT_BIT22 (1U << 22)
  134. #define R12EXT_BIT23 (1U << 23)
  135. #define R12EXT_BIT24 (1U << 24)
  136. #define R12EXT_BIT25 (1U << 25)
  137. #define R12EXT_BIT26 (1U << 26)
  138. #define R12EXT_BIT27 (1U << 27)
  139. #define R12EXT_BIT28 (1U << 28)
  140. #define R12EXT_BIT29 (1U << 29)
  141. #define R12EXT_BIT30 (1U << 30)
  142. #define R12EXT_BIT31 (1U << 31)
  143. /* --- R13 Define --- */
  144. #define R13_SRCCLKENI0 (1U << 0)
  145. #define R13_SRCCLKENI1 (1U << 1)
  146. #define R13_MD_0_SRCCLKENA (1U << 2)
  147. #define R13_MD_0_APSRC_REQ (1U << 3)
  148. #define R13_CONN_DDREN (1U << 4)
  149. #define R13_MD_1_SRCCLKENA (1U << 5)
  150. #define R13_SSPM_SRCCLKENA (1U << 6)
  151. #define R13_SSPM_APSRC_REQ (1U << 7)
  152. #define R13_MD_1_STATE (1U << 8)
  153. #define R13_RC_SRCCLKENO_ACK (1U << 9)
  154. #define R13_MM_STATE (1U << 10)
  155. #define R13_SSPM_STATE (1U << 11)
  156. #define R13_MD_0_DDREN (1U << 12)
  157. #define R13_CONN_STATE (1U << 13)
  158. #define R13_CONN_SRCCLKENA (1U << 14)
  159. #define R13_CONN_APSRC_REQ (1U << 15)
  160. #define R13_SC_DDR_PST_ACK_ALL (1U << 16)
  161. #define R13_SC_DDR_PST_ABORT_ACK_ALL (1U << 17)
  162. #define R13_SCP_STATE (1U << 18)
  163. #define R13_CSYSPWRUPREQ (1U << 19)
  164. #define R13_PWRAP_SLEEP_ACK (1U << 20)
  165. #define R13_SC_EMI_CLK_OFF_ACK_ALL (1U << 21)
  166. #define R13_AUDIO_DSP_STATE (1U << 22)
  167. #define R13_SC_DMDRAMCSHU_ACK_ALL (1U << 23)
  168. #define R13_CONN_SRCCLKENB (1U << 24)
  169. #define R13_SC_DR_SRAM_LOAD_ACK_ALL (1U << 25)
  170. #define R13_SUBSYS_IDLE_SIGNALS0 (1U << 26)
  171. #define R13_DVFS_STATE (1U << 27)
  172. #define R13_SC_DR_SRAM_PLL_LOAD_ACK_ALL (1U << 28)
  173. #define R13_SC_DR_SRAM_RESTORE_ACK_ALL (1U << 29)
  174. #define R13_MD_0_VRF18_REQ (1U << 30)
  175. #define R13_DDR_EN_STATE (1U << 31)
  176. #endif /* PCM_DEF_H */