hi6220_regs_ao.h 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  1. /*
  2. * Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef HI6220_REGS_AO_H
  7. #define HI6220_REGS_AO_H
  8. #define AO_CTRL_BASE 0xF7800000
  9. #define AO_SC_SYS_CTRL0 (AO_CTRL_BASE + 0x000)
  10. #define AO_SC_SYS_CTRL1 (AO_CTRL_BASE + 0x004)
  11. #define AO_SC_SYS_CTRL2 (AO_CTRL_BASE + 0x008)
  12. #define AO_SC_SYS_STAT0 (AO_CTRL_BASE + 0x010)
  13. #define AO_SC_SYS_STAT1 (AO_CTRL_BASE + 0x014)
  14. #define AO_SC_MCU_IMCTRL (AO_CTRL_BASE + 0x018)
  15. #define AO_SC_MCU_IMSTAT (AO_CTRL_BASE + 0x01C)
  16. #define AO_SC_SECONDRY_INT_EN0 (AO_CTRL_BASE + 0x044)
  17. #define AO_SC_SECONDRY_INT_STATR0 (AO_CTRL_BASE + 0x048)
  18. #define AO_SC_SECONDRY_INT_STATM0 (AO_CTRL_BASE + 0x04C)
  19. #define AO_SC_MCU_WKUP_INT_EN6 (AO_CTRL_BASE + 0x054)
  20. #define AO_SC_MCU_WKUP_INT_STATR6 (AO_CTRL_BASE + 0x058)
  21. #define AO_SC_MCU_WKUP_INT_STATM6 (AO_CTRL_BASE + 0x05C)
  22. #define AO_SC_MCU_WKUP_INT_EN5 (AO_CTRL_BASE + 0x064)
  23. #define AO_SC_MCU_WKUP_INT_STATR5 (AO_CTRL_BASE + 0x068)
  24. #define AO_SC_MCU_WKUP_INT_STATM5 (AO_CTRL_BASE + 0x06C)
  25. #define AO_SC_MCU_WKUP_INT_EN4 (AO_CTRL_BASE + 0x094)
  26. #define AO_SC_MCU_WKUP_INT_STATR4 (AO_CTRL_BASE + 0x098)
  27. #define AO_SC_MCU_WKUP_INT_STATM4 (AO_CTRL_BASE + 0x09C)
  28. #define AO_SC_MCU_WKUP_INT_EN0 (AO_CTRL_BASE + 0x0A8)
  29. #define AO_SC_MCU_WKUP_INT_STATR0 (AO_CTRL_BASE + 0x0AC)
  30. #define AO_SC_MCU_WKUP_INT_STATM0 (AO_CTRL_BASE + 0x0B0)
  31. #define AO_SC_MCU_WKUP_INT_EN1 (AO_CTRL_BASE + 0x0B4)
  32. #define AO_SC_MCU_WKUP_INT_STATR1 (AO_CTRL_BASE + 0x0B8)
  33. #define AO_SC_MCU_WKUP_INT_STATM1 (AO_CTRL_BASE + 0x0BC)
  34. #define AO_SC_INT_STATR (AO_CTRL_BASE + 0x0C4)
  35. #define AO_SC_INT_STATM (AO_CTRL_BASE + 0x0C8)
  36. #define AO_SC_INT_CLEAR (AO_CTRL_BASE + 0x0CC)
  37. #define AO_SC_INT_EN_SET (AO_CTRL_BASE + 0x0D0)
  38. #define AO_SC_INT_EN_DIS (AO_CTRL_BASE + 0x0D4)
  39. #define AO_SC_INT_EN_STAT (AO_CTRL_BASE + 0x0D8)
  40. #define AO_SC_INT_STATR1 (AO_CTRL_BASE + 0x0E4)
  41. #define AO_SC_INT_STATM1 (AO_CTRL_BASE + 0x0E8)
  42. #define AO_SC_INT_CLEAR1 (AO_CTRL_BASE + 0x0EC)
  43. #define AO_SC_INT_EN_SET1 (AO_CTRL_BASE + 0x0F0)
  44. #define AO_SC_INT_EN_DIS1 (AO_CTRL_BASE + 0x0F4)
  45. #define AO_SC_INT_EN_STAT1 (AO_CTRL_BASE + 0x0F8)
  46. #define AO_SC_TIMER_EN0 (AO_CTRL_BASE + 0x1D0)
  47. #define AO_SC_TIMER_EN1 (AO_CTRL_BASE + 0x1D4)
  48. #define AO_SC_TIMER_EN4 (AO_CTRL_BASE + 0x1F0)
  49. #define AO_SC_TIMER_EN5 (AO_CTRL_BASE + 0x1F4)
  50. #define AO_SC_MCU_SUBSYS_CTRL0 (AO_CTRL_BASE + 0x400)
  51. #define AO_SC_MCU_SUBSYS_CTRL1 (AO_CTRL_BASE + 0x404)
  52. #define AO_SC_MCU_SUBSYS_CTRL2 (AO_CTRL_BASE + 0x408)
  53. #define AO_SC_MCU_SUBSYS_CTRL3 (AO_CTRL_BASE + 0x40C)
  54. #define AO_SC_MCU_SUBSYS_CTRL4 (AO_CTRL_BASE + 0x410)
  55. #define AO_SC_MCU_SUBSYS_CTRL5 (AO_CTRL_BASE + 0x414)
  56. #define AO_SC_MCU_SUBSYS_CTRL6 (AO_CTRL_BASE + 0x418)
  57. #define AO_SC_MCU_SUBSYS_CTRL7 (AO_CTRL_BASE + 0x41C)
  58. #define AO_SC_MCU_SUBSYS_STAT0 (AO_CTRL_BASE + 0x440)
  59. #define AO_SC_MCU_SUBSYS_STAT1 (AO_CTRL_BASE + 0x444)
  60. #define AO_SC_MCU_SUBSYS_STAT2 (AO_CTRL_BASE + 0x448)
  61. #define AO_SC_MCU_SUBSYS_STAT3 (AO_CTRL_BASE + 0x44C)
  62. #define AO_SC_MCU_SUBSYS_STAT4 (AO_CTRL_BASE + 0x450)
  63. #define AO_SC_MCU_SUBSYS_STAT5 (AO_CTRL_BASE + 0x454)
  64. #define AO_SC_MCU_SUBSYS_STAT6 (AO_CTRL_BASE + 0x458)
  65. #define AO_SC_MCU_SUBSYS_STAT7 (AO_CTRL_BASE + 0x45C)
  66. #define AO_SC_PERIPH_CLKEN4 (AO_CTRL_BASE + 0x630)
  67. #define AO_SC_PERIPH_CLKDIS4 (AO_CTRL_BASE + 0x634)
  68. #define AO_SC_PERIPH_CLKSTAT4 (AO_CTRL_BASE + 0x638)
  69. #define AO_SC_PERIPH_CLKEN5 (AO_CTRL_BASE + 0x63C)
  70. #define AO_SC_PERIPH_CLKDIS5 (AO_CTRL_BASE + 0x640)
  71. #define AO_SC_PERIPH_CLKSTAT5 (AO_CTRL_BASE + 0x644)
  72. #define AO_SC_PERIPH_RSTEN4 (AO_CTRL_BASE + 0x6F0)
  73. #define AO_SC_PERIPH_RSTDIS4 (AO_CTRL_BASE + 0x6F4)
  74. #define AO_SC_PERIPH_RSTSTAT4 (AO_CTRL_BASE + 0x6F8)
  75. #define AO_SC_PERIPH_RSTEN5 (AO_CTRL_BASE + 0x6FC)
  76. #define AO_SC_PERIPH_RSTDIS5 (AO_CTRL_BASE + 0x700)
  77. #define AO_SC_PERIPH_RSTSTAT5 (AO_CTRL_BASE + 0x704)
  78. #define AO_SC_PW_CLKEN0 (AO_CTRL_BASE + 0x800)
  79. #define AO_SC_PW_CLKDIS0 (AO_CTRL_BASE + 0x804)
  80. #define AO_SC_PW_CLK_STAT0 (AO_CTRL_BASE + 0x808)
  81. #define AO_SC_PW_RSTEN0 (AO_CTRL_BASE + 0x810)
  82. #define AO_SC_PW_RSTDIS0 (AO_CTRL_BASE + 0x814)
  83. #define AO_SC_PW_RST_STAT0 (AO_CTRL_BASE + 0x818)
  84. #define AO_SC_PW_ISOEN0 (AO_CTRL_BASE + 0x820)
  85. #define AO_SC_PW_ISODIS0 (AO_CTRL_BASE + 0x824)
  86. #define AO_SC_PW_ISO_STAT0 (AO_CTRL_BASE + 0x828)
  87. #define AO_SC_PW_MTCMOS_EN0 (AO_CTRL_BASE + 0x830)
  88. #define AO_SC_PW_MTCMOS_DIS0 (AO_CTRL_BASE + 0x834)
  89. #define AO_SC_PW_MTCMOS_STAT0 (AO_CTRL_BASE + 0x838)
  90. #define AO_SC_PW_MTCMOS_ACK_STAT0 (AO_CTRL_BASE + 0x83C)
  91. #define AO_SC_PW_MTCMOS_TIMEOUT_STAT0 (AO_CTRL_BASE + 0x840)
  92. #define AO_SC_PW_STAT0 (AO_CTRL_BASE + 0x850)
  93. #define AO_SC_PW_STAT1 (AO_CTRL_BASE + 0x854)
  94. #define AO_SC_SYSTEST_STAT (AO_CTRL_BASE + 0x880)
  95. #define AO_SC_SYSTEST_SLICER_CNT0 (AO_CTRL_BASE + 0x890)
  96. #define AO_SC_SYSTEST_SLICER_CNT1 (AO_CTRL_BASE + 0x894)
  97. #define AO_SC_PW_CTRL1 (AO_CTRL_BASE + 0x8C8)
  98. #define AO_SC_PW_CTRL (AO_CTRL_BASE + 0x8CC)
  99. #define AO_SC_MCPU_VOTEEN (AO_CTRL_BASE + 0x8D0)
  100. #define AO_SC_MCPU_VOTEDIS (AO_CTRL_BASE + 0x8D4)
  101. #define AO_SC_MCPU_VOTESTAT (AO_CTRL_BASE + 0x8D8)
  102. #define AO_SC_MCPU_VOTE_MSK0 (AO_CTRL_BASE + 0x8E0)
  103. #define AO_SC_MCPU_VOTE_MSK1 (AO_CTRL_BASE + 0x8E4)
  104. #define AO_SC_MCPU_VOTESTAT0_MSK (AO_CTRL_BASE + 0x8E8)
  105. #define AO_SC_MCPU_VOTESTAT1_MSK (AO_CTRL_BASE + 0x8EC)
  106. #define AO_SC_PERI_VOTEEN (AO_CTRL_BASE + 0x8F0)
  107. #define AO_SC_PERI_VOTEDIS (AO_CTRL_BASE + 0x8F4)
  108. #define AO_SC_PERI_VOTESTAT (AO_CTRL_BASE + 0x8F8)
  109. #define AO_SC_PERI_VOTE_MSK0 (AO_CTRL_BASE + 0x900)
  110. #define AO_SC_PERI_VOTE_MSK1 (AO_CTRL_BASE + 0x904)
  111. #define AO_SC_PERI_VOTESTAT0_MSK (AO_CTRL_BASE + 0x908)
  112. #define AO_SC_PERI_VOTESTAT1_MSK (AO_CTRL_BASE + 0x90C)
  113. #define AO_SC_ACPU_VOTEEN (AO_CTRL_BASE + 0x910)
  114. #define AO_SC_ACPU_VOTEDIS (AO_CTRL_BASE + 0x914)
  115. #define AO_SC_ACPU_VOTESTAT (AO_CTRL_BASE + 0x918)
  116. #define AO_SC_ACPU_VOTE_MSK0 (AO_CTRL_BASE + 0x920)
  117. #define AO_SC_ACPU_VOTE_MSK1 (AO_CTRL_BASE + 0x924)
  118. #define AO_SC_ACPU_VOTESTAT0_MSK (AO_CTRL_BASE + 0x928)
  119. #define AO_SC_ACPU_VOTESTAT1_MSK (AO_CTRL_BASE + 0x92C)
  120. #define AO_SC_MCU_VOTEEN (AO_CTRL_BASE + 0x930)
  121. #define AO_SC_MCU_VOTEDIS (AO_CTRL_BASE + 0x934)
  122. #define AO_SC_MCU_VOTESTAT (AO_CTRL_BASE + 0x938)
  123. #define AO_SC_MCU_VOTE_MSK0 (AO_CTRL_BASE + 0x940)
  124. #define AO_SC_MCU_VOTE_MSK1 (AO_CTRL_BASE + 0x944)
  125. #define AO_SC_MCU_VOTESTAT0_MSK (AO_CTRL_BASE + 0x948)
  126. #define AO_SC_MCU_VOTESTAT1_MSK (AO_CTRL_BASE + 0x94C)
  127. #define AO_SC_MCU_VOTE1EN (AO_CTRL_BASE + 0x960)
  128. #define AO_SC_MCU_VOTE1DIS (AO_CTRL_BASE + 0x964)
  129. #define AO_SC_MCU_VOTE1STAT (AO_CTRL_BASE + 0x968)
  130. #define AO_SC_MCU_VOTE1_MSK0 (AO_CTRL_BASE + 0x970)
  131. #define AO_SC_MCU_VOTE1_MSK1 (AO_CTRL_BASE + 0x974)
  132. #define AO_SC_MCU_VOTE1STAT0_MSK (AO_CTRL_BASE + 0x978)
  133. #define AO_SC_MCU_VOTE1STAT1_MSK (AO_CTRL_BASE + 0x97C)
  134. #define AO_SC_MCU_VOTE2EN (AO_CTRL_BASE + 0x980)
  135. #define AO_SC_MCU_VOTE2DIS (AO_CTRL_BASE + 0x984)
  136. #define AO_SC_MCU_VOTE2STAT (AO_CTRL_BASE + 0x988)
  137. #define AO_SC_MCU_VOTE2_MSK0 (AO_CTRL_BASE + 0x990)
  138. #define AO_SC_MCU_VOTE2_MSK1 (AO_CTRL_BASE + 0x994)
  139. #define AO_SC_MCU_VOTE2STAT0_MSK (AO_CTRL_BASE + 0x998)
  140. #define AO_SC_MCU_VOTE2STAT1_MSK (AO_CTRL_BASE + 0x99C)
  141. #define AO_SC_VOTE_CTRL (AO_CTRL_BASE + 0x9A0)
  142. #define AO_SC_VOTE_STAT (AO_CTRL_BASE + 0x9A4)
  143. #define AO_SC_ECONUM (AO_CTRL_BASE + 0xF00)
  144. #define AO_SCCHIPID (AO_CTRL_BASE + 0xF10)
  145. #define AO_SCSOCID (AO_CTRL_BASE + 0xF1C)
  146. #define AO_SC_SOC_FPGA_RTL_DEF (AO_CTRL_BASE + 0xFE0)
  147. #define AO_SC_SOC_FPGA_PR_DEF (AO_CTRL_BASE + 0xFE4)
  148. #define AO_SC_SOC_FPGA_RES_DEF0 (AO_CTRL_BASE + 0xFE8)
  149. #define AO_SC_SOC_FPGA_RES_DEF1 (AO_CTRL_BASE + 0xFEC)
  150. #define AO_SC_XTAL_CTRL0 (AO_CTRL_BASE + 0x102)
  151. #define AO_SC_XTAL_CTRL1 (AO_CTRL_BASE + 0x102)
  152. #define AO_SC_XTAL_CTRL3 (AO_CTRL_BASE + 0x103)
  153. #define AO_SC_XTAL_CTRL5 (AO_CTRL_BASE + 0x103)
  154. #define AO_SC_XTAL_STAT0 (AO_CTRL_BASE + 0x106)
  155. #define AO_SC_XTAL_STAT1 (AO_CTRL_BASE + 0x107)
  156. #define AO_SC_EFUSE_CHIPID0 (AO_CTRL_BASE + 0x108)
  157. #define AO_SC_EFUSE_CHIPID1 (AO_CTRL_BASE + 0x108)
  158. #define AO_SC_EFUSE_SYS_CTRL (AO_CTRL_BASE + 0x108)
  159. #define AO_SC_DEBUG_CTRL1 (AO_CTRL_BASE + 0x128)
  160. #define AO_SC_DBG_STAT (AO_CTRL_BASE + 0x12B)
  161. #define AO_SC_ARM_DBG_KEY0 (AO_CTRL_BASE + 0x12B)
  162. #define AO_SC_RESERVED31 (AO_CTRL_BASE + 0x13A)
  163. #define AO_SC_RESERVED32 (AO_CTRL_BASE + 0x13A)
  164. #define AO_SC_RESERVED33 (AO_CTRL_BASE + 0x13A)
  165. #define AO_SC_RESERVED34 (AO_CTRL_BASE + 0x13A)
  166. #define AO_SC_RESERVED35 (AO_CTRL_BASE + 0x13B)
  167. #define AO_SC_RESERVED36 (AO_CTRL_BASE + 0x13B)
  168. #define AO_SC_RESERVED37 (AO_CTRL_BASE + 0x13B)
  169. #define AO_SC_RESERVED38 (AO_CTRL_BASE + 0x13B)
  170. #define AO_SC_ALWAYSON_SYS_CTRL0 (AO_CTRL_BASE + 0x148)
  171. #define AO_SC_ALWAYSON_SYS_CTRL1 (AO_CTRL_BASE + 0x148)
  172. #define AO_SC_ALWAYSON_SYS_CTRL2 (AO_CTRL_BASE + 0x148)
  173. #define AO_SC_ALWAYSON_SYS_CTRL3 (AO_CTRL_BASE + 0x148)
  174. #define AO_SC_ALWAYSON_SYS_CTRL10 (AO_CTRL_BASE + 0x14A)
  175. #define AO_SC_ALWAYSON_SYS_CTRL11 (AO_CTRL_BASE + 0x14A)
  176. #define AO_SC_ALWAYSON_SYS_STAT0 (AO_CTRL_BASE + 0x14C)
  177. #define AO_SC_ALWAYSON_SYS_STAT1 (AO_CTRL_BASE + 0x14C)
  178. #define AO_SC_ALWAYSON_SYS_STAT2 (AO_CTRL_BASE + 0x14C)
  179. #define AO_SC_ALWAYSON_SYS_STAT3 (AO_CTRL_BASE + 0x14C)
  180. #define AO_SC_PWUP_TIME0 (AO_CTRL_BASE + 0x188)
  181. #define AO_SC_PWUP_TIME1 (AO_CTRL_BASE + 0x188)
  182. #define AO_SC_PWUP_TIME2 (AO_CTRL_BASE + 0x188)
  183. #define AO_SC_PWUP_TIME3 (AO_CTRL_BASE + 0x188)
  184. #define AO_SC_PWUP_TIME4 (AO_CTRL_BASE + 0x189)
  185. #define AO_SC_PWUP_TIME5 (AO_CTRL_BASE + 0x189)
  186. #define AO_SC_PWUP_TIME6 (AO_CTRL_BASE + 0x189)
  187. #define AO_SC_PWUP_TIME7 (AO_CTRL_BASE + 0x189)
  188. #define AO_SC_SECURITY_CTRL1 (AO_CTRL_BASE + 0x1C0)
  189. #define AO_SC_SYSTEST_SLICER_CNT0 (AO_CTRL_BASE + 0x890)
  190. #define AO_SC_SYSTEST_SLICER_CNT1 (AO_CTRL_BASE + 0x894)
  191. #define AO_SC_SYS_CTRL0_MODE_NORMAL 0x004
  192. #define AO_SC_SYS_CTRL0_MODE_MASK 0x007
  193. #define AO_SC_SYS_CTRL1_AARM_WD_RST_CFG (1 << 0)
  194. #define AO_SC_SYS_CTRL1_REMAP_SRAM_AARM (1 << 1)
  195. #define AO_SC_SYS_CTRL1_EFUSEC_REMAP (1 << 2)
  196. #define AO_SC_SYS_CTRL1_EXT_PLL_SEL (1 << 3)
  197. #define AO_SC_SYS_CTRL1_MCU_WDG0_RSTMCU_CFG (1 << 4)
  198. #define AO_SC_SYS_CTRL1_USIM0_HPD_DE_BOUNCE_CFG (1 << 6)
  199. #define AO_SC_SYS_CTRL1_USIM0_HPD_OE_CFG (1 << 7)
  200. #define AO_SC_SYS_CTRL1_USIM1_HPD_DE_BOUNCE_CFG (1 << 8)
  201. #define AO_SC_SYS_CTRL1_USIM1_HPD_OE_CFG (1 << 9)
  202. #define AO_SC_SYS_CTRL1_BUS_DFS_FORE_HD_CFG (1 << 10)
  203. #define AO_SC_SYS_CTRL1_BUS_DFS_FORE_HD_CFG1 (1 << 11)
  204. #define AO_SC_SYS_CTRL1_USIM0_HPD_OE_SFT (1 << 12)
  205. #define AO_SC_SYS_CTRL1_USIM1_HPD_OE_SFT (1 << 13)
  206. #define AO_SC_SYS_CTRL1_MCU_CLKEN_HARDCFG (1 << 15)
  207. #define AO_SC_SYS_CTRL1_AARM_WD_RST_CFG_MSK (1 << 16)
  208. #define AO_SC_SYS_CTRL1_REMAP_SRAM_AARM_MSK (1 << 17)
  209. #define AO_SC_SYS_CTRL1_EFUSEC_REMAP_MSK (1 << 18)
  210. #define AO_SC_SYS_CTRL1_EXT_PLL_SEL_MSK (1 << 19)
  211. #define AO_SC_SYS_CTRL1_MCU_WDG0_RSTMCU_CFG_MSK (1 << 20)
  212. #define AO_SC_SYS_CTRL1_USIM0_HPD_DE_BOUNCE_CFG_MSK (1 << 22)
  213. #define AO_SC_SYS_CTRL1_USIM0_HPD_OE_CFG_MSK (1 << 23)
  214. #define AO_SC_SYS_CTRL1_USIM1_HPD_DE_BOUNCE_CFG_MSK (1 << 24)
  215. #define AO_SC_SYS_CTRL1_USIM1_HPD_OE_CFG_MSK (1 << 25)
  216. #define AO_SC_SYS_CTRL1_BUS_DFS_FORE_HD_CFG_MSK (1 << 26)
  217. #define AO_SC_SYS_CTRL1_BUS_DFS_FORE_HD_CFG1_MSK (1 << 27)
  218. #define AO_SC_SYS_CTRL1_USIM0_HPD_OE_SFT_MSK (1 << 28)
  219. #define AO_SC_SYS_CTRL1_USIM1_HPD_OE_SFT_MSK (1 << 29)
  220. #define AO_SC_SYS_CTRL1_MCU_CLKEN_HARDCFG_MSK (1U << 31)
  221. #define AO_SC_SYS_CTRL2_MCU_SFT_RST_STAT_CLEAR (1 << 26)
  222. #define AO_SC_SYS_CTRL2_MCU_WDG0_RST_STAT_CLEAR (1 << 27)
  223. #define AO_SC_SYS_CTRL2_TSENSOR_RST_STAT_CLEAR (1 << 28)
  224. #define AO_SC_SYS_CTRL2_ACPU_WDG_RST_STAT_CLEAR (1 << 29)
  225. #define AO_SC_SYS_CTRL2_MCU_WDG1_RST_STAT_CLEAR (1 << 30)
  226. #define AO_SC_SYS_CTRL2_GLB_SRST_STAT_CLEAR (1U << 31)
  227. #define AO_SC_SYS_STAT0_MCU_RST_STAT (1 << 25)
  228. #define AO_SC_SYS_STAT0_MCU_SOFTRST_STAT (1 << 26)
  229. #define AO_SC_SYS_STAT0_MCU_WDGRST_STAT (1 << 27)
  230. #define AO_SC_SYS_STAT0_TSENSOR_HARDRST_STAT (1 << 28)
  231. #define AO_SC_SYS_STAT0_ACPU_WD_GLB_RST_STAT (1 << 29)
  232. #define AO_SC_SYS_STAT0_CM3_WDG1_RST_STAT (1 << 30)
  233. #define AO_SC_SYS_STAT0_GLB_SRST_STAT (1U << 31)
  234. #define AO_SC_SYS_STAT1_MODE_STATUS (1 << 0)
  235. #define AO_SC_SYS_STAT1_BOOT_SEL_LOCK (1 << 16)
  236. #define AO_SC_SYS_STAT1_FUNC_MODE_LOCK (1 << 17)
  237. #define AO_SC_SYS_STAT1_BOOT_MODE_LOCK (1 << 19)
  238. #define AO_SC_SYS_STAT1_FUN_JTAG_MODE_OUT (1 << 20)
  239. #define AO_SC_SYS_STAT1_SECURITY_BOOT_FLG (1 << 27)
  240. #define AO_SC_SYS_STAT1_EFUSE_NANDBOOT_MSK (1 << 28)
  241. #define AO_SC_SYS_STAT1_EFUSE_NAND_BITWIDE (1 << 29)
  242. #define AO_SC_PERIPH_RSTDIS4_RESET_MCU_ECTR_N (1 << 0)
  243. #define AO_SC_PERIPH_RSTDIS4_RESET_MCU_SYS_N (1 << 1)
  244. #define AO_SC_PERIPH_RSTDIS4_RESET_MCU_POR_N (1 << 2)
  245. #define AO_SC_PERIPH_RSTDIS4_RESET_MCU_DAP_N (1 << 3)
  246. #define AO_SC_PERIPH_RSTDIS4_PRESET_CM3_TIMER0_N (1 << 4)
  247. #define AO_SC_PERIPH_RSTDIS4_PRESET_CM3_TIMER1_N (1 << 5)
  248. #define AO_SC_PERIPH_RSTDIS4_PRESET_CM3_WDT0_N (1 << 6)
  249. #define AO_SC_PERIPH_RSTDIS4_PRESET_CM3_WDT1_N (1 << 7)
  250. #define AO_SC_PERIPH_RSTDIS4_HRESET_IPC_S_N (1 << 8)
  251. #define AO_SC_PERIPH_RSTDIS4_HRESET_IPC_NS_N (1 << 9)
  252. #define AO_SC_PERIPH_RSTDIS4_PRESET_EFUSEC_N (1 << 10)
  253. #define AO_SC_PERIPH_RSTDIS4_PRESET_WDT0_N (1 << 12)
  254. #define AO_SC_PERIPH_RSTDIS4_PRESET_WDT1_N (1 << 13)
  255. #define AO_SC_PERIPH_RSTDIS4_PRESET_WDT2_N (1 << 14)
  256. #define AO_SC_PERIPH_RSTDIS4_PRESET_TIMER0_N (1 << 15)
  257. #define AO_SC_PERIPH_RSTDIS4_PRESET_TIMER1_N (1 << 16)
  258. #define AO_SC_PERIPH_RSTDIS4_PRESET_TIMER2_N (1 << 17)
  259. #define AO_SC_PERIPH_RSTDIS4_PRESET_TIMER3_N (1 << 18)
  260. #define AO_SC_PERIPH_RSTDIS4_PRESET_TIMER4_N (1 << 19)
  261. #define AO_SC_PERIPH_RSTDIS4_PRESET_TIMER5_N (1 << 20)
  262. #define AO_SC_PERIPH_RSTDIS4_PRESET_TIMER6_N (1 << 21)
  263. #define AO_SC_PERIPH_RSTDIS4_PRESET_TIMER7_N (1 << 22)
  264. #define AO_SC_PERIPH_RSTDIS4_PRESET_TIMER8_N (1 << 23)
  265. #define AO_SC_PERIPH_RSTDIS4_PRESET_UART0_N (1 << 24)
  266. #define AO_SC_PERIPH_RSTDIS4_RESET_RTC0_N (1 << 25)
  267. #define AO_SC_PERIPH_RSTDIS4_RESET_RTC1_N (1 << 26)
  268. #define AO_SC_PERIPH_RSTDIS4_PRESET_PMUSSI_N (1 << 27)
  269. #define AO_SC_PERIPH_RSTDIS4_RESET_JTAG_AUTH_N (1 << 28)
  270. #define AO_SC_PERIPH_RSTDIS4_RESET_CS_DAPB_ON_N (1 << 29)
  271. #define AO_SC_PERIPH_RSTDIS4_MDM_SUBSYS_GLB (1 << 30)
  272. #define AO_SC_PERIPH_CLKEN4_HCLK_MCU (1 << 0)
  273. #define AO_SC_PERIPH_CLKEN4_CLK_MCU_DAP (1 << 3)
  274. #define AO_SC_PERIPH_CLKEN4_PCLK_CM3_TIMER0 (1 << 4)
  275. #define AO_SC_PERIPH_CLKEN4_PCLK_CM3_TIMER1 (1 << 5)
  276. #define AO_SC_PERIPH_CLKEN4_PCLK_CM3_WDT0 (1 << 6)
  277. #define AO_SC_PERIPH_CLKEN4_PCLK_CM3_WDT1 (1 << 7)
  278. #define AO_SC_PERIPH_CLKEN4_HCLK_IPC_S (1 << 8)
  279. #define AO_SC_PERIPH_CLKEN4_HCLK_IPC_NS (1 << 9)
  280. #define AO_SC_PERIPH_CLKEN4_PCLK_EFUSEC (1 << 10)
  281. #define AO_SC_PERIPH_CLKEN4_PCLK_TZPC (1 << 11)
  282. #define AO_SC_PERIPH_CLKEN4_PCLK_WDT0 (1 << 12)
  283. #define AO_SC_PERIPH_CLKEN4_PCLK_WDT1 (1 << 13)
  284. #define AO_SC_PERIPH_CLKEN4_PCLK_WDT2 (1 << 14)
  285. #define AO_SC_PERIPH_CLKEN4_PCLK_TIMER0 (1 << 15)
  286. #define AO_SC_PERIPH_CLKEN4_PCLK_TIMER1 (1 << 16)
  287. #define AO_SC_PERIPH_CLKEN4_PCLK_TIMER2 (1 << 17)
  288. #define AO_SC_PERIPH_CLKEN4_PCLK_TIMER3 (1 << 18)
  289. #define AO_SC_PERIPH_CLKEN4_PCLK_TIMER4 (1 << 19)
  290. #define AO_SC_PERIPH_CLKEN4_PCLK_TIMER5 (1 << 20)
  291. #define AO_SC_PERIPH_CLKEN4_PCLK_TIMER6 (1 << 21)
  292. #define AO_SC_PERIPH_CLKEN4_PCLK_TIMER7 (1 << 22)
  293. #define AO_SC_PERIPH_CLKEN4_PCLK_TIMER8 (1 << 23)
  294. #define AO_SC_PERIPH_CLKEN4_CLK_UART0 (1 << 24)
  295. #define AO_SC_PERIPH_CLKEN4_CLK_RTC0 (1 << 25)
  296. #define AO_SC_PERIPH_CLKEN4_CLK_RTC1 (1 << 26)
  297. #define AO_SC_PERIPH_CLKEN4_PCLK_PMUSSI (1 << 27)
  298. #define AO_SC_PERIPH_CLKEN4_CLK_JTAG_AUTH (1 << 28)
  299. #define AO_SC_PERIPH_CLKEN4_CLK_CS_DAPB_ON (1 << 29)
  300. #define AO_SC_PERIPH_CLKEN4_CLK_PDM (1 << 30)
  301. #define AO_SC_PERIPH_CLKEN4_CLK_SSI_PAD (1U << 31)
  302. #define AO_SC_PERIPH_CLKEN5_PCLK_PMUSSI_CCPU (1 << 0)
  303. #define AO_SC_PERIPH_CLKEN5_PCLK_EFUSEC_CCPU (1 << 1)
  304. #define AO_SC_PERIPH_CLKEN5_HCLK_IPC_CCPU (1 << 2)
  305. #define AO_SC_PERIPH_CLKEN5_HCLK_IPC_NS_CCPU (1 << 3)
  306. #define AO_SC_PERIPH_CLKEN5_PCLK_PMUSSI_MCU (1 << 16)
  307. #define AO_SC_PERIPH_CLKEN5_PCLK_EFUSEC_MCU (1 << 17)
  308. #define AO_SC_PERIPH_CLKEN5_HCLK_IPC_MCU (1 << 18)
  309. #define AO_SC_PERIPH_CLKEN5_HCLK_IPC_NS_MCU (1 << 19)
  310. #define AO_SC_MCU_SUBSYS_CTRL3_RCLK_3 0x003
  311. #define AO_SC_MCU_SUBSYS_CTRL3_RCLK_MASK 0x007
  312. #define AO_SC_MCU_SUBSYS_CTRL3_CSSYS_CTRL_PROT (1 << 3)
  313. #define AO_SC_MCU_SUBSYS_CTRL3_TCXO_AFC_OEN_CRG (1 << 4)
  314. #define AO_SC_MCU_SUBSYS_CTRL3_AOB_IO_SEL18_USIM1 (1 << 8)
  315. #define AO_SC_MCU_SUBSYS_CTRL3_AOB_IO_SEL18_USIM0 (1 << 9)
  316. #define AO_SC_MCU_SUBSYS_CTRL3_AOB_IO_SEL18_SD (1 << 10)
  317. #define AO_SC_MCU_SUBSYS_CTRL3_MCU_SUBSYS_CTRL3_RESERVED (1 << 11)
  318. #define PCLK_TIMER1 (1 << 16)
  319. #define PCLK_TIMER0 (1 << 15)
  320. #endif /* HI6220_REGS_AO_H */