imx_sec_def.h 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  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_M4 = 1,
  12. RDC_MDA_PCIE_CTRL1 = 2,
  13. RDC_MDA_PCIE_CTRL2 = 3,
  14. RDC_MDA_VPU_DEC = 4,
  15. RDC_MDA_LCDIF = 5,
  16. RDC_MDA_CSI1 = 6,
  17. RDC_MDA_CSI2 = 7,
  18. RDC_MDA_Coresight = 8,
  19. RDC_MDA_DAP = 9,
  20. RDC_MDA_CAAM = 10,
  21. RDC_MDA_SDMAp = 11,
  22. RDC_MDA_SDMAb = 12,
  23. RDC_MDA_APBHDMA = 13,
  24. RDC_MDA_RAWNAND = 14,
  25. RDC_MDA_uSDHC1 = 15,
  26. RDC_MDA_uSDHC2 = 16,
  27. RDC_MDA_DCSS = 17,
  28. RDC_MDA_GPU = 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_SDMA1 = 26,
  36. };
  37. /* RDC Peripherals index */
  38. enum rdc_pdap_idx {
  39. RDC_PDAP_GPIO1 = 0,
  40. RDC_PDAP_GPIO2 = 1,
  41. RDC_PDAP_GPIO3 = 2,
  42. RDC_PDAP_GPIO4 = 3,
  43. RDC_PDAP_GPIO5 = 4,
  44. RDC_PDAP_ANA_TSENSOR = 6,
  45. RDC_PDAP_ANA_OSC = 7,
  46. RDC_PDAP_WDOG1 = 8,
  47. RDC_PDAP_WDOG2 = 9,
  48. RDC_PDAP_WDOG3 = 10,
  49. RDC_PDAP_SDMA2 = 12,
  50. RDC_PDAP_GPT1 = 13,
  51. RDC_PDAP_GPT2 = 14,
  52. RDC_PDAP_GPT3 = 15,
  53. RDC_PDAP_ROMCP = 17,
  54. RDC_PDAP_LCDIF = 18,
  55. RDC_PDAP_IOMUXC = 19,
  56. RDC_PDAP_IOMUXC_GPR = 20,
  57. RDC_PDAP_OCOTP_CTRL = 21,
  58. RDC_PDAP_ANATOP_PLL = 22,
  59. RDC_PDAP_SNVS_HP = 23,
  60. RDC_PDAP_CCM = 24,
  61. RDC_PDAP_SRC = 25,
  62. RDC_PDAP_GPC = 26,
  63. RDC_PDAP_SEMAPHORE1 = 27,
  64. RDC_PDAP_SEMAPHORE2 = 28,
  65. RDC_PDAP_RDC = 29,
  66. RDC_PDAP_CSU = 30,
  67. RDC_PDAP_MST0 = 32,
  68. RDC_PDAP_MST1 = 33,
  69. RDC_PDAP_MST2 = 34,
  70. RDC_PDAP_MST3 = 35,
  71. RDC_PDAP_HDMI_SEC = 36,
  72. RDC_PDAP_PWM1 = 38,
  73. RDC_PDAP_PWM2 = 39,
  74. RDC_PDAP_PWM3 = 40,
  75. RDC_PDAP_PWM4 = 41,
  76. RDC_PDAP_SysCounter_RD = 42,
  77. RDC_PDAP_SysCounter_CMP = 43,
  78. RDC_PDAP_SysCounter_CTRL = 44,
  79. RDC_PDAP_HDMI_CTRL = 45,
  80. RDC_PDAP_GPT6 = 46,
  81. RDC_PDAP_GPT5 = 47,
  82. RDC_PDAP_GPT4 = 48,
  83. RDC_PDAP_TZASC = 56,
  84. RDC_PDAP_MTR = 59,
  85. RDC_PDAP_PERFMON1 = 60,
  86. RDC_PDAP_PERFMON2 = 61,
  87. RDC_PDAP_PLATFORM_CTRL = 62,
  88. RDC_PDAP_QoSC = 63,
  89. RDC_PDAP_MIPI_PHY = 64,
  90. RDC_PDAP_MIPI_DSI = 65,
  91. RDC_PDAP_I2C1 = 66,
  92. RDC_PDAP_I2C2 = 67,
  93. RDC_PDAP_I2C3 = 68,
  94. RDC_PDAP_I2C4 = 69,
  95. RDC_PDAP_UART4 = 70,
  96. RDC_PDAP_MIPI_CSI1 = 71,
  97. RDC_PDAP_MIPI_CSI_PHY1 = 72,
  98. RDC_PDAP_CSI1 = 73,
  99. RDC_PDAP_MU_A = 74,
  100. RDC_PDAP_MU_B = 75,
  101. RDC_PDAP_SEMAPHORE_HS = 76,
  102. RDC_PDAP_SAI1 = 78,
  103. RDC_PDAP_SAI6 = 80,
  104. RDC_PDAP_SAI5 = 81,
  105. RDC_PDAP_SAI4 = 82,
  106. RDC_PDAP_USDHC1 = 84,
  107. RDC_PDAP_USDHC2 = 85,
  108. RDC_PDAP_MIPI_CSI2 = 86,
  109. RDC_PDAP_MIPI_CSI_PHY2 = 87,
  110. RDC_PDAP_CSI2 = 88,
  111. RDC_PDAP_QSPI = 91,
  112. RDC_PDAP_SDMA1 = 93,
  113. RDC_PDAP_ENET1 = 94,
  114. RDC_PDAP_SPDIF1 = 97,
  115. RDC_PDAP_ECSPI1 = 98,
  116. RDC_PDAP_ECSPI2 = 99,
  117. RDC_PDAP_ECSPI3 = 100,
  118. RDC_PDAP_UART1 = 102,
  119. RDC_PDAP_UART3 = 104,
  120. RDC_PDAP_UART2 = 105,
  121. RDC_PDAP_SPDIF2 = 106,
  122. RDC_PDAP_SAI2 = 107,
  123. RDC_PDAP_SAI3 = 108,
  124. RDC_PDAP_SPBA1 = 111,
  125. RDC_PDAP_CAAM = 114,
  126. RDC_PDAP_DDRC_SEC = 115,
  127. RDC_PDAP_GIC_EXSC = 116,
  128. RDC_PDAP_USB_EXSC = 117,
  129. RDC_PDAP_OCRAM_TZ = 118,
  130. RDC_PDAP_OCRAM_S_TZ = 119,
  131. RDC_PDAP_VPU_SEC = 120,
  132. RDC_PDAP_DAP_EXSC = 121,
  133. RDC_PDAP_ROMCP_SEC = 122,
  134. RDC_PDAP_APBHDMA_SEC = 123,
  135. RDC_PDAP_M4_SEC = 124,
  136. RDC_PDAP_QSPI_SEC = 125,
  137. RDC_PDAP_GPU_EXSC = 126,
  138. RDC_PDAP_PCIE = 127,
  139. };
  140. enum csu_csl_idx {
  141. CSU_CSL_GPIO1 = 0,
  142. CSU_CSL_GPIO2 = 1,
  143. CSU_CSL_GPIO3 = 2,
  144. CSU_CSL_GPIO4 = 3,
  145. CSU_CSL_GPIO5 = 4,
  146. CSU_CSL_ANA_TSENSOR = 6,
  147. CSU_CSL_ANA_OSC = 7,
  148. CSU_CSL_WDOG1 = 8,
  149. CSU_CSL_WDOG2 = 9,
  150. CSU_CSL_WDOG3 = 10,
  151. CSU_CSL_SDMA2 = 12,
  152. CSU_CSL_GPT1 = 13,
  153. CSU_CSL_GPT2 = 14,
  154. CSU_CSL_GPT3 = 15,
  155. CSU_CSL_ROMCP = 17,
  156. CSU_CSL_LCDIF = 18,
  157. CSU_CSL_IOMUXC = 19,
  158. CSU_CSL_IOMUXC_GPR = 20,
  159. CSU_CSL_OCOTP_CTRL = 21,
  160. CSU_CSL_ANATOP_PLL = 22,
  161. CSU_CSL_SNVS_HP = 23,
  162. CSU_CSL_CCM = 24,
  163. CSU_CSL_SRC = 25,
  164. CSU_CSL_GPC = 26,
  165. CSU_CSL_SEMAPHORE1 = 27,
  166. CSU_CSL_SEMAPHORE2 = 28,
  167. CSU_CSL_RDC = 29,
  168. CSU_CSL_CSU = 30,
  169. CSU_CSL_MST0 = 32,
  170. CSU_CSL_MST1 = 33,
  171. CSU_CSL_MST2 = 34,
  172. CSU_CSL_MST3 = 35,
  173. CSU_CSL_HDMI_SEC = 36,
  174. CSU_CSL_PWM1 = 38,
  175. CSU_CSL_PWM2 = 39,
  176. CSU_CSL_PWM3 = 40,
  177. CSU_CSL_PWM4 = 41,
  178. CSU_CSL_SysCounter_RD = 42,
  179. CSU_CSL_SysCounter_CMP = 43,
  180. CSU_CSL_SysCounter_CTRL = 44,
  181. CSU_CSL_HDMI_CTRL = 45,
  182. CSU_CSL_GPT6 = 46,
  183. CSU_CSL_GPT5 = 47,
  184. CSU_CSL_GPT4 = 48,
  185. CSU_CSL_TZASC = 56,
  186. CSU_CSL_MTR = 59,
  187. CSU_CSL_PERFMON1 = 60,
  188. CSU_CSL_PERFMON2 = 61,
  189. CSU_CSL_PLATFORM_CTRL = 62,
  190. CSU_CSL_QoSC = 63,
  191. CSU_CSL_MIPI_PHY = 64,
  192. CSU_CSL_MIPI_DSI = 65,
  193. CSU_CSL_I2C1 = 66,
  194. CSU_CSL_I2C2 = 67,
  195. CSU_CSL_I2C3 = 68,
  196. CSU_CSL_I2C4 = 69,
  197. CSU_CSL_UART4 = 70,
  198. CSU_CSL_MIPI_CSI1 = 71,
  199. CSU_CSL_MIPI_CSI_PHY1 = 72,
  200. CSU_CSL_CSI1 = 73,
  201. CSU_CSL_MU_A = 74,
  202. CSU_CSL_MU_B = 75,
  203. CSU_CSL_SEMAPHORE_HS = 76,
  204. CSU_CSL_SAI1 = 78,
  205. CSU_CSL_SAI6 = 80,
  206. CSU_CSL_SAI5 = 81,
  207. CSU_CSL_SAI4 = 82,
  208. CSU_CSL_USDHC1 = 84,
  209. CSU_CSL_USDHC2 = 85,
  210. CSU_CSL_MIPI_CSI2 = 86,
  211. CSU_CSL_MIPI_CSI_PHY2 = 87,
  212. CSU_CSL_CSI2 = 88,
  213. CSU_CSL_QSPI = 91,
  214. CSU_CSL_SDMA1 = 93,
  215. CSU_CSL_ENET1 = 94,
  216. CSU_CSL_SPDIF1 = 97,
  217. CSU_CSL_ECSPI1 = 98,
  218. CSU_CSL_ECSPI2 = 99,
  219. CSU_CSL_ECSPI3 = 100,
  220. CSU_CSL_UART1 = 102,
  221. CSU_CSL_UART3 = 104,
  222. CSU_CSL_UART2 = 105,
  223. CSU_CSL_SPDIF2 = 106,
  224. CSU_CSL_SAI2 = 107,
  225. CSU_CSL_SAI3 = 108,
  226. CSU_CSL_SPBA1 = 111,
  227. CSU_CSL_MOD_EN3 = 112,
  228. CSU_CSL_MOD_EN0 = 113,
  229. CSU_CSL_CAAM = 114,
  230. CSU_CSL_DDRC_SEC = 115,
  231. CSU_CSL_GIC_EXSC = 116,
  232. CSU_CSL_USB_EXSC = 117,
  233. CSU_CSL_OCRAM_TZ = 118,
  234. CSU_CSL_OCRAM_S_TZ = 119,
  235. CSU_CSL_VPU_SEC = 120,
  236. CSU_CSL_DAP_EXSC = 121,
  237. CSU_CSL_ROMCP_SEC = 122,
  238. CSU_CSL_APBHDMA_SEC = 123,
  239. CSU_CSL_M4_SEC = 124,
  240. CSU_CSL_QSPI_SEC = 125,
  241. CSU_CSL_GPU_EXSC = 126,
  242. CSU_CSL_PCIE = 127,
  243. };
  244. #endif /* IMX_SEC_DEF_H */