imx_sec_def.h 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  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_SDMA3p = 3,
  13. RDC_MDA_LCDIF = 5,
  14. RDC_MDA_ISI = 6,
  15. RDC_MDA_SDMA3b = 7,
  16. RDC_MDA_Coresight = 8,
  17. RDC_MDA_DAP = 9,
  18. RDC_MDA_CAAM = 10,
  19. RDC_MDA_SDMA1p = 11,
  20. RDC_MDA_SDMA1b = 12,
  21. RDC_MDA_APBHDMA = 13,
  22. RDC_MDA_RAWNAND = 14,
  23. RDC_MDA_uSDHC1 = 15,
  24. RDC_MDA_uSDHC2 = 16,
  25. RDC_MDA_uSDHC3 = 17,
  26. RDC_MDA_GPU = 18,
  27. RDC_MDA_USB1 = 19,
  28. RDC_MDA_TESTPORT = 21,
  29. RDC_MDA_ENET1_TX = 22,
  30. RDC_MDA_ENET1_RX = 23,
  31. RDC_MDA_SDMA2 = 24,
  32. };
  33. /* RDC Peripherals index */
  34. enum rdc_pdap_idx {
  35. RDC_PDAP_GPIO1 = 0,
  36. RDC_PDAP_GPIO2 = 1,
  37. RDC_PDAP_GPIO3 = 2,
  38. RDC_PDAP_GPIO4 = 3,
  39. RDC_PDAP_GPIO5 = 4,
  40. RDC_PDAP_ANA_TSENSOR = 6,
  41. RDC_PDAP_ANA_OSC = 7,
  42. RDC_PDAP_WDOG1 = 8,
  43. RDC_PDAP_WDOG2 = 9,
  44. RDC_PDAP_WDOG3 = 10,
  45. RDC_PDAP_SDMA3 = 11,
  46. RDC_PDAP_SDMA2 = 12,
  47. RDC_PDAP_GPT1 = 13,
  48. RDC_PDAP_GPT2 = 14,
  49. RDC_PDAP_GPT3 = 15,
  50. RDC_PDAP_ROMCP = 17,
  51. RDC_PDAP_IOMUXC = 19,
  52. RDC_PDAP_IOMUXC_GPR = 20,
  53. RDC_PDAP_OCOTP_CTRL = 21,
  54. RDC_PDAP_ANA_PLL = 22,
  55. RDC_PDAP_SNVS_HP = 23,
  56. RDC_PDAP_CCM = 24,
  57. RDC_PDAP_SRC = 25,
  58. RDC_PDAP_GPC = 26,
  59. RDC_PDAP_SEMAPHORE1 = 27,
  60. RDC_PDAP_SEMAPHORE2 = 28,
  61. RDC_PDAP_RDC = 29,
  62. RDC_PDAP_CSU = 30,
  63. RDC_PDAP_LCDIF = 32,
  64. RDC_PDAP_MIPI_DSI = 33,
  65. RDC_PDAP_ISI = 34,
  66. RDC_PDAP_MIPI_CSI = 35,
  67. RDC_PDAP_USB1 = 36,
  68. RDC_PDAP_PWM1 = 38,
  69. RDC_PDAP_PWM2 = 39,
  70. RDC_PDAP_PWM3 = 40,
  71. RDC_PDAP_PWM4 = 41,
  72. RDC_PDAP_System_Counter_RD = 42,
  73. RDC_PDAP_System_Counter_CMP = 43,
  74. RDC_PDAP_System_Counter_CTRL = 44,
  75. RDC_PDAP_GPT6 = 46,
  76. RDC_PDAP_GPT5 = 47,
  77. RDC_PDAP_GPT4 = 48,
  78. RDC_PDAP_TZASC = 56,
  79. RDC_PDAP_PERFMON1 = 60,
  80. RDC_PDAP_PERFMON2 = 61,
  81. RDC_PDAP_PLATFORM_CTRL = 62,
  82. RDC_PDAP_QoSC = 63,
  83. RDC_PDAP_I2C1 = 66,
  84. RDC_PDAP_I2C2 = 67,
  85. RDC_PDAP_I2C3 = 68,
  86. RDC_PDAP_I2C4 = 69,
  87. RDC_PDAP_UART4 = 70,
  88. RDC_PDAP_MU_A = 74,
  89. RDC_PDAP_MU_B = 75,
  90. RDC_PDAP_SEMAPHORE_HS = 76,
  91. RDC_PDAP_SAI2 = 79,
  92. RDC_PDAP_SAI3 = 80,
  93. RDC_PDAP_SAI5 = 82,
  94. RDC_PDAP_SAI6 = 83,
  95. RDC_PDAP_uSDHC1 = 84,
  96. RDC_PDAP_uSDHC2 = 85,
  97. RDC_PDAP_uSDHC3 = 86,
  98. RDC_PDAP_SAI7 = 87,
  99. RDC_PDAP_SPBA2 = 90,
  100. RDC_PDAP_QSPI = 91,
  101. RDC_PDAP_SDMA1 = 93,
  102. RDC_PDAP_ENET1 = 94,
  103. RDC_PDAP_SPDIF1 = 97,
  104. RDC_PDAP_eCSPI1 = 98,
  105. RDC_PDAP_eCSPI2 = 99,
  106. RDC_PDAP_eCSPI3 = 100,
  107. RDC_PDAP_MICFIL = 101,
  108. RDC_PDAP_UART1 = 102,
  109. RDC_PDAP_UART3 = 104,
  110. RDC_PDAP_UART2 = 105,
  111. RDC_PDAP_ASRC = 107,
  112. RDC_PDAP_SPBA1 = 111,
  113. RDC_PDAP_CAAM = 114,
  114. };
  115. enum csu_csl_idx {
  116. CSU_CSL_GPIO1 = 0,
  117. CSU_CSL_GPIO2 = 1,
  118. CSU_CSL_GPIO3 = 2,
  119. CSU_CSL_GPIO4 = 3,
  120. CSU_CSL_GPIO5 = 4,
  121. CSU_CSL_ANA_TSENSOR = 6,
  122. CSU_CSL_ANA_OSC = 7,
  123. CSU_CSL_WDOG1 = 8,
  124. CSU_CSL_WDOG2 = 9,
  125. CSU_CSL_WDOG3 = 10,
  126. CSU_CSL_SDMA2 = 12,
  127. CSU_CSL_GPT1 = 13,
  128. CSU_CSL_GPT2 = 14,
  129. CSU_CSL_GPT3 = 15,
  130. CSU_CSL_ROMCP = 17,
  131. CSU_CSL_LCDIF = 18,
  132. CSU_CSL_IOMUXC = 19,
  133. CSU_CSL_IOMUXC_GPR = 20,
  134. CSU_CSL_OCOTP_CTRL = 21,
  135. CSU_CSL_ANA_PLL = 22,
  136. CSU_CSL_SNVS_HP = 23,
  137. CSU_CSL_CCM = 24,
  138. CSU_CSL_SRC = 25,
  139. CSU_CSL_GPC = 26,
  140. CSU_CSL_SEMAPHORE1 = 27,
  141. CSU_CSL_SEMAPHORE2 = 28,
  142. CSU_CSL_RDC = 29,
  143. CSU_CSL_CSU = 30,
  144. CSU_CSL_DC_MST0 = 32,
  145. CSU_CSL_DC_MST1 = 33,
  146. CSU_CSL_DC_MST2 = 34,
  147. CSU_CSL_DC_MST3 = 35,
  148. CSU_CSL_PWM1 = 38,
  149. CSU_CSL_PWM2 = 39,
  150. CSU_CSL_PWM3 = 40,
  151. CSU_CSL_PWM4 = 41,
  152. CSU_CSL_System_Counter_RD = 42,
  153. CSU_CSL_System_Counter_CMP = 43,
  154. CSU_CSL_System_Counter_CTRL = 44,
  155. CSU_CSL_GPT6 = 46,
  156. CSU_CSL_GPT5 = 47,
  157. CSU_CSL_GPT4 = 48,
  158. CSU_CSL_TZASC = 56,
  159. CSU_CSL_MTR = 59,
  160. CSU_CSL_PERFMON1 = 60,
  161. CSU_CSL_PERFMON2 = 61,
  162. CSU_CSL_PLATFORM_CTRL = 62,
  163. CSU_CSL_QoSC = 63,
  164. CSU_CSL_MIPI_PHY = 64,
  165. CSU_CSL_MIPI_DSI = 65,
  166. CSU_CSL_I2C1 = 66,
  167. CSU_CSL_I2C2 = 67,
  168. CSU_CSL_I2C3 = 68,
  169. CSU_CSL_I2C4 = 69,
  170. CSU_CSL_UART4 = 70,
  171. CSU_CSL_MIPI_CSI1 = 71,
  172. CSU_CSL_MIPI_CSI_PHY1 = 72,
  173. CSU_CSL_CSI1 = 73,
  174. CSU_CSL_MU_A = 74,
  175. CSU_CSL_MU_B = 75,
  176. CSU_CSL_SEMAPHORE_HS = 76,
  177. CSU_CSL_SAI1 = 78,
  178. CSU_CSL_SAI6 = 80,
  179. CSU_CSL_SAI5 = 81,
  180. CSU_CSL_SAI4 = 82,
  181. CSU_CSL_uSDHC1 = 84,
  182. CSU_CSL_uSDHC2 = 85,
  183. CSU_CSL_MIPI_CSI2 = 86,
  184. CSU_CSL_MIPI_CSI_PHY2 = 87,
  185. CSU_CSL_CSI2 = 88,
  186. CSU_CSL_SPBA2 = 90,
  187. CSU_CSL_QSPI = 91,
  188. CSU_CSL_SDMA1 = 93,
  189. CSU_CSL_ENET1 = 94,
  190. CSU_CSL_SPDIF1 = 97,
  191. CSU_CSL_eCSPI1 = 98,
  192. CSU_CSL_eCSPI2 = 99,
  193. CSU_CSL_eCSPI3 = 100,
  194. CSU_CSL_UART1 = 102,
  195. CSU_CSL_UART3 = 104,
  196. CSU_CSL_UART2 = 105,
  197. CSU_CSL_SPDIF2 = 106,
  198. CSU_CSL_SAI2 = 107,
  199. CSU_CSL_SAI3 = 108,
  200. CSU_CSL_SPBA1 = 111,
  201. CSU_CSL_CAAM = 114,
  202. CSU_CSL_OCRAM = 118,
  203. CSU_CSL_OCRAM_S = 119,
  204. };
  205. enum csu_sa_idx {
  206. CSU_SA_M7 = 1,
  207. CSU_SA_SDMA1 = 2,
  208. CSU_SA_USB1 = 4,
  209. CSU_SA_GPU = 7,
  210. CSU_SA_APBHDMA = 8,
  211. CSU_SA_ENET1 = 9,
  212. CSU_SA_USDHC1 = 10,
  213. CSU_SA_USDHC2 = 11,
  214. CSU_SA_USDHC3 = 12,
  215. CSU_SA_HUGO = 13,
  216. CSU_SA_DAP = 14,
  217. CSU_SA_SDMA2 = 15,
  218. CSU_SA_CAAM = 16,
  219. CSU_SA_SDMA3 = 17,
  220. CSU_SA_LCDIF = 18,
  221. CSU_SA_ISI = 19,
  222. };
  223. #endif /* IMX_SEC_DEF_H */