hi6220_regs_peri.h 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380
  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_PERI_H
  7. #define HI6220_REGS_PERI_H
  8. #define PERI_BASE 0xF7030000
  9. #define PERI_SC_PERIPH_CTRL1 (PERI_BASE + 0x000)
  10. #define PERI_SC_PERIPH_CTRL2 (PERI_BASE + 0x004)
  11. #define PERI_SC_PERIPH_CTRL3 (PERI_BASE + 0x008)
  12. #define PERI_SC_PERIPH_CTRL4 (PERI_BASE + 0x00c)
  13. #define PERI_SC_PERIPH_CTRL5 (PERI_BASE + 0x010)
  14. #define PERI_SC_PERIPH_CTRL6 (PERI_BASE + 0x014)
  15. #define PERI_SC_PERIPH_CTRL8 (PERI_BASE + 0x018)
  16. #define PERI_SC_PERIPH_CTRL9 (PERI_BASE + 0x01c)
  17. #define PERI_SC_PERIPH_CTRL10 (PERI_BASE + 0x020)
  18. #define PERI_SC_PERIPH_CTRL12 (PERI_BASE + 0x024)
  19. #define PERI_SC_PERIPH_CTRL13 (PERI_BASE + 0x028)
  20. #define PERI_SC_PERIPH_CTRL14 (PERI_BASE + 0x02c)
  21. #define PERI_SC_DDR_CTRL0 (PERI_BASE + 0x050)
  22. #define PERI_SC_PERIPH_STAT1 (PERI_BASE + 0x094)
  23. #define PERI_SC_PERIPH_CLKEN0 (PERI_BASE + 0x200)
  24. #define PERI_SC_PERIPH_CLKDIS0 (PERI_BASE + 0x204)
  25. #define PERI_SC_PERIPH_CLKSTAT0 (PERI_BASE + 0x208)
  26. #define PERI_SC_PERIPH_CLKEN1 (PERI_BASE + 0x210)
  27. #define PERI_SC_PERIPH_CLKDIS1 (PERI_BASE + 0x214)
  28. #define PERI_SC_PERIPH_CLKSTAT1 (PERI_BASE + 0x218)
  29. #define PERI_SC_PERIPH_CLKEN2 (PERI_BASE + 0x220)
  30. #define PERI_SC_PERIPH_CLKDIS2 (PERI_BASE + 0x224)
  31. #define PERI_SC_PERIPH_CLKSTAT2 (PERI_BASE + 0x228)
  32. #define PERI_SC_PERIPH_CLKEN3 (PERI_BASE + 0x230)
  33. #define PERI_SC_PERIPH_CLKDIS3 (PERI_BASE + 0x234)
  34. #define PERI_SC_PERIPH_CLKSTAT3 (PERI_BASE + 0x238)
  35. #define PERI_SC_PERIPH_CLKEN8 (PERI_BASE + 0x240)
  36. #define PERI_SC_PERIPH_CLKDIS8 (PERI_BASE + 0x244)
  37. #define PERI_SC_PERIPH_CLKSTAT8 (PERI_BASE + 0x248)
  38. #define PERI_SC_PERIPH_CLKEN9 (PERI_BASE + 0x250)
  39. #define PERI_SC_PERIPH_CLKDIS9 (PERI_BASE + 0x254)
  40. #define PERI_SC_PERIPH_CLKSTAT9 (PERI_BASE + 0x258)
  41. #define PERI_SC_PERIPH_CLKEN10 (PERI_BASE + 0x260)
  42. #define PERI_SC_PERIPH_CLKDIS10 (PERI_BASE + 0x264)
  43. #define PERI_SC_PERIPH_CLKSTAT10 (PERI_BASE + 0x268)
  44. #define PERI_SC_PERIPH_CLKEN12 (PERI_BASE + 0x270)
  45. #define PERI_SC_PERIPH_CLKDIS12 (PERI_BASE + 0x274)
  46. #define PERI_SC_PERIPH_CLKSTAT12 (PERI_BASE + 0x278)
  47. #define PERI_SC_PERIPH_RSTEN0 (PERI_BASE + 0x300)
  48. #define PERI_SC_PERIPH_RSTDIS0 (PERI_BASE + 0x304)
  49. #define PERI_SC_PERIPH_RSTSTAT0 (PERI_BASE + 0x308)
  50. #define PERI_SC_PERIPH_RSTEN1 (PERI_BASE + 0x310)
  51. #define PERI_SC_PERIPH_RSTDIS1 (PERI_BASE + 0x314)
  52. #define PERI_SC_PERIPH_RSTSTAT1 (PERI_BASE + 0x318)
  53. #define PERI_SC_PERIPH_RSTEN2 (PERI_BASE + 0x320)
  54. #define PERI_SC_PERIPH_RSTDIS2 (PERI_BASE + 0x324)
  55. #define PERI_SC_PERIPH_RSTSTAT2 (PERI_BASE + 0x328)
  56. #define PERI_SC_PERIPH_RSTEN3 (PERI_BASE + 0x330)
  57. #define PERI_SC_PERIPH_RSTDIS3 (PERI_BASE + 0x334)
  58. #define PERI_SC_PERIPH_RSTSTAT3 (PERI_BASE + 0x338)
  59. #define PERI_SC_PERIPH_RSTEN8 (PERI_BASE + 0x340)
  60. #define PERI_SC_PERIPH_RSTDIS8 (PERI_BASE + 0x344)
  61. #define PERI_SC_PERIPH_RSTSTAT8 (PERI_BASE + 0x338)
  62. #define PERI_SC_CLK_SEL0 (PERI_BASE + 0x400)
  63. #define PERI_SC_CLKCFG8BIT1 (PERI_BASE + 0x494)
  64. #define PERI_SC_CLKCFG8BIT2 (PERI_BASE + 0x498)
  65. #define PERI_SC_RESERVED8_ADDR (PERI_BASE + 0xd04)
  66. /* PERI_SC_PERIPH_CTRL1 */
  67. #define PERI_CTRL1_ETR_AXI_CSYSREQ_N (1 << 0)
  68. #define PERI_CTRL1_ETR_AXI_CSYSREQ_N (1 << 0)
  69. #define PERI_CTRL1_HIFI_INT_MASK (1 << 1)
  70. #define PERI_CTRL1_HIFI_ALL_INT_MASK (1 << 2)
  71. #define PERI_CTRL1_ETR_AXI_CSYSREQ_N_MSK (1 << 16)
  72. #define PERI_CTRL1_HIFI_INT_MASK_MSK (1 << 17)
  73. #define PERI_CTRL1_HIFI_ALL_INT_MASK_MSK (1 << 18)
  74. /* PERI_SC_PERIPH_CTRL2 */
  75. #define PERI_CTRL2_MMC_CLK_PHASE_BYPASS_EN_MMC0 (1 << 0)
  76. #define PERI_CTRL2_MMC_CLK_PHASE_BYPASS_EN_MMC1 (1 << 2)
  77. #define PERI_CTRL2_NAND_SYS_MEM_SEL (1 << 6)
  78. #define PERI_CTRL2_G3D_DDRT_AXI_SEL (1 << 7)
  79. #define PERI_CTRL2_GU_MDM_BBP_TESTPIN_SEL (1 << 8)
  80. #define PERI_CTRL2_CODEC_SSI_MASTER_CHECK (1 << 9)
  81. #define PERI_CTRL2_FUNC_TEST_SOFT (1 << 12)
  82. #define PERI_CTRL2_CSSYS_TS_ENABLE (1 << 15)
  83. #define PERI_CTRL2_HIFI_RAMCTRL_S_EMA (1 << 16)
  84. #define PERI_CTRL2_HIFI_RAMCTRL_S_EMAW (1 << 20)
  85. #define PERI_CTRL2_HIFI_RAMCTRL_S_EMAS (1 << 22)
  86. #define PERI_CTRL2_HIFI_RAMCTRL_S_RET1N (1 << 26)
  87. #define PERI_CTRL2_HIFI_RAMCTRL_S_RET2N (1 << 27)
  88. #define PERI_CTRL2_HIFI_RAMCTRL_S_PGEN (1 << 28)
  89. /* PERI_SC_PERIPH_CTRL3 */
  90. #define PERI_CTRL3_HIFI_DDR_HARQMEM_ADDR (1 << 0)
  91. #define PERI_CTRL3_HIFI_HARQMEMRMP_EN (1 << 12)
  92. #define PERI_CTRL3_HARQMEM_SYS_MED_SEL (1 << 13)
  93. #define PERI_CTRL3_SOC_AP_OCCUPY_GRP1 (1 << 14)
  94. #define PERI_CTRL3_SOC_AP_OCCUPY_GRP2 (1 << 16)
  95. #define PERI_CTRL3_SOC_AP_OCCUPY_GRP3 (1 << 18)
  96. #define PERI_CTRL3_SOC_AP_OCCUPY_GRP4 (1 << 20)
  97. #define PERI_CTRL3_SOC_AP_OCCUPY_GRP5 (1 << 22)
  98. #define PERI_CTRL3_SOC_AP_OCCUPY_GRP6 (1 << 24)
  99. /* PERI_SC_PERIPH_CTRL4 */
  100. #define PERI_CTRL4_PICO_FSELV (1 << 0)
  101. #define PERI_CTRL4_FPGA_EXT_PHY_SEL (1 << 3)
  102. #define PERI_CTRL4_PICO_REFCLKSEL (1 << 4)
  103. #define PERI_CTRL4_PICO_SIDDQ (1 << 6)
  104. #define PERI_CTRL4_PICO_SUSPENDM_SLEEPM (1 << 7)
  105. #define PERI_CTRL4_PICO_OGDISABLE (1 << 8)
  106. #define PERI_CTRL4_PICO_COMMONONN (1 << 9)
  107. #define PERI_CTRL4_PICO_VBUSVLDEXT (1 << 10)
  108. #define PERI_CTRL4_PICO_VBUSVLDEXTSEL (1 << 11)
  109. #define PERI_CTRL4_PICO_VATESTENB (1 << 12)
  110. #define PERI_CTRL4_PICO_SUSPENDM (1 << 14)
  111. #define PERI_CTRL4_PICO_SLEEPM (1 << 15)
  112. #define PERI_CTRL4_BC11_C (1 << 16)
  113. #define PERI_CTRL4_BC11_B (1 << 17)
  114. #define PERI_CTRL4_BC11_A (1 << 18)
  115. #define PERI_CTRL4_BC11_GND (1 << 19)
  116. #define PERI_CTRL4_BC11_FLOAT (1 << 20)
  117. #define PERI_CTRL4_OTG_PHY_SEL (1 << 21)
  118. #define PERI_CTRL4_USB_OTG_SS_SCALEDOWN_MODE (1 << 22)
  119. #define PERI_CTRL4_OTG_DM_PULLDOWN (1 << 24)
  120. #define PERI_CTRL4_OTG_DP_PULLDOWN (1 << 25)
  121. #define PERI_CTRL4_OTG_IDPULLUP (1 << 26)
  122. #define PERI_CTRL4_OTG_DRVBUS (1 << 27)
  123. #define PERI_CTRL4_OTG_SESSEND (1 << 28)
  124. #define PERI_CTRL4_OTG_BVALID (1 << 29)
  125. #define PERI_CTRL4_OTG_AVALID (1 << 30)
  126. #define PERI_CTRL4_OTG_VBUSVALID (1U << 31)
  127. /* PERI_SC_PERIPH_CTRL5 */
  128. #define PERI_CTRL5_USBOTG_RES_SEL (1 << 3)
  129. #define PERI_CTRL5_PICOPHY_ACAENB (1 << 4)
  130. #define PERI_CTRL5_PICOPHY_BC_MODE (1 << 5)
  131. #define PERI_CTRL5_PICOPHY_CHRGSEL (1 << 6)
  132. #define PERI_CTRL5_PICOPHY_VDATSRCEND (1 << 7)
  133. #define PERI_CTRL5_PICOPHY_VDATDETENB (1 << 8)
  134. #define PERI_CTRL5_PICOPHY_DCDENB (1 << 9)
  135. #define PERI_CTRL5_PICOPHY_IDDIG (1 << 10)
  136. #define PERI_CTRL5_DBG_MUX (1 << 11)
  137. /* PERI_SC_PERIPH_CTRL6 */
  138. #define PERI_CTRL6_CSSYSOFF_RAMCTRL_S_EMA (1 << 0)
  139. #define PERI_CTRL6_CSSYSOFF_RAMCTRL_S_EMAW (1 << 4)
  140. #define PERI_CTRL6_CSSYSOFF_RAMCTRL_S_EMAS (1 << 6)
  141. #define PERI_CTRL6_CSSYSOFF_RAMCTRL_S_RET1N (1 << 10)
  142. #define PERI_CTRL6_CSSYSOFF_RAMCTRL_S_RET2N (1 << 11)
  143. #define PERI_CTRL6_CSSYSOFF_RAMCTRL_S_PGEN (1 << 12)
  144. /* PERI_SC_PERIPH_CTRL8 */
  145. #define PERI_CTRL8_PICOPHY_TXRISETUNE0 (1 << 0)
  146. #define PERI_CTRL8_PICOPHY_TXPREEMPAMPTUNE0 (1 << 2)
  147. #define PERI_CTRL8_PICOPHY_TXRESTUNE0 (1 << 4)
  148. #define PERI_CTRL8_PICOPHY_TXHSSVTUNE0 (1 << 6)
  149. #define PERI_CTRL8_PICOPHY_COMPDISTUNE0 (1 << 8)
  150. #define PERI_CTRL8_PICOPHY_TXPREEMPPULSETUNE0 (1 << 11)
  151. #define PERI_CTRL8_PICOPHY_OTGTUNE0 (1 << 12)
  152. #define PERI_CTRL8_PICOPHY_SQRXTUNE0 (1 << 16)
  153. #define PERI_CTRL8_PICOPHY_TXVREFTUNE0 (1 << 20)
  154. #define PERI_CTRL8_PICOPHY_TXFSLSTUNE0 (1 << 28)
  155. /* PERI_SC_PERIPH_CTRL9 */
  156. #define PERI_CTRL9_PICOPLY_TESTCLKEN (1 << 0)
  157. #define PERI_CTRL9_PICOPLY_TESTDATAOUTSEL (1 << 1)
  158. #define PERI_CTRL9_PICOPLY_TESTADDR (1 << 4)
  159. #define PERI_CTRL9_PICOPLY_TESTDATAIN (1 << 8)
  160. /*
  161. * PERI_SC_PERIPH_CLKEN0
  162. * PERI_SC_PERIPH_CLKDIS0
  163. * PERI_SC_PERIPH_CLKSTAT0
  164. */
  165. #define PERI_CLK0_MMC0 (1 << 0)
  166. #define PERI_CLK0_MMC1 (1 << 1)
  167. #define PERI_CLK0_MMC2 (1 << 2)
  168. #define PERI_CLK0_NANDC (1 << 3)
  169. #define PERI_CLK0_USBOTG (1 << 4)
  170. #define PERI_CLK0_PICOPHY (1 << 5)
  171. #define PERI_CLK0_PLL (1 << 6)
  172. /*
  173. * PERI_SC_PERIPH_CLKEN1
  174. * PERI_SC_PERIPH_CLKDIS1
  175. * PERI_SC_PERIPH_CLKSTAT1
  176. */
  177. #define PERI_CLK1_HIFI (1 << 0)
  178. #define PERI_CLK1_DIGACODEC (1 << 5)
  179. /*
  180. * PERI_SC_PERIPH_CLKEN2
  181. * PERI_SC_PERIPH_CLKDIS2
  182. * PERI_SC_PERIPH_CLKSTAT2
  183. */
  184. #define PERI_CLK2_IPF (1 << 0)
  185. #define PERI_CLK2_SOCP (1 << 1)
  186. #define PERI_CLK2_DMAC (1 << 2)
  187. #define PERI_CLK2_SECENG (1 << 3)
  188. #define PERI_CLK2_HPM0 (1 << 5)
  189. #define PERI_CLK2_HPM1 (1 << 6)
  190. #define PERI_CLK2_HPM2 (1 << 7)
  191. #define PERI_CLK2_HPM3 (1 << 8)
  192. /*
  193. * PERI_SC_PERIPH_CLKEN3
  194. * PERI_SC_PERIPH_CLKDIS3
  195. * PERI_SC_PERIPH_CLKSTAT3
  196. */
  197. #define PERI_CLK3_CSSYS (1 << 0)
  198. #define PERI_CLK3_I2C0 (1 << 1)
  199. #define PERI_CLK3_I2C1 (1 << 2)
  200. #define PERI_CLK3_I2C2 (1 << 3)
  201. #define PERI_CLK3_I2C3 (1 << 4)
  202. #define PERI_CLK3_UART1 (1 << 5)
  203. #define PERI_CLK3_UART2 (1 << 6)
  204. #define PERI_CLK3_UART3 (1 << 7)
  205. #define PERI_CLK3_UART4 (1 << 8)
  206. #define PERI_CLK3_SSP (1 << 9)
  207. #define PERI_CLK3_PWM (1 << 10)
  208. #define PERI_CLK3_BLPWM (1 << 11)
  209. #define PERI_CLK3_TSENSOR (1 << 12)
  210. #define PERI_CLK3_GPS (1 << 15)
  211. #define PERI_CLK3_TCXO_PAD0 (1 << 16)
  212. #define PERI_CLK3_TCXO_PAD1 (1 << 17)
  213. #define PERI_CLK3_DAPB (1 << 18)
  214. #define PERI_CLK3_HKADC (1 << 19)
  215. #define PERI_CLK3_CODEC_SSI (1 << 20)
  216. #define PERI_CLK3_TZPC_DEP (1 << 21)
  217. /*
  218. * PERI_SC_PERIPH_CLKEN8
  219. * PERI_SC_PERIPH_CLKDIS8
  220. * PERI_SC_PERIPH_CLKSTAT8
  221. */
  222. #define PERI_CLK8_RS0 (1 << 0)
  223. #define PERI_CLK8_RS2 (1 << 1)
  224. #define PERI_CLK8_RS3 (1 << 2)
  225. #define PERI_CLK8_MS0 (1 << 3)
  226. #define PERI_CLK8_MS2 (1 << 5)
  227. #define PERI_CLK8_XG2RAM0 (1 << 6)
  228. #define PERI_CLK8_X2SRAM (1 << 7)
  229. #define PERI_CLK8_SRAM (1 << 8)
  230. #define PERI_CLK8_ROM (1 << 9)
  231. #define PERI_CLK8_HARQ (1 << 10)
  232. #define PERI_CLK8_MMU (1 << 11)
  233. #define PERI_CLK8_DDRC (1 << 12)
  234. #define PERI_CLK8_DDRPHY (1 << 13)
  235. #define PERI_CLK8_DDRPHY_REF (1 << 14)
  236. #define PERI_CLK8_X2X_SYSNOC (1 << 15)
  237. #define PERI_CLK8_X2X_CCPU (1 << 16)
  238. #define PERI_CLK8_DDRT (1 << 17)
  239. #define PERI_CLK8_DDRPACK_RS (1 << 18)
  240. /*
  241. * PERI_SC_PERIPH_CLKEN9
  242. * PERI_SC_PERIPH_CLKDIS9
  243. * PERI_SC_PERIPH_CLKSTAT9
  244. */
  245. #define PERI_CLK9_CARM_DAP (1 << 0)
  246. #define PERI_CLK9_CARM_ATB (1 << 1)
  247. #define PERI_CLK9_CARM_LBUS (1 << 2)
  248. #define PERI_CLK9_CARM_KERNEL (1 << 3)
  249. /*
  250. * PERI_SC_PERIPH_CLKEN10
  251. * PERI_SC_PERIPH_CLKDIS10
  252. * PERI_SC_PERIPH_CLKSTAT10
  253. */
  254. #define PERI_CLK10_IPF_CCPU (1 << 0)
  255. #define PERI_CLK10_SOCP_CCPU (1 << 1)
  256. #define PERI_CLK10_SECENG_CCPU (1 << 2)
  257. #define PERI_CLK10_HARQ_CCPU (1 << 3)
  258. #define PERI_CLK10_IPF_MCU (1 << 16)
  259. #define PERI_CLK10_SOCP_MCU (1 << 17)
  260. #define PERI_CLK10_SECENG_MCU (1 << 18)
  261. #define PERI_CLK10_HARQ_MCU (1 << 19)
  262. /*
  263. * PERI_SC_PERIPH_CLKEN12
  264. * PERI_SC_PERIPH_CLKDIS12
  265. * PERI_SC_PERIPH_CLKSTAT12
  266. */
  267. #define PERI_CLK12_HIFI_SRC (1 << 0)
  268. #define PERI_CLK12_MMC0_SRC (1 << 1)
  269. #define PERI_CLK12_MMC1_SRC (1 << 2)
  270. #define PERI_CLK12_MMC2_SRC (1 << 3)
  271. #define PERI_CLK12_SYSPLL_DIV (1 << 4)
  272. #define PERI_CLK12_TPIU_SRC (1 << 5)
  273. #define PERI_CLK12_MMC0_HF (1 << 6)
  274. #define PERI_CLK12_MMC1_HF (1 << 7)
  275. #define PERI_CLK12_PLL_TEST_SRC (1 << 8)
  276. #define PERI_CLK12_CODEC_SOC (1 << 9)
  277. #define PERI_CLK12_MEDIA (1 << 10)
  278. /*
  279. * PERI_SC_PERIPH_RSTEN0
  280. * PERI_SC_PERIPH_RSTDIS0
  281. * PERI_SC_PERIPH_RSTSTAT0
  282. */
  283. #define PERI_RST0_MMC0 (1 << 0)
  284. #define PERI_RST0_MMC1 (1 << 1)
  285. #define PERI_RST0_MMC2 (1 << 2)
  286. #define PERI_RST0_NANDC (1 << 3)
  287. #define PERI_RST0_USBOTG_BUS (1 << 4)
  288. #define PERI_RST0_POR_PICOPHY (1 << 5)
  289. #define PERI_RST0_USBOTG (1 << 6)
  290. #define PERI_RST0_USBOTG_32K (1 << 7)
  291. /*
  292. * PERI_SC_PERIPH_RSTEN1
  293. * PERI_SC_PERIPH_RSTDIS1
  294. * PERI_SC_PERIPH_RSTSTAT1
  295. */
  296. #define PERI_RST1_HIFI (1 << 0)
  297. #define PERI_RST1_DIGACODEC (1 << 5)
  298. /*
  299. * PERI_SC_PERIPH_RSTEN2
  300. * PERI_SC_PERIPH_RSTDIS2
  301. * PERI_SC_PERIPH_RSTSTAT2
  302. */
  303. #define PERI_RST2_IPF (1 << 0)
  304. #define PERI_RST2_SOCP (1 << 1)
  305. #define PERI_RST2_DMAC (1 << 2)
  306. #define PERI_RST2_SECENG (1 << 3)
  307. #define PERI_RST2_ABB (1 << 4)
  308. #define PERI_RST2_HPM0 (1 << 5)
  309. #define PERI_RST2_HPM1 (1 << 6)
  310. #define PERI_RST2_HPM2 (1 << 7)
  311. #define PERI_RST2_HPM3 (1 << 8)
  312. /*
  313. * PERI_SC_PERIPH_RSTEN3
  314. * PERI_SC_PERIPH_RSTDIS3
  315. * PERI_SC_PERIPH_RSTSTAT3
  316. */
  317. #define PERI_RST3_CSSYS (1 << 0)
  318. #define PERI_RST3_I2C0 (1 << 1)
  319. #define PERI_RST3_I2C1 (1 << 2)
  320. #define PERI_RST3_I2C2 (1 << 3)
  321. #define PERI_RST3_I2C3 (1 << 4)
  322. #define PERI_RST3_UART1 (1 << 5)
  323. #define PERI_RST3_UART2 (1 << 6)
  324. #define PERI_RST3_UART3 (1 << 7)
  325. #define PERI_RST3_UART4 (1 << 8)
  326. #define PERI_RST3_SSP (1 << 9)
  327. #define PERI_RST3_PWM (1 << 10)
  328. #define PERI_RST3_BLPWM (1 << 11)
  329. #define PERI_RST3_TSENSOR (1 << 12)
  330. #define PERI_RST3_DAPB (1 << 18)
  331. #define PERI_RST3_HKADC (1 << 19)
  332. #define PERI_RST3_CODEC (1 << 20)
  333. /*
  334. * PERI_SC_PERIPH_RSTEN8
  335. * PERI_SC_PERIPH_RSTDIS8
  336. * PERI_SC_PERIPH_RSTSTAT8
  337. */
  338. #define PERI_RST8_RS0 (1 << 0)
  339. #define PERI_RST8_RS2 (1 << 1)
  340. #define PERI_RST8_RS3 (1 << 2)
  341. #define PERI_RST8_MS0 (1 << 3)
  342. #define PERI_RST8_MS2 (1 << 5)
  343. #define PERI_RST8_XG2RAM0 (1 << 6)
  344. #define PERI_RST8_X2SRAM_TZMA (1 << 7)
  345. #define PERI_RST8_SRAM (1 << 8)
  346. #define PERI_RST8_HARQ (1 << 10)
  347. #define PERI_RST8_DDRC (1 << 12)
  348. #define PERI_RST8_DDRC_APB (1 << 13)
  349. #define PERI_RST8_DDRPACK_APB (1 << 14)
  350. #define PERI_RST8_DDRT (1 << 17)
  351. #endif /* HI6220_REGS_PERI_H */