imx_sec_def.h 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  1. /*
  2. * Copyright 2020-2022 NXP
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef IMX_SEC_DEF_H
  7. #define IMX_SEC_DEF_H
  8. /* RDC MDA index */
  9. enum rdc_mda_idx {
  10. RDC_MDA_A53 = 0,
  11. RDC_MDA_M7 = 1,
  12. RDC_MDA_PCIE_CTRL1 = 2,
  13. RDC_MDA_SDMA3p = 3,
  14. RDC_MDA_SDMA3b = 4,
  15. RDC_MDA_LCDIF = 5,
  16. RDC_MDA_ISI = 6,
  17. RDC_MDA_NPU = 7,
  18. RDC_MDA_Coresight = 8,
  19. RDC_MDA_DAP = 9,
  20. RDC_MDA_CAAM = 10,
  21. RDC_MDA_SDMA1p = 11,
  22. RDC_MDA_SDMA1b = 12,
  23. RDC_MDA_APBHDMA = 13,
  24. RDC_MDA_RAWNAND = 14,
  25. RDC_MDA_uSDHC1 = 15,
  26. RDC_MDA_uSDHC2 = 16,
  27. RDC_MDA_uSDHC3 = 17,
  28. RDC_MDA_AUDIO_PROCESSOR = 18,
  29. RDC_MDA_USB1 = 19,
  30. RDC_MDA_USB2 = 20,
  31. RDC_MDA_TESTPORT = 21,
  32. RDC_MDA_ENET1_TX = 22,
  33. RDC_MDA_ENET1_RX = 23,
  34. RDC_MDA_SDMA2 = 24,
  35. RDC_MDA_SDMA3_to_SPBA2 = 25,
  36. RDC_MDA_SDMA1_to_SPBA1 = 26,
  37. RDC_MDA_LCDIF2 = 27,
  38. RDC_MDA_HDMI_TX = 28,
  39. RDC_MDA_ENET2 = 29,
  40. RDC_MDA_GPU3D = 30,
  41. RDC_MDA_GPU2D = 31,
  42. RDC_MDA_VPU_G1 = 32,
  43. RDC_MDA_VPU_G2 = 33,
  44. RDC_MDA_VPU_VC8000E = 34,
  45. RDC_MDA_AUDIO_EDMA = 35,
  46. RDC_MDA_ISP1 = 36,
  47. RDC_MDA_ISP2 = 37,
  48. RDC_MDA_DEWARP = 38,
  49. RDC_MDA_GIC500 = 39,
  50. };
  51. /* RDC Peripherals index */
  52. enum rdc_pdap_idx {
  53. RDC_PDAP_GPIO1 = 0,
  54. RDC_PDAP_GPIO2 = 1,
  55. RDC_PDAP_GPIO3 = 2,
  56. RDC_PDAP_GPIO4 = 3,
  57. RDC_PDAP_GPIO5 = 4,
  58. RDC_PDAP_MU_2_A = 5,
  59. RDC_PDAP_ANA_TSENSOR = 6,
  60. RDC_PDAP_ANA_OSC = 7,
  61. RDC_PDAP_WDOG1 = 8,
  62. RDC_PDAP_WDOG2 = 9,
  63. RDC_PDAP_WDOG3 = 10,
  64. RDC_PDAP_GPT1 = 13,
  65. RDC_PDAP_GPT2 = 14,
  66. RDC_PDAP_GPT3 = 15,
  67. RDC_PDAP_MU_2_B = 16,
  68. RDC_PDAP_ROMCP = 17,
  69. RDC_PDAP_MU_3_A = 18,
  70. RDC_PDAP_IOMUXC = 19,
  71. RDC_PDAP_IOMUXC_GPR = 20,
  72. RDC_PDAP_OCOTP_CTRL = 21,
  73. RDC_PDAP_ANA_PLL = 22,
  74. RDC_PDAP_SNVS_HP = 23,
  75. RDC_PDAP_CCM = 24,
  76. RDC_PDAP_SRC = 25,
  77. RDC_PDAP_GPC = 26,
  78. RDC_PDAP_SEMAPHORE1 = 27,
  79. RDC_PDAP_SEMAPHORE2 = 28,
  80. RDC_PDAP_RDC = 29,
  81. RDC_PDAP_CSU = 30,
  82. RDC_PDAP_MU_3_B = 31,
  83. RDC_PDAP_ISI = 32,
  84. RDC_PDAP_ISP0 = 33,
  85. RDC_PDAP_ISP1 = 34,
  86. RDC_PDAP_IPS_Dewarp = 35,
  87. RDC_PDAP_MIPI_CSI0 = 36,
  88. RDC_PDAP_HSIOMIX_BLK_CTL = 37,
  89. RDC_PDAP_PWM1 = 38,
  90. RDC_PDAP_PWM2 = 39,
  91. RDC_PDAP_PWM3 = 40,
  92. RDC_PDAP_PWM4 = 41,
  93. RDC_PDAP_System_Counter_RD = 42,
  94. RDC_PDAP_System_Counter_CMP = 43,
  95. RDC_PDAP_System_Counter_CTRL = 44,
  96. RDC_PDAP_I2C5 = 45,
  97. RDC_PDAP_GPT6 = 46,
  98. RDC_PDAP_GPT5 = 47,
  99. RDC_PDAP_GPT4 = 48,
  100. RDC_PDAP_MIPI_CSI1 = 49,
  101. RDC_PDAP_MIPI_DSI0 = 50,
  102. RDC_PDAP_MEDIAMIX_BLK_CTL = 51,
  103. RDC_PDAP_LCDIF1 = 52,
  104. RDC_PDAP_eDMA_Management_Page = 53,
  105. RDC_PDAP_eDMA_Channels_15_0 = 54,
  106. RDC_PDAP_eDMA_Channels_31_16 = 55,
  107. RDC_PDAP_TZASC = 56,
  108. RDC_PDAP_I2C6 = 57,
  109. RDC_PDAP_CAAM = 58,
  110. RDC_PDAP_LCDIF2 = 59,
  111. RDC_PDAP_PERFMON1 = 60,
  112. RDC_PDAP_PERFMON2 = 61,
  113. RDC_PDAP_NOC_BLK_CTL = 62,
  114. RDC_PDAP_QoSC = 63,
  115. RDC_PDAP_LVDS0 = 64,
  116. RDC_PDAP_LVDS1 = 65,
  117. RDC_PDAP_I2C1 = 66,
  118. RDC_PDAP_I2C2 = 67,
  119. RDC_PDAP_I2C3 = 68,
  120. RDC_PDAP_I2C4 = 69,
  121. RDC_PDAP_UART4 = 70,
  122. RDC_PDAP_HDMI_TX = 71,
  123. RDC_PDAP_IRQ_STEER_Audio_Processor = 72,
  124. RDC_PDAP_SDMA2 = 73,
  125. RDC_PDAP_MU_1_A = 74,
  126. RDC_PDAP_MU_1_B = 75,
  127. RDC_PDAP_SEMAPHORE_HS = 76,
  128. RDC_PDAP_SAI1 = 78,
  129. RDC_PDAP_SAI2 = 79,
  130. RDC_PDAP_SAI3 = 80,
  131. RDC_PDAP_CAN_FD1 = 81,
  132. RDC_PDAP_SAI5 = 82,
  133. RDC_PDAP_SAI6 = 83,
  134. RDC_PDAP_uSDHC1 = 84,
  135. RDC_PDAP_uSDHC2 = 85,
  136. RDC_PDAP_uSDHC3 = 86,
  137. RDC_PDAP_PCIE_PHY1 = 87,
  138. RDC_PDAP_HDMI_TX_AUDLNK_MSTR = 88,
  139. RDC_PDAP_CAN_FD2 = 89,
  140. RDC_PDAP_SPBA2 = 90,
  141. RDC_PDAP_QSPI = 91,
  142. RDC_PDAP_AUDIO_BLK_CTRL = 92,
  143. RDC_PDAP_SDMA1 = 93,
  144. RDC_PDAP_ENET1 = 94,
  145. RDC_PDAP_ENET2_TSN = 95,
  146. RDC_PDAP_ASRC = 97,
  147. RDC_PDAP_eCSPI1 = 98,
  148. RDC_PDAP_eCSPI2 = 99,
  149. RDC_PDAP_eCSPI3 = 100,
  150. RDC_PDAP_SAI7 = 101,
  151. RDC_PDAP_UART1 = 102,
  152. RDC_PDAP_UART3 = 104,
  153. RDC_PDAP_UART2 = 105,
  154. RDC_PDAP_PDM_MICFIL = 106,
  155. RDC_PDAP_AUDIO_XCVR_RX_eARC = 107,
  156. RDC_PDAP_SDMA3 = 109,
  157. RDC_PDAP_SPBA1 = 111,
  158. };
  159. enum csu_csl_idx {
  160. CSU_CSL_GPIO1 = 0,
  161. CSU_CSL_GPIO2 = 1,
  162. CSU_CSL_GPIO3 = 2,
  163. CSU_CSL_GPIO4 = 3,
  164. CSU_CSL_GPIO5 = 4,
  165. CSU_CSL_MU_2_A = 5,
  166. CSU_CSL_ANA_TSENSOR = 6,
  167. CSU_CSL_ANA_OSC = 7,
  168. CSU_CSL_WDOG1 = 8,
  169. CSU_CSL_WDOG2 = 9,
  170. CSU_CSL_WDOG3 = 10,
  171. CSU_CSL_GPT1 = 13,
  172. CSU_CSL_GPT2 = 14,
  173. CSU_CSL_GPT3 = 15,
  174. CSU_CSL_MU_2_B = 16,
  175. CSU_CSL_ROMCP = 17,
  176. CSU_CSL_MU_3_A = 18,
  177. CSU_CSL_IOMUXC = 19,
  178. CSU_CSL_IOMUXC_GPR = 20,
  179. CSU_CSL_OCOTP_CTRL = 21,
  180. CSU_CSL_ANA_PLL = 22,
  181. CSU_CSL_SNVS_HP = 23,
  182. CSU_CSL_CCM = 24,
  183. CSU_CSL_SRC = 25,
  184. CSU_CSL_GPC = 26,
  185. CSU_CSL_SEMAPHORE1 = 27,
  186. CSU_CSL_SEMAPHORE2 = 28,
  187. CSU_CSL_RDC = 29,
  188. CSU_CSL_CSU = 30,
  189. CSU_CSL_MU_3_B = 31,
  190. CSU_CSL_ISI = 32,
  191. CSU_CSL_ISP0 = 33,
  192. CSU_CSL_ISP1 = 34,
  193. CSU_CSL_IPS_Dewarp = 35,
  194. CSU_CSL_MIPI_CSI0 = 36,
  195. CSU_CSL_HSIOMIX_BLK_CTL = 37,
  196. CSU_CSL_PWM1 = 38,
  197. CSU_CSL_PWM2 = 39,
  198. CSU_CSL_PWM3 = 40,
  199. CSU_CSL_PWM4 = 41,
  200. CSU_CSL_System_Counter_RD = 42,
  201. CSU_CSL_System_Counter_CMP = 43,
  202. CSU_CSL_System_Counter_CTRL = 44,
  203. CSU_CSL_I2C5 = 45,
  204. CSU_CSL_GPT6 = 46,
  205. CSU_CSL_GPT5 = 47,
  206. CSU_CSL_GPT4 = 48,
  207. CSU_CSL_MIPI_CSI1 = 49,
  208. CSU_CSL_MIPI_DSI0 = 50,
  209. CSU_CSL_MEDIAMIX_BLK_CTL = 51,
  210. CSU_CSL_LCDIF1 = 52,
  211. CSU_CSL_eDMA_Management_Page = 53,
  212. CSU_CSL_eDMA_Channels_15_0 = 54,
  213. CSU_CSL_eDMA_Channels_31_16 = 55,
  214. CSU_CSL_TZASC = 56,
  215. CSU_CSL_I2C6 = 57,
  216. CSU_CSL_CAAM = 58,
  217. CSU_CSL_LCDIF2 = 59,
  218. CSU_CSL_PERFMON1 = 60,
  219. CSU_CSL_PERFMON2 = 61,
  220. CSU_CSL_NOC_BLK_CTL = 62,
  221. CSU_CSL_QoSC = 63,
  222. CSU_CSL_LVDS0 = 64,
  223. CSU_CSL_LVDS1 = 65,
  224. CSU_CSL_I2C1 = 66,
  225. CSU_CSL_I2C2 = 67,
  226. CSU_CSL_I2C3 = 68,
  227. CSU_CSL_I2C4 = 69,
  228. CSU_CSL_UART4 = 70,
  229. CSU_CSL_HDMI_TX = 71,
  230. CSU_CSL_IRQ_STEER_Audio_Processor = 72,
  231. CSU_CSL_SDMA2 = 73,
  232. CSU_CSL_MU_1_A = 74,
  233. CSU_CSL_MU_1_B = 75,
  234. CSU_CSL_SEMAPHORE_HS = 76,
  235. CSU_CSL_SAI1 = 78,
  236. CSU_CSL_SAI2 = 79,
  237. CSU_CSL_SAI3 = 80,
  238. CSU_CSL_CAN_FD1 = 81,
  239. CSU_CSL_SAI5 = 82,
  240. CSU_CSL_SAI6 = 83,
  241. CSU_CSL_uSDHC1 = 84,
  242. CSU_CSL_uSDHC2 = 85,
  243. CSU_CSL_uSDHC3 = 86,
  244. CSU_CSL_PCIE_PHY1 = 87,
  245. CSU_CSL_HDMI_TX_AUDLNK_MSTR = 88,
  246. CSU_CSL_CAN_FD2 = 89,
  247. CSU_CSL_SPBA2 = 90,
  248. CSU_CSL_QSPI = 91,
  249. CSU_CSL_AUDIO_BLK_CTRL = 92,
  250. CSU_CSL_SDMA1 = 93,
  251. CSU_CSL_ENET1 = 94,
  252. CSU_CSL_ENET2_TSN = 95,
  253. CSU_CSL_ASRC = 97,
  254. CSU_CSL_eCSPI1 = 98,
  255. CSU_CSL_eCSPI2 = 99,
  256. CSU_CSL_eCSPI3 = 100,
  257. CSU_CSL_SAI7 = 101,
  258. CSU_CSL_UART1 = 102,
  259. CSU_CSL_UART3 = 104,
  260. CSU_CSL_UART2 = 105,
  261. CSU_CSL_PDM_MICFIL = 106,
  262. CSU_CSL_AUDIO_XCVR_RX_eARC = 107,
  263. CSU_CSL_SDMA3 = 109,
  264. CSU_CSL_SPBA1 = 111,
  265. CSU_CSL_OCRAM_A = 113,
  266. CSU_CSL_OCRAM = 118,
  267. CSU_CSL_OCRAM_S = 119,
  268. CSU_CSL_VPU = 120,
  269. };
  270. enum csu_sa_idx {
  271. CSU_SA_M7 = 1,
  272. CSU_SA_SDMA1 = 2,
  273. CSU_SA_PCIE_CTRL1 = 3,
  274. CSU_SA_USB1 = 4,
  275. CSU_SA_USB2 = 6,
  276. CSU_SA_APB_HDMA = 8,
  277. CSU_SA_ENET1 = 9,
  278. CSU_SA_USDHC1 = 10,
  279. CSU_SA_USDHC2 = 11,
  280. CSU_SA_USDHC3 = 12,
  281. CSU_SA_HUGO = 13,
  282. CSU_SA_DAP = 14,
  283. CSU_SA_SDMA2 = 15,
  284. CSU_SA_CAAM = 16,
  285. CSU_SA_SDMA3 = 17,
  286. CSU_SA_LCDIF1 = 18,
  287. CSU_SA_ISI = 19,
  288. CSU_SA_NPU = 20,
  289. CSU_SA_LCDIF2 = 21,
  290. CSU_SA_HDMI_TX = 22,
  291. CSU_SA_ENET2 = 23,
  292. CSU_SA_GPU3D = 24,
  293. CSU_SA_GPU2D = 25,
  294. CSU_SA_VPU_G1 = 26,
  295. CSU_SA_VPU_G2 = 27,
  296. CSU_SA_VPU_VC8000E = 28,
  297. CSU_SA_AUDIO_EDMA = 29,
  298. CSU_SA_ISP1 = 30,
  299. CSU_SA_ISP2 = 31,
  300. CSU_SA_DEWARP = 32,
  301. CSU_SA_GIC500 = 33,
  302. };
  303. #endif /* IMX_SEC_DEF_H */