hpm_trgmmux_src.h 46 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734
  1. /*
  2. * Copyright (c) 2021-2023 HPMicro
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. *
  6. */
  7. #ifndef HPM_TRGMMUX_SRC_H
  8. #define HPM_TRGMMUX_SRC_H
  9. /* trgm0_input mux definitions */
  10. #define HPM_TRGM0_INPUT_SRC_VSS (0x0UL)
  11. #define HPM_TRGM0_INPUT_SRC_VDD (0x1UL)
  12. #define HPM_TRGM0_INPUT_SRC_TRGM0_P0 (0x2UL)
  13. #define HPM_TRGM0_INPUT_SRC_TRGM0_P1 (0x3UL)
  14. #define HPM_TRGM0_INPUT_SRC_TRGM0_P2 (0x4UL)
  15. #define HPM_TRGM0_INPUT_SRC_TRGM0_P3 (0x5UL)
  16. #define HPM_TRGM0_INPUT_SRC_TRGM0_P4 (0x6UL)
  17. #define HPM_TRGM0_INPUT_SRC_TRGM0_P5 (0x7UL)
  18. #define HPM_TRGM0_INPUT_SRC_TRGM0_P6 (0x8UL)
  19. #define HPM_TRGM0_INPUT_SRC_TRGM0_P7 (0x9UL)
  20. #define HPM_TRGM0_INPUT_SRC_TRGM0_P8 (0xAUL)
  21. #define HPM_TRGM0_INPUT_SRC_TRGM0_P9 (0xBUL)
  22. #define HPM_TRGM0_INPUT_SRC_TRGM0_P10 (0xCUL)
  23. #define HPM_TRGM0_INPUT_SRC_TRGM0_P11 (0xDUL)
  24. #define HPM_TRGM0_INPUT_SRC_TRGM3_OUTX0 (0xEUL)
  25. #define HPM_TRGM0_INPUT_SRC_TRGM3_OUTX1 (0xFUL)
  26. #define HPM_TRGM0_INPUT_SRC_TRGM2_OUTX0 (0x10UL)
  27. #define HPM_TRGM0_INPUT_SRC_TRGM2_OUTX1 (0x11UL)
  28. #define HPM_TRGM0_INPUT_SRC_TRGM1_OUTX0 (0x12UL)
  29. #define HPM_TRGM0_INPUT_SRC_TRGM1_OUTX1 (0x13UL)
  30. #define HPM_TRGM0_INPUT_SRC_PWM0_CH8REF (0x14UL)
  31. #define HPM_TRGM0_INPUT_SRC_PWM0_CH9REF (0x15UL)
  32. #define HPM_TRGM0_INPUT_SRC_PWM0_CH10REF (0x16UL)
  33. #define HPM_TRGM0_INPUT_SRC_PWM0_CH11REF (0x17UL)
  34. #define HPM_TRGM0_INPUT_SRC_PWM0_CH12REF (0x18UL)
  35. #define HPM_TRGM0_INPUT_SRC_PWM0_CH13REF (0x19UL)
  36. #define HPM_TRGM0_INPUT_SRC_PWM0_CH14REF (0x1AUL)
  37. #define HPM_TRGM0_INPUT_SRC_PWM0_CH15REF (0x1BUL)
  38. #define HPM_TRGM0_INPUT_SRC_QEI0_TRGO (0x1CUL)
  39. #define HPM_TRGM0_INPUT_SRC_HALL0_TRGO (0x1DUL)
  40. #define HPM_TRGM0_INPUT_SRC_PTPC_CMP0 (0x1EUL)
  41. #define HPM_TRGM0_INPUT_SRC_PTPC_CMP1 (0x1FUL)
  42. #define HPM_TRGM0_INPUT_SRC_SYNT_CH0 (0x20UL)
  43. #define HPM_TRGM0_INPUT_SRC_SYNT_CH1 (0x21UL)
  44. #define HPM_TRGM0_INPUT_SRC_SYNT_CH2 (0x22UL)
  45. #define HPM_TRGM0_INPUT_SRC_SYNT_CH3 (0x23UL)
  46. #define HPM_TRGM0_INPUT_SRC_USB0_SOF (0x24UL)
  47. #define HPM_TRGM0_INPUT_SRC_DEBUG_FLAG (0x25UL)
  48. #define HPM_TRGM0_INPUT_SRC_GPTMR0_OUT2 (0x26UL)
  49. #define HPM_TRGM0_INPUT_SRC_GPTMR0_OUT3 (0x27UL)
  50. #define HPM_TRGM0_INPUT_SRC_SDM_CMPL0 (0x28UL)
  51. #define HPM_TRGM0_INPUT_SRC_SDM_CMPL1 (0x29UL)
  52. #define HPM_TRGM0_INPUT_SRC_SDM_CMPL2 (0x2AUL)
  53. #define HPM_TRGM0_INPUT_SRC_SDM_CMPL3 (0x2BUL)
  54. #define HPM_TRGM0_INPUT_SRC_SDM_CMPH0 (0x2CUL)
  55. #define HPM_TRGM0_INPUT_SRC_SDM_CMPH1 (0x2DUL)
  56. #define HPM_TRGM0_INPUT_SRC_SDM_CMPH2 (0x2EUL)
  57. #define HPM_TRGM0_INPUT_SRC_SDM_CMPH3 (0x2FUL)
  58. #define HPM_TRGM0_INPUT_SRC_SDM_CMPHZ0 (0x30UL)
  59. #define HPM_TRGM0_INPUT_SRC_SDM_CMPHZ1 (0x31UL)
  60. #define HPM_TRGM0_INPUT_SRC_SDM_CMPHZ2 (0x32UL)
  61. #define HPM_TRGM0_INPUT_SRC_SDM_CMPHZ3 (0x33UL)
  62. #define HPM_TRGM0_INPUT_SRC_CMP0_OUT (0x34UL)
  63. #define HPM_TRGM0_INPUT_SRC_CMP1_OUT (0x35UL)
  64. #define HPM_TRGM0_INPUT_SRC_CMP2_OUT (0x36UL)
  65. #define HPM_TRGM0_INPUT_SRC_CMP3_OUT (0x37UL)
  66. #define HPM_TRGM0_INPUT_SRC_PLA0_OUT0 (0x38UL)
  67. #define HPM_TRGM0_INPUT_SRC_PLA0_OUT1 (0x39UL)
  68. #define HPM_TRGM0_INPUT_SRC_PLA0_OUT2 (0x3AUL)
  69. #define HPM_TRGM0_INPUT_SRC_PLA0_OUT3 (0x3BUL)
  70. #define HPM_TRGM0_INPUT_SRC_PLA0_OUT4 (0x3CUL)
  71. #define HPM_TRGM0_INPUT_SRC_PLA0_OUT5 (0x3DUL)
  72. #define HPM_TRGM0_INPUT_SRC_PLA0_OUT6 (0x3EUL)
  73. #define HPM_TRGM0_INPUT_SRC_PLA0_OUT7 (0x3FUL)
  74. /* trgm1_input mux definitions */
  75. #define HPM_TRGM1_INPUT_SRC_VSS (0x0UL)
  76. #define HPM_TRGM1_INPUT_SRC_VDD (0x1UL)
  77. #define HPM_TRGM1_INPUT_SRC_TRGM1_P0 (0x2UL)
  78. #define HPM_TRGM1_INPUT_SRC_TRGM1_P1 (0x3UL)
  79. #define HPM_TRGM1_INPUT_SRC_TRGM1_P2 (0x4UL)
  80. #define HPM_TRGM1_INPUT_SRC_TRGM1_P3 (0x5UL)
  81. #define HPM_TRGM1_INPUT_SRC_TRGM1_P4 (0x6UL)
  82. #define HPM_TRGM1_INPUT_SRC_TRGM1_P5 (0x7UL)
  83. #define HPM_TRGM1_INPUT_SRC_TRGM1_P6 (0x8UL)
  84. #define HPM_TRGM1_INPUT_SRC_TRGM1_P7 (0x9UL)
  85. #define HPM_TRGM1_INPUT_SRC_TRGM1_P8 (0xAUL)
  86. #define HPM_TRGM1_INPUT_SRC_TRGM1_P9 (0xBUL)
  87. #define HPM_TRGM1_INPUT_SRC_TRGM1_P10 (0xCUL)
  88. #define HPM_TRGM1_INPUT_SRC_TRGM1_P11 (0xDUL)
  89. #define HPM_TRGM1_INPUT_SRC_TRGM3_OUTX0 (0xEUL)
  90. #define HPM_TRGM1_INPUT_SRC_TRGM3_OUTX1 (0xFUL)
  91. #define HPM_TRGM1_INPUT_SRC_TRGM2_OUTX0 (0x10UL)
  92. #define HPM_TRGM1_INPUT_SRC_TRGM2_OUTX1 (0x11UL)
  93. #define HPM_TRGM1_INPUT_SRC_TRGM0_OUTX0 (0x12UL)
  94. #define HPM_TRGM1_INPUT_SRC_TRGM0_OUTX1 (0x13UL)
  95. #define HPM_TRGM1_INPUT_SRC_PWM1_CH8REF (0x14UL)
  96. #define HPM_TRGM1_INPUT_SRC_PWM1_CH9REF (0x15UL)
  97. #define HPM_TRGM1_INPUT_SRC_PWM1_CH10REF (0x16UL)
  98. #define HPM_TRGM1_INPUT_SRC_PWM1_CH11REF (0x17UL)
  99. #define HPM_TRGM1_INPUT_SRC_PWM1_CH12REF (0x18UL)
  100. #define HPM_TRGM1_INPUT_SRC_PWM1_CH13REF (0x19UL)
  101. #define HPM_TRGM1_INPUT_SRC_PWM1_CH14REF (0x1AUL)
  102. #define HPM_TRGM1_INPUT_SRC_PWM1_CH15REF (0x1BUL)
  103. #define HPM_TRGM1_INPUT_SRC_QEI1_TRGO (0x1CUL)
  104. #define HPM_TRGM1_INPUT_SRC_HALL1_TRGO (0x1DUL)
  105. #define HPM_TRGM1_INPUT_SRC_PTPC_CMP0 (0x1EUL)
  106. #define HPM_TRGM1_INPUT_SRC_PTPC_CMP1 (0x1FUL)
  107. #define HPM_TRGM1_INPUT_SRC_SYNT_CH0 (0x20UL)
  108. #define HPM_TRGM1_INPUT_SRC_SYNT_CH1 (0x21UL)
  109. #define HPM_TRGM1_INPUT_SRC_SYNT_CH2 (0x22UL)
  110. #define HPM_TRGM1_INPUT_SRC_SYNT_CH3 (0x23UL)
  111. #define HPM_TRGM1_INPUT_SRC_USB0_SOF (0x24UL)
  112. #define HPM_TRGM1_INPUT_SRC_DEBUG_FLAG (0x25UL)
  113. #define HPM_TRGM1_INPUT_SRC_GPTMR1_OUT2 (0x26UL)
  114. #define HPM_TRGM1_INPUT_SRC_GPTMR1_OUT3 (0x27UL)
  115. #define HPM_TRGM1_INPUT_SRC_SDM_CMPL0 (0x28UL)
  116. #define HPM_TRGM1_INPUT_SRC_SDM_CMPL1 (0x29UL)
  117. #define HPM_TRGM1_INPUT_SRC_SDM_CMPL2 (0x2AUL)
  118. #define HPM_TRGM1_INPUT_SRC_SDM_CMPL3 (0x2BUL)
  119. #define HPM_TRGM1_INPUT_SRC_SDM_CMPH0 (0x2CUL)
  120. #define HPM_TRGM1_INPUT_SRC_SDM_CMPH1 (0x2DUL)
  121. #define HPM_TRGM1_INPUT_SRC_SDM_CMPH2 (0x2EUL)
  122. #define HPM_TRGM1_INPUT_SRC_SDM_CMPH3 (0x2FUL)
  123. #define HPM_TRGM1_INPUT_SRC_SDM_CMPHZ0 (0x30UL)
  124. #define HPM_TRGM1_INPUT_SRC_SDM_CMPHZ1 (0x31UL)
  125. #define HPM_TRGM1_INPUT_SRC_SDM_CMPHZ2 (0x32UL)
  126. #define HPM_TRGM1_INPUT_SRC_SDM_CMPHZ3 (0x33UL)
  127. #define HPM_TRGM1_INPUT_SRC_CMP0_OUT (0x34UL)
  128. #define HPM_TRGM1_INPUT_SRC_CMP1_OUT (0x35UL)
  129. #define HPM_TRGM1_INPUT_SRC_CMP2_OUT (0x36UL)
  130. #define HPM_TRGM1_INPUT_SRC_CMP3_OUT (0x37UL)
  131. #define HPM_TRGM1_INPUT_SRC_PLA1_OUT0 (0x38UL)
  132. #define HPM_TRGM1_INPUT_SRC_PLA1_OUT1 (0x39UL)
  133. #define HPM_TRGM1_INPUT_SRC_PLA1_OUT2 (0x3AUL)
  134. #define HPM_TRGM1_INPUT_SRC_PLA1_OUT3 (0x3BUL)
  135. #define HPM_TRGM1_INPUT_SRC_PLA1_OUT4 (0x3CUL)
  136. #define HPM_TRGM1_INPUT_SRC_PLA1_OUT5 (0x3DUL)
  137. #define HPM_TRGM1_INPUT_SRC_PLA1_OUT6 (0x3EUL)
  138. #define HPM_TRGM1_INPUT_SRC_PLA1_OUT7 (0x3FUL)
  139. /* trgm2_input mux definitions */
  140. #define HPM_TRGM2_INPUT_SRC_VSS (0x0UL)
  141. #define HPM_TRGM2_INPUT_SRC_VDD (0x1UL)
  142. #define HPM_TRGM2_INPUT_SRC_TRGM2_P0 (0x2UL)
  143. #define HPM_TRGM2_INPUT_SRC_TRGM2_P1 (0x3UL)
  144. #define HPM_TRGM2_INPUT_SRC_TRGM2_P2 (0x4UL)
  145. #define HPM_TRGM2_INPUT_SRC_TRGM2_P3 (0x5UL)
  146. #define HPM_TRGM2_INPUT_SRC_TRGM2_P4 (0x6UL)
  147. #define HPM_TRGM2_INPUT_SRC_TRGM2_P5 (0x7UL)
  148. #define HPM_TRGM2_INPUT_SRC_TRGM2_P6 (0x8UL)
  149. #define HPM_TRGM2_INPUT_SRC_TRGM2_P7 (0x9UL)
  150. #define HPM_TRGM2_INPUT_SRC_TRGM2_P8 (0xAUL)
  151. #define HPM_TRGM2_INPUT_SRC_TRGM2_P9 (0xBUL)
  152. #define HPM_TRGM2_INPUT_SRC_TRGM2_P10 (0xCUL)
  153. #define HPM_TRGM2_INPUT_SRC_TRGM2_P11 (0xDUL)
  154. #define HPM_TRGM2_INPUT_SRC_TRGM3_OUTX0 (0xEUL)
  155. #define HPM_TRGM2_INPUT_SRC_TRGM3_OUTX1 (0xFUL)
  156. #define HPM_TRGM2_INPUT_SRC_TRGM1_OUTX0 (0x10UL)
  157. #define HPM_TRGM2_INPUT_SRC_TRGM1_OUTX1 (0x11UL)
  158. #define HPM_TRGM2_INPUT_SRC_TRGM0_OUTX0 (0x12UL)
  159. #define HPM_TRGM2_INPUT_SRC_TRGM0_OUTX1 (0x13UL)
  160. #define HPM_TRGM2_INPUT_SRC_PWM2_CH8REF (0x14UL)
  161. #define HPM_TRGM2_INPUT_SRC_PWM2_CH9REF (0x15UL)
  162. #define HPM_TRGM2_INPUT_SRC_PWM2_CH10REF (0x16UL)
  163. #define HPM_TRGM2_INPUT_SRC_PWM2_CH11REF (0x17UL)
  164. #define HPM_TRGM2_INPUT_SRC_PWM2_CH12REF (0x18UL)
  165. #define HPM_TRGM2_INPUT_SRC_PWM2_CH13REF (0x19UL)
  166. #define HPM_TRGM2_INPUT_SRC_PWM2_CH14REF (0x1AUL)
  167. #define HPM_TRGM2_INPUT_SRC_PWM2_CH15REF (0x1BUL)
  168. #define HPM_TRGM2_INPUT_SRC_QEI2_TRGO (0x1CUL)
  169. #define HPM_TRGM2_INPUT_SRC_HALL2_TRGO (0x1DUL)
  170. #define HPM_TRGM2_INPUT_SRC_PTPC_CMP0 (0x1EUL)
  171. #define HPM_TRGM2_INPUT_SRC_PTPC_CMP1 (0x1FUL)
  172. #define HPM_TRGM2_INPUT_SRC_SYNT_CH0 (0x20UL)
  173. #define HPM_TRGM2_INPUT_SRC_SYNT_CH1 (0x21UL)
  174. #define HPM_TRGM2_INPUT_SRC_SYNT_CH2 (0x22UL)
  175. #define HPM_TRGM2_INPUT_SRC_SYNT_CH3 (0x23UL)
  176. #define HPM_TRGM2_INPUT_SRC_USB0_SOF (0x24UL)
  177. #define HPM_TRGM2_INPUT_SRC_DEBUG_FLAG (0x25UL)
  178. #define HPM_TRGM2_INPUT_SRC_GPTMR2_OUT2 (0x26UL)
  179. #define HPM_TRGM2_INPUT_SRC_GPTMR2_OUT3 (0x27UL)
  180. #define HPM_TRGM2_INPUT_SRC_SDM_CMPL0 (0x28UL)
  181. #define HPM_TRGM2_INPUT_SRC_SDM_CMPL1 (0x29UL)
  182. #define HPM_TRGM2_INPUT_SRC_SDM_CMPL2 (0x2AUL)
  183. #define HPM_TRGM2_INPUT_SRC_SDM_CMPL3 (0x2BUL)
  184. #define HPM_TRGM2_INPUT_SRC_SDM_CMPH0 (0x2CUL)
  185. #define HPM_TRGM2_INPUT_SRC_SDM_CMPH1 (0x2DUL)
  186. #define HPM_TRGM2_INPUT_SRC_SDM_CMPH2 (0x2EUL)
  187. #define HPM_TRGM2_INPUT_SRC_SDM_CMPH3 (0x2FUL)
  188. #define HPM_TRGM2_INPUT_SRC_SDM_CMPHZ0 (0x30UL)
  189. #define HPM_TRGM2_INPUT_SRC_SDM_CMPHZ1 (0x31UL)
  190. #define HPM_TRGM2_INPUT_SRC_SDM_CMPHZ2 (0x32UL)
  191. #define HPM_TRGM2_INPUT_SRC_SDM_CMPHZ3 (0x33UL)
  192. #define HPM_TRGM2_INPUT_SRC_CMP0_OUT (0x34UL)
  193. #define HPM_TRGM2_INPUT_SRC_CMP1_OUT (0x35UL)
  194. #define HPM_TRGM2_INPUT_SRC_CMP2_OUT (0x36UL)
  195. #define HPM_TRGM2_INPUT_SRC_CMP3_OUT (0x37UL)
  196. /* trgm3_input mux definitions */
  197. #define HPM_TRGM3_INPUT_SRC_VSS (0x0UL)
  198. #define HPM_TRGM3_INPUT_SRC_VDD (0x1UL)
  199. #define HPM_TRGM3_INPUT_SRC_TRGM3_P0 (0x2UL)
  200. #define HPM_TRGM3_INPUT_SRC_TRGM3_P1 (0x3UL)
  201. #define HPM_TRGM3_INPUT_SRC_TRGM3_P2 (0x4UL)
  202. #define HPM_TRGM3_INPUT_SRC_TRGM3_P3 (0x5UL)
  203. #define HPM_TRGM3_INPUT_SRC_TRGM3_P4 (0x6UL)
  204. #define HPM_TRGM3_INPUT_SRC_TRGM3_P5 (0x7UL)
  205. #define HPM_TRGM3_INPUT_SRC_TRGM3_P6 (0x8UL)
  206. #define HPM_TRGM3_INPUT_SRC_TRGM3_P7 (0x9UL)
  207. #define HPM_TRGM3_INPUT_SRC_TRGM3_P8 (0xAUL)
  208. #define HPM_TRGM3_INPUT_SRC_TRGM3_P9 (0xBUL)
  209. #define HPM_TRGM3_INPUT_SRC_TRGM3_P10 (0xCUL)
  210. #define HPM_TRGM3_INPUT_SRC_TRGM3_P11 (0xDUL)
  211. #define HPM_TRGM3_INPUT_SRC_TRGM2_OUTX0 (0xEUL)
  212. #define HPM_TRGM3_INPUT_SRC_TRGM2_OUTX1 (0xFUL)
  213. #define HPM_TRGM3_INPUT_SRC_TRGM1_OUTX0 (0x10UL)
  214. #define HPM_TRGM3_INPUT_SRC_TRGM1_OUTX1 (0x11UL)
  215. #define HPM_TRGM3_INPUT_SRC_TRGM0_OUTX0 (0x12UL)
  216. #define HPM_TRGM3_INPUT_SRC_TRGM0_OUTX1 (0x13UL)
  217. #define HPM_TRGM3_INPUT_SRC_PWM3_CH8REF (0x14UL)
  218. #define HPM_TRGM3_INPUT_SRC_PWM3_CH9REF (0x15UL)
  219. #define HPM_TRGM3_INPUT_SRC_PWM3_CH10REF (0x16UL)
  220. #define HPM_TRGM3_INPUT_SRC_PWM3_CH11REF (0x17UL)
  221. #define HPM_TRGM3_INPUT_SRC_PWM3_CH12REF (0x18UL)
  222. #define HPM_TRGM3_INPUT_SRC_PWM3_CH13REF (0x19UL)
  223. #define HPM_TRGM3_INPUT_SRC_PWM3_CH14REF (0x1AUL)
  224. #define HPM_TRGM3_INPUT_SRC_PWM3_CH15REF (0x1BUL)
  225. #define HPM_TRGM3_INPUT_SRC_QEI3_TRGO (0x1CUL)
  226. #define HPM_TRGM3_INPUT_SRC_HALL3_TRGO (0x1DUL)
  227. #define HPM_TRGM3_INPUT_SRC_PTPC_CMP0 (0x1EUL)
  228. #define HPM_TRGM3_INPUT_SRC_PTPC_CMP1 (0x1FUL)
  229. #define HPM_TRGM3_INPUT_SRC_SYNT_CH0 (0x20UL)
  230. #define HPM_TRGM3_INPUT_SRC_SYNT_CH1 (0x21UL)
  231. #define HPM_TRGM3_INPUT_SRC_SYNT_CH2 (0x22UL)
  232. #define HPM_TRGM3_INPUT_SRC_SYNT_CH3 (0x23UL)
  233. #define HPM_TRGM3_INPUT_SRC_USB0_SOF (0x24UL)
  234. #define HPM_TRGM3_INPUT_SRC_DEBUG_FLAG (0x25UL)
  235. #define HPM_TRGM3_INPUT_SRC_GPTMR3_OUT2 (0x26UL)
  236. #define HPM_TRGM3_INPUT_SRC_GPTMR3_OUT3 (0x27UL)
  237. #define HPM_TRGM3_INPUT_SRC_SDM_CMPL0 (0x28UL)
  238. #define HPM_TRGM3_INPUT_SRC_SDM_CMPL1 (0x29UL)
  239. #define HPM_TRGM3_INPUT_SRC_SDM_CMPL2 (0x2AUL)
  240. #define HPM_TRGM3_INPUT_SRC_SDM_CMPL3 (0x2BUL)
  241. #define HPM_TRGM3_INPUT_SRC_SDM_CMPH0 (0x2CUL)
  242. #define HPM_TRGM3_INPUT_SRC_SDM_CMPH1 (0x2DUL)
  243. #define HPM_TRGM3_INPUT_SRC_SDM_CMPH2 (0x2EUL)
  244. #define HPM_TRGM3_INPUT_SRC_SDM_CMPH3 (0x2FUL)
  245. #define HPM_TRGM3_INPUT_SRC_SDM_CMPHZ0 (0x30UL)
  246. #define HPM_TRGM3_INPUT_SRC_SDM_CMPHZ1 (0x31UL)
  247. #define HPM_TRGM3_INPUT_SRC_SDM_CMPHZ2 (0x32UL)
  248. #define HPM_TRGM3_INPUT_SRC_SDM_CMPHZ3 (0x33UL)
  249. #define HPM_TRGM3_INPUT_SRC_CMP0_OUT (0x34UL)
  250. #define HPM_TRGM3_INPUT_SRC_CMP1_OUT (0x35UL)
  251. #define HPM_TRGM3_INPUT_SRC_CMP2_OUT (0x36UL)
  252. #define HPM_TRGM3_INPUT_SRC_CMP3_OUT (0x37UL)
  253. /* trgm0_output mux definitions */
  254. #define HPM_TRGM0_OUTPUT_SRC_TRGM0_P0 (0x0UL)
  255. #define HPM_TRGM0_OUTPUT_SRC_TRGM0_P1 (0x1UL)
  256. #define HPM_TRGM0_OUTPUT_SRC_TRGM0_P2 (0x2UL)
  257. #define HPM_TRGM0_OUTPUT_SRC_TRGM0_P3 (0x3UL)
  258. #define HPM_TRGM0_OUTPUT_SRC_TRGM0_P4 (0x4UL)
  259. #define HPM_TRGM0_OUTPUT_SRC_TRGM0_P5 (0x5UL)
  260. #define HPM_TRGM0_OUTPUT_SRC_TRGM0_P6 (0x6UL)
  261. #define HPM_TRGM0_OUTPUT_SRC_TRGM0_P7 (0x7UL)
  262. #define HPM_TRGM0_OUTPUT_SRC_TRGM0_P8 (0x8UL)
  263. #define HPM_TRGM0_OUTPUT_SRC_TRGM0_P9 (0x9UL)
  264. #define HPM_TRGM0_OUTPUT_SRC_TRGM0_P10 (0xAUL)
  265. #define HPM_TRGM0_OUTPUT_SRC_TRGM0_P11 (0xBUL)
  266. #define HPM_TRGM0_OUTPUT_SRC_TRGM0_OUTX0 (0xCUL)
  267. #define HPM_TRGM0_OUTPUT_SRC_TRGM0_OUTX1 (0xDUL)
  268. #define HPM_TRGM0_OUTPUT_SRC_PWM0_SYNCI (0xEUL)
  269. #define HPM_TRGM0_OUTPUT_SRC_PWM0_FRCI (0xFUL)
  270. #define HPM_TRGM0_OUTPUT_SRC_PWM0_FRCSYNCI (0x10UL)
  271. #define HPM_TRGM0_OUTPUT_SRC_PWM0_SHRLDSYNCI (0x11UL)
  272. #define HPM_TRGM0_OUTPUT_SRC_PWM0_FAULTI0 (0x12UL)
  273. #define HPM_TRGM0_OUTPUT_SRC_PWM0_FAULTI1 (0x13UL)
  274. #define HPM_TRGM0_OUTPUT_SRC_PWM0_FAULTI2 (0x14UL)
  275. #define HPM_TRGM0_OUTPUT_SRC_PWM0_FAULTI3 (0x15UL)
  276. #define HPM_TRGM0_OUTPUT_SRC_PWM0_IN8 (0x16UL)
  277. #define HPM_TRGM0_OUTPUT_SRC_PWM0_IN9 (0x17UL)
  278. #define HPM_TRGM0_OUTPUT_SRC_PWM0_IN10 (0x18UL)
  279. #define HPM_TRGM0_OUTPUT_SRC_PWM0_IN11 (0x19UL)
  280. #define HPM_TRGM0_OUTPUT_SRC_PWM0_IN12 (0x1AUL)
  281. #define HPM_TRGM0_OUTPUT_SRC_PWM0_IN13 (0x1BUL)
  282. #define HPM_TRGM0_OUTPUT_SRC_PWM0_IN14 (0x1CUL)
  283. #define HPM_TRGM0_OUTPUT_SRC_PWM0_IN15 (0x1DUL)
  284. #define HPM_TRGM0_OUTPUT_SRC_PLA0_IN0 (0x1EUL)
  285. #define HPM_TRGM0_OUTPUT_SRC_PLA0_IN1 (0x1FUL)
  286. #define HPM_TRGM0_OUTPUT_SRC_PLA0_IN2 (0x20UL)
  287. #define HPM_TRGM0_OUTPUT_SRC_PLA0_IN3 (0x21UL)
  288. #define HPM_TRGM0_OUTPUT_SRC_PLA0_IN4 (0x22UL)
  289. #define HPM_TRGM0_OUTPUT_SRC_PLA0_IN5 (0x23UL)
  290. #define HPM_TRGM0_OUTPUT_SRC_PLA0_IN6 (0x24UL)
  291. #define HPM_TRGM0_OUTPUT_SRC_PLA0_IN7 (0x25UL)
  292. #define HPM_TRGM0_OUTPUT_SRC_QEI0_A (0x26UL)
  293. #define HPM_TRGM0_OUTPUT_SRC_QEI0_B (0x27UL)
  294. #define HPM_TRGM0_OUTPUT_SRC_QEI0_Z (0x28UL)
  295. #define HPM_TRGM0_OUTPUT_SRC_QEI0_H (0x29UL)
  296. #define HPM_TRGM0_OUTPUT_SRC_QEI0_PAUSE (0x2AUL)
  297. #define HPM_TRGM0_OUTPUT_SRC_QEI0_SNAPI (0x2BUL)
  298. #define HPM_TRGM0_OUTPUT_SRC_HALL0_U (0x2CUL)
  299. #define HPM_TRGM0_OUTPUT_SRC_HALL0_V (0x2DUL)
  300. #define HPM_TRGM0_OUTPUT_SRC_HALL0_W (0x2EUL)
  301. #define HPM_TRGM0_OUTPUT_SRC_HALL0_SNAPI (0x2FUL)
  302. #define HPM_TRGM0_OUTPUT_SRC_ADC0_STRGI (0x30UL)
  303. #define HPM_TRGM0_OUTPUT_SRC_ADC1_STRGI (0x31UL)
  304. #define HPM_TRGM0_OUTPUT_SRC_ADC2_STRGI (0x32UL)
  305. #define HPM_TRGM0_OUTPUT_SRC_ADCX_PTRGI0A (0x34UL)
  306. #define HPM_TRGM0_OUTPUT_SRC_ADCX_PTRGI0B (0x35UL)
  307. #define HPM_TRGM0_OUTPUT_SRC_ADCX_PTRGI0C (0x36UL)
  308. #define HPM_TRGM0_OUTPUT_SRC_GPTMR0_SYNCI (0x37UL)
  309. #define HPM_TRGM0_OUTPUT_SRC_GPTMR0_IN2 (0x38UL)
  310. #define HPM_TRGM0_OUTPUT_SRC_GPTMR0_IN3 (0x39UL)
  311. #define HPM_TRGM0_OUTPUT_SRC_DAC0_BUF_TRG (0x3AUL)
  312. #define HPM_TRGM0_OUTPUT_SRC_DAC0_STP_TRG (0x3BUL)
  313. #define HPM_TRGM0_OUTPUT_SRC_DAC1_STP_TRG (0x3CUL)
  314. #define HPM_TRGM0_OUTPUT_SRC_ACMP0_WIN (0x3DUL)
  315. #define HPM_TRGM0_OUTPUT_SRC_PTPC_CAP0 (0x3EUL)
  316. #define HPM_TRGM0_OUTPUT_SRC_PTPC_CAP1 (0x3FUL)
  317. #define HPM_TRGM0_OUTPUT_SRC_SDM_TRG0 (0x40UL)
  318. #define HPM_TRGM0_OUTPUT_SRC_SDM_TRG1 (0x41UL)
  319. #define HPM_TRGM0_OUTPUT_SRC_SDM_TRG2 (0x42UL)
  320. #define HPM_TRGM0_OUTPUT_SRC_SDM_TRG3 (0x43UL)
  321. /* trgm1_output mux definitions */
  322. #define HPM_TRGM1_OUTPUT_SRC_TRGM1_P0 (0x0UL)
  323. #define HPM_TRGM1_OUTPUT_SRC_TRGM1_P1 (0x1UL)
  324. #define HPM_TRGM1_OUTPUT_SRC_TRGM1_P2 (0x2UL)
  325. #define HPM_TRGM1_OUTPUT_SRC_TRGM1_P3 (0x3UL)
  326. #define HPM_TRGM1_OUTPUT_SRC_TRGM1_P4 (0x4UL)
  327. #define HPM_TRGM1_OUTPUT_SRC_TRGM1_P5 (0x5UL)
  328. #define HPM_TRGM1_OUTPUT_SRC_TRGM1_P6 (0x6UL)
  329. #define HPM_TRGM1_OUTPUT_SRC_TRGM1_P7 (0x7UL)
  330. #define HPM_TRGM1_OUTPUT_SRC_TRGM1_P8 (0x8UL)
  331. #define HPM_TRGM1_OUTPUT_SRC_TRGM1_P9 (0x9UL)
  332. #define HPM_TRGM1_OUTPUT_SRC_TRGM1_P10 (0xAUL)
  333. #define HPM_TRGM1_OUTPUT_SRC_TRGM1_P11 (0xBUL)
  334. #define HPM_TRGM1_OUTPUT_SRC_TRGM1_OUTX0 (0xCUL)
  335. #define HPM_TRGM1_OUTPUT_SRC_TRGM1_OUTX1 (0xDUL)
  336. #define HPM_TRGM1_OUTPUT_SRC_PWM1_SYNCI (0xEUL)
  337. #define HPM_TRGM1_OUTPUT_SRC_PWM1_FRCI (0xFUL)
  338. #define HPM_TRGM1_OUTPUT_SRC_PWM1_FRCSYNCI (0x10UL)
  339. #define HPM_TRGM1_OUTPUT_SRC_PWM1_SHRLDSYNCI (0x11UL)
  340. #define HPM_TRGM1_OUTPUT_SRC_PWM1_FAULTI0 (0x12UL)
  341. #define HPM_TRGM1_OUTPUT_SRC_PWM1_FAULTI1 (0x13UL)
  342. #define HPM_TRGM1_OUTPUT_SRC_PWM1_FAULTI2 (0x14UL)
  343. #define HPM_TRGM1_OUTPUT_SRC_PWM1_FAULTI3 (0x15UL)
  344. #define HPM_TRGM1_OUTPUT_SRC_PWM1_IN8 (0x16UL)
  345. #define HPM_TRGM1_OUTPUT_SRC_PWM1_IN9 (0x17UL)
  346. #define HPM_TRGM1_OUTPUT_SRC_PWM1_IN10 (0x18UL)
  347. #define HPM_TRGM1_OUTPUT_SRC_PWM1_IN11 (0x19UL)
  348. #define HPM_TRGM1_OUTPUT_SRC_PWM1_IN12 (0x1AUL)
  349. #define HPM_TRGM1_OUTPUT_SRC_PWM1_IN13 (0x1BUL)
  350. #define HPM_TRGM1_OUTPUT_SRC_PWM1_IN14 (0x1CUL)
  351. #define HPM_TRGM1_OUTPUT_SRC_PWM1_IN15 (0x1DUL)
  352. #define HPM_TRGM1_OUTPUT_SRC_PLA1_IN0 (0x1EUL)
  353. #define HPM_TRGM1_OUTPUT_SRC_PLA1_IN1 (0x1FUL)
  354. #define HPM_TRGM1_OUTPUT_SRC_PLA1_IN2 (0x20UL)
  355. #define HPM_TRGM1_OUTPUT_SRC_PLA1_IN3 (0x21UL)
  356. #define HPM_TRGM1_OUTPUT_SRC_PLA1_IN4 (0x22UL)
  357. #define HPM_TRGM1_OUTPUT_SRC_PLA1_IN5 (0x23UL)
  358. #define HPM_TRGM1_OUTPUT_SRC_PLA1_IN6 (0x24UL)
  359. #define HPM_TRGM1_OUTPUT_SRC_PLA1_IN7 (0x25UL)
  360. #define HPM_TRGM1_OUTPUT_SRC_QEI1_A (0x26UL)
  361. #define HPM_TRGM1_OUTPUT_SRC_QEI1_B (0x27UL)
  362. #define HPM_TRGM1_OUTPUT_SRC_QEI1_Z (0x28UL)
  363. #define HPM_TRGM1_OUTPUT_SRC_QEI1_H (0x29UL)
  364. #define HPM_TRGM1_OUTPUT_SRC_QEI1_PAUSE (0x2AUL)
  365. #define HPM_TRGM1_OUTPUT_SRC_QEI1_SNAPI (0x2BUL)
  366. #define HPM_TRGM1_OUTPUT_SRC_HALL1_U (0x2CUL)
  367. #define HPM_TRGM1_OUTPUT_SRC_HALL1_V (0x2DUL)
  368. #define HPM_TRGM1_OUTPUT_SRC_HALL1_W (0x2EUL)
  369. #define HPM_TRGM1_OUTPUT_SRC_HALL1_SNAPI (0x2FUL)
  370. #define HPM_TRGM1_OUTPUT_SRC_ADC0_STRGI (0x30UL)
  371. #define HPM_TRGM1_OUTPUT_SRC_ADC1_STRGI (0x31UL)
  372. #define HPM_TRGM1_OUTPUT_SRC_ADC2_STRGI (0x32UL)
  373. #define HPM_TRGM1_OUTPUT_SRC_ADCX_PTRGI1A (0x34UL)
  374. #define HPM_TRGM1_OUTPUT_SRC_ADCX_PTRGI1B (0x35UL)
  375. #define HPM_TRGM1_OUTPUT_SRC_ADCX_PTRGI1C (0x36UL)
  376. #define HPM_TRGM1_OUTPUT_SRC_GPTMR1_SYNCI (0x37UL)
  377. #define HPM_TRGM1_OUTPUT_SRC_GPTMR1_IN2 (0x38UL)
  378. #define HPM_TRGM1_OUTPUT_SRC_GPTMR1_IN3 (0x39UL)
  379. #define HPM_TRGM1_OUTPUT_SRC_DAC1_BUF_TRG (0x3AUL)
  380. #define HPM_TRGM1_OUTPUT_SRC_DAC0_STP_TRG (0x3BUL)
  381. #define HPM_TRGM1_OUTPUT_SRC_DAC1_STP_TRG (0x3CUL)
  382. #define HPM_TRGM1_OUTPUT_SRC_ACMP1_WIN (0x3DUL)
  383. #define HPM_TRGM1_OUTPUT_SRC_PTPC_CAP0 (0x3EUL)
  384. #define HPM_TRGM1_OUTPUT_SRC_PTPC_CAP1 (0x3FUL)
  385. #define HPM_TRGM1_OUTPUT_SRC_SDM_TRG4 (0x40UL)
  386. #define HPM_TRGM1_OUTPUT_SRC_SDM_TRG5 (0x41UL)
  387. #define HPM_TRGM1_OUTPUT_SRC_SDM_TRG6 (0x42UL)
  388. #define HPM_TRGM1_OUTPUT_SRC_SDM_TRG7 (0x43UL)
  389. /* trgm2_output mux definitions */
  390. #define HPM_TRGM2_OUTPUT_SRC_TRGM2_P0 (0x0UL)
  391. #define HPM_TRGM2_OUTPUT_SRC_TRGM2_P1 (0x1UL)
  392. #define HPM_TRGM2_OUTPUT_SRC_TRGM2_P2 (0x2UL)
  393. #define HPM_TRGM2_OUTPUT_SRC_TRGM2_P3 (0x3UL)
  394. #define HPM_TRGM2_OUTPUT_SRC_TRGM2_P4 (0x4UL)
  395. #define HPM_TRGM2_OUTPUT_SRC_TRGM2_P5 (0x5UL)
  396. #define HPM_TRGM2_OUTPUT_SRC_TRGM2_P6 (0x6UL)
  397. #define HPM_TRGM2_OUTPUT_SRC_TRGM2_P7 (0x7UL)
  398. #define HPM_TRGM2_OUTPUT_SRC_TRGM2_P8 (0x8UL)
  399. #define HPM_TRGM2_OUTPUT_SRC_TRGM2_P9 (0x9UL)
  400. #define HPM_TRGM2_OUTPUT_SRC_TRGM2_P10 (0xAUL)
  401. #define HPM_TRGM2_OUTPUT_SRC_TRGM2_P11 (0xBUL)
  402. #define HPM_TRGM2_OUTPUT_SRC_TRGM2_OUTX0 (0xCUL)
  403. #define HPM_TRGM2_OUTPUT_SRC_TRGM2_OUTX1 (0xDUL)
  404. #define HPM_TRGM2_OUTPUT_SRC_PWM2_SYNCI (0xEUL)
  405. #define HPM_TRGM2_OUTPUT_SRC_PWM2_FRCI (0xFUL)
  406. #define HPM_TRGM2_OUTPUT_SRC_PWM2_FRCSYNCI (0x10UL)
  407. #define HPM_TRGM2_OUTPUT_SRC_PWM2_SHRLDSYNCI (0x11UL)
  408. #define HPM_TRGM2_OUTPUT_SRC_PWM2_FAULTI0 (0x12UL)
  409. #define HPM_TRGM2_OUTPUT_SRC_PWM2_FAULTI1 (0x13UL)
  410. #define HPM_TRGM2_OUTPUT_SRC_PWM2_FAULTI2 (0x14UL)
  411. #define HPM_TRGM2_OUTPUT_SRC_PWM2_FAULTI3 (0x15UL)
  412. #define HPM_TRGM2_OUTPUT_SRC_PWM2_IN8 (0x16UL)
  413. #define HPM_TRGM2_OUTPUT_SRC_PWM2_IN9 (0x17UL)
  414. #define HPM_TRGM2_OUTPUT_SRC_PWM2_IN10 (0x18UL)
  415. #define HPM_TRGM2_OUTPUT_SRC_PWM2_IN11 (0x19UL)
  416. #define HPM_TRGM2_OUTPUT_SRC_PWM2_IN12 (0x1AUL)
  417. #define HPM_TRGM2_OUTPUT_SRC_PWM2_IN13 (0x1BUL)
  418. #define HPM_TRGM2_OUTPUT_SRC_PWM2_IN14 (0x1CUL)
  419. #define HPM_TRGM2_OUTPUT_SRC_PWM2_IN15 (0x1DUL)
  420. #define HPM_TRGM2_OUTPUT_SRC_QEI2_A (0x26UL)
  421. #define HPM_TRGM2_OUTPUT_SRC_QEI2_B (0x27UL)
  422. #define HPM_TRGM2_OUTPUT_SRC_QEI2_Z (0x28UL)
  423. #define HPM_TRGM2_OUTPUT_SRC_QEI2_H (0x29UL)
  424. #define HPM_TRGM2_OUTPUT_SRC_QEI2_PAUSE (0x2AUL)
  425. #define HPM_TRGM2_OUTPUT_SRC_QEI2_SNAPI (0x2BUL)
  426. #define HPM_TRGM2_OUTPUT_SRC_HALL2_U (0x2CUL)
  427. #define HPM_TRGM2_OUTPUT_SRC_HALL2_V (0x2DUL)
  428. #define HPM_TRGM2_OUTPUT_SRC_HALL2_W (0x2EUL)
  429. #define HPM_TRGM2_OUTPUT_SRC_HALL2_SNAPI (0x2FUL)
  430. #define HPM_TRGM2_OUTPUT_SRC_ADC0_STRGI (0x30UL)
  431. #define HPM_TRGM2_OUTPUT_SRC_ADC1_STRGI (0x31UL)
  432. #define HPM_TRGM2_OUTPUT_SRC_ADC2_STRGI (0x32UL)
  433. #define HPM_TRGM2_OUTPUT_SRC_ADCX_PTRGI2A (0x34UL)
  434. #define HPM_TRGM2_OUTPUT_SRC_ADCX_PTRGI2B (0x35UL)
  435. #define HPM_TRGM2_OUTPUT_SRC_ADCX_PTRGI2C (0x36UL)
  436. #define HPM_TRGM2_OUTPUT_SRC_GPTMR2_SYNCI (0x37UL)
  437. #define HPM_TRGM2_OUTPUT_SRC_GPTMR2_IN2 (0x38UL)
  438. #define HPM_TRGM2_OUTPUT_SRC_GPTMR2_IN3 (0x39UL)
  439. #define HPM_TRGM2_OUTPUT_SRC_DAC0_BUF_TRG (0x3AUL)
  440. #define HPM_TRGM2_OUTPUT_SRC_DAC0_STP_TRG (0x3BUL)
  441. #define HPM_TRGM2_OUTPUT_SRC_DAC1_STP_TRG (0x3CUL)
  442. #define HPM_TRGM2_OUTPUT_SRC_ACMP2_WIN (0x3DUL)
  443. #define HPM_TRGM2_OUTPUT_SRC_PTPC_CAP0 (0x3EUL)
  444. #define HPM_TRGM2_OUTPUT_SRC_PTPC_CAP1 (0x3FUL)
  445. #define HPM_TRGM2_OUTPUT_SRC_SDM_TRG8 (0x40UL)
  446. #define HPM_TRGM2_OUTPUT_SRC_SDM_TRG9 (0x41UL)
  447. #define HPM_TRGM2_OUTPUT_SRC_SDM_TRG10 (0x42UL)
  448. #define HPM_TRGM2_OUTPUT_SRC_SDM_TRG11 (0x43UL)
  449. /* trgm3_output mux definitions */
  450. #define HPM_TRGM3_OUTPUT_SRC_TRGM3_P0 (0x0UL)
  451. #define HPM_TRGM3_OUTPUT_SRC_TRGM3_P1 (0x1UL)
  452. #define HPM_TRGM3_OUTPUT_SRC_TRGM3_P2 (0x2UL)
  453. #define HPM_TRGM3_OUTPUT_SRC_TRGM3_P3 (0x3UL)
  454. #define HPM_TRGM3_OUTPUT_SRC_TRGM3_P4 (0x4UL)
  455. #define HPM_TRGM3_OUTPUT_SRC_TRGM3_P5 (0x5UL)
  456. #define HPM_TRGM3_OUTPUT_SRC_TRGM3_P6 (0x6UL)
  457. #define HPM_TRGM3_OUTPUT_SRC_TRGM3_P7 (0x7UL)
  458. #define HPM_TRGM3_OUTPUT_SRC_TRGM3_P8 (0x8UL)
  459. #define HPM_TRGM3_OUTPUT_SRC_TRGM3_P9 (0x9UL)
  460. #define HPM_TRGM3_OUTPUT_SRC_TRGM3_P10 (0xAUL)
  461. #define HPM_TRGM3_OUTPUT_SRC_TRGM3_P11 (0xBUL)
  462. #define HPM_TRGM3_OUTPUT_SRC_TRGM3_OUTX0 (0xCUL)
  463. #define HPM_TRGM3_OUTPUT_SRC_TRGM3_OUTX1 (0xDUL)
  464. #define HPM_TRGM3_OUTPUT_SRC_PWM3_SYNCI (0xEUL)
  465. #define HPM_TRGM3_OUTPUT_SRC_PWM3_FRCI (0xFUL)
  466. #define HPM_TRGM3_OUTPUT_SRC_PWM3_FRCSYNCI (0x10UL)
  467. #define HPM_TRGM3_OUTPUT_SRC_PWM3_SHRLDSYNCI (0x11UL)
  468. #define HPM_TRGM3_OUTPUT_SRC_PWM3_FAULTI0 (0x12UL)
  469. #define HPM_TRGM3_OUTPUT_SRC_PWM3_FAULTI1 (0x13UL)
  470. #define HPM_TRGM3_OUTPUT_SRC_PWM3_FAULTI2 (0x14UL)
  471. #define HPM_TRGM3_OUTPUT_SRC_PWM3_FAULTI3 (0x15UL)
  472. #define HPM_TRGM3_OUTPUT_SRC_PWM3_IN8 (0x16UL)
  473. #define HPM_TRGM3_OUTPUT_SRC_PWM3_IN9 (0x17UL)
  474. #define HPM_TRGM3_OUTPUT_SRC_PWM3_IN10 (0x18UL)
  475. #define HPM_TRGM3_OUTPUT_SRC_PWM3_IN11 (0x19UL)
  476. #define HPM_TRGM3_OUTPUT_SRC_PWM3_IN12 (0x1AUL)
  477. #define HPM_TRGM3_OUTPUT_SRC_PWM3_IN13 (0x1BUL)
  478. #define HPM_TRGM3_OUTPUT_SRC_PWM3_IN14 (0x1CUL)
  479. #define HPM_TRGM3_OUTPUT_SRC_PWM3_IN15 (0x1DUL)
  480. #define HPM_TRGM3_OUTPUT_SRC_QEI3_A (0x26UL)
  481. #define HPM_TRGM3_OUTPUT_SRC_QEI3_B (0x27UL)
  482. #define HPM_TRGM3_OUTPUT_SRC_QEI3_Z (0x28UL)
  483. #define HPM_TRGM3_OUTPUT_SRC_QEI3_H (0x29UL)
  484. #define HPM_TRGM3_OUTPUT_SRC_QEI3_PAUSE (0x2AUL)
  485. #define HPM_TRGM3_OUTPUT_SRC_QEI3_SNAPI (0x2BUL)
  486. #define HPM_TRGM3_OUTPUT_SRC_HALL3_U (0x2CUL)
  487. #define HPM_TRGM3_OUTPUT_SRC_HALL3_V (0x2DUL)
  488. #define HPM_TRGM3_OUTPUT_SRC_HALL3_W (0x2EUL)
  489. #define HPM_TRGM3_OUTPUT_SRC_HALL3_SNAPI (0x2FUL)
  490. #define HPM_TRGM3_OUTPUT_SRC_ADC0_STRGI (0x30UL)
  491. #define HPM_TRGM3_OUTPUT_SRC_ADC1_STRGI (0x31UL)
  492. #define HPM_TRGM3_OUTPUT_SRC_ADC2_STRGI (0x32UL)
  493. #define HPM_TRGM3_OUTPUT_SRC_ADCX_PTRGI3A (0x34UL)
  494. #define HPM_TRGM3_OUTPUT_SRC_ADCX_PTRGI3B (0x35UL)
  495. #define HPM_TRGM3_OUTPUT_SRC_ADCX_PTRGI3C (0x36UL)
  496. #define HPM_TRGM3_OUTPUT_SRC_GPTMR3_SYNCI (0x37UL)
  497. #define HPM_TRGM3_OUTPUT_SRC_GPTMR3_IN2 (0x38UL)
  498. #define HPM_TRGM3_OUTPUT_SRC_GPTMR3_IN3 (0x39UL)
  499. #define HPM_TRGM3_OUTPUT_SRC_DAC1_BUF_TRG (0x3AUL)
  500. #define HPM_TRGM3_OUTPUT_SRC_DAC0_STP_TRG (0x3BUL)
  501. #define HPM_TRGM3_OUTPUT_SRC_DAC1_STP_TRG (0x3CUL)
  502. #define HPM_TRGM3_OUTPUT_SRC_ACMP3_WIN (0x3DUL)
  503. #define HPM_TRGM3_OUTPUT_SRC_PTPC_CAP0 (0x3EUL)
  504. #define HPM_TRGM3_OUTPUT_SRC_PTPC_CAP1 (0x3FUL)
  505. #define HPM_TRGM3_OUTPUT_SRC_SDFM_TRG12 (0x40UL)
  506. #define HPM_TRGM3_OUTPUT_SRC_SDFM_TRG13 (0x41UL)
  507. #define HPM_TRGM3_OUTPUT_SRC_SDFM_TRG14 (0x42UL)
  508. #define HPM_TRGM3_OUTPUT_SRC_SDFM_TRG15 (0x43UL)
  509. /* trgm0_filter mux definitions */
  510. #define HPM_TRGM0_FILTER_SRC_PWM0_IN0 (0x0UL)
  511. #define HPM_TRGM0_FILTER_SRC_PWM0_IN1 (0x1UL)
  512. #define HPM_TRGM0_FILTER_SRC_PWM0_IN2 (0x2UL)
  513. #define HPM_TRGM0_FILTER_SRC_PWM0_IN3 (0x3UL)
  514. #define HPM_TRGM0_FILTER_SRC_PWM0_IN4 (0x4UL)
  515. #define HPM_TRGM0_FILTER_SRC_PWM0_IN5 (0x5UL)
  516. #define HPM_TRGM0_FILTER_SRC_PWM0_IN6 (0x6UL)
  517. #define HPM_TRGM0_FILTER_SRC_PWM0_IN7 (0x7UL)
  518. #define HPM_TRGM0_FILTER_SRC_TRGM0_IN0 (0x8UL)
  519. #define HPM_TRGM0_FILTER_SRC_TRGM0_IN1 (0x9UL)
  520. #define HPM_TRGM0_FILTER_SRC_TRGM0_IN2 (0xAUL)
  521. #define HPM_TRGM0_FILTER_SRC_TRGM0_IN3 (0xBUL)
  522. #define HPM_TRGM0_FILTER_SRC_TRGM0_IN4 (0xCUL)
  523. #define HPM_TRGM0_FILTER_SRC_TRGM0_IN5 (0xDUL)
  524. #define HPM_TRGM0_FILTER_SRC_TRGM0_IN6 (0xEUL)
  525. #define HPM_TRGM0_FILTER_SRC_TRGM0_IN7 (0xFUL)
  526. #define HPM_TRGM0_FILTER_SRC_TRGM0_IN8 (0x10UL)
  527. #define HPM_TRGM0_FILTER_SRC_TRGM0_IN9 (0x11UL)
  528. #define HPM_TRGM0_FILTER_SRC_TRGM0_IN10 (0x12UL)
  529. #define HPM_TRGM0_FILTER_SRC_TRGM0_IN11 (0x13UL)
  530. /* trgm1_filter mux definitions */
  531. #define HPM_TRGM1_FILTER_SRC_PWM1_IN0 (0x0UL)
  532. #define HPM_TRGM1_FILTER_SRC_PWM1_IN1 (0x1UL)
  533. #define HPM_TRGM1_FILTER_SRC_PWM1_IN2 (0x2UL)
  534. #define HPM_TRGM1_FILTER_SRC_PWM1_IN3 (0x3UL)
  535. #define HPM_TRGM1_FILTER_SRC_PWM1_IN4 (0x4UL)
  536. #define HPM_TRGM1_FILTER_SRC_PWM1_IN5 (0x5UL)
  537. #define HPM_TRGM1_FILTER_SRC_PWM1_IN6 (0x6UL)
  538. #define HPM_TRGM1_FILTER_SRC_PWM1_IN7 (0x7UL)
  539. #define HPM_TRGM1_FILTER_SRC_TRGM1_IN0 (0x8UL)
  540. #define HPM_TRGM1_FILTER_SRC_TRGM1_IN1 (0x9UL)
  541. #define HPM_TRGM1_FILTER_SRC_TRGM1_IN2 (0xAUL)
  542. #define HPM_TRGM1_FILTER_SRC_TRGM1_IN3 (0xBUL)
  543. #define HPM_TRGM1_FILTER_SRC_TRGM1_IN4 (0xCUL)
  544. #define HPM_TRGM1_FILTER_SRC_TRGM1_IN5 (0xDUL)
  545. #define HPM_TRGM1_FILTER_SRC_TRGM1_IN6 (0xEUL)
  546. #define HPM_TRGM1_FILTER_SRC_TRGM1_IN7 (0xFUL)
  547. #define HPM_TRGM1_FILTER_SRC_TRGM1_IN8 (0x10UL)
  548. #define HPM_TRGM1_FILTER_SRC_TRGM1_IN9 (0x11UL)
  549. #define HPM_TRGM1_FILTER_SRC_TRGM1_IN10 (0x12UL)
  550. #define HPM_TRGM1_FILTER_SRC_TRGM1_IN11 (0x13UL)
  551. /* trgm2_filter mux definitions */
  552. #define HPM_TRGM2_FILTER_SRC_PWM2_IN0 (0x0UL)
  553. #define HPM_TRGM2_FILTER_SRC_PWM2_IN1 (0x1UL)
  554. #define HPM_TRGM2_FILTER_SRC_PWM2_IN2 (0x2UL)
  555. #define HPM_TRGM2_FILTER_SRC_PWM2_IN3 (0x3UL)
  556. #define HPM_TRGM2_FILTER_SRC_PWM2_IN4 (0x4UL)
  557. #define HPM_TRGM2_FILTER_SRC_PWM2_IN5 (0x5UL)
  558. #define HPM_TRGM2_FILTER_SRC_PWM2_IN6 (0x6UL)
  559. #define HPM_TRGM2_FILTER_SRC_PWM2_IN7 (0x7UL)
  560. #define HPM_TRGM2_FILTER_SRC_TRGM2_IN0 (0x8UL)
  561. #define HPM_TRGM2_FILTER_SRC_TRGM2_IN1 (0x9UL)
  562. #define HPM_TRGM2_FILTER_SRC_TRGM2_IN2 (0xAUL)
  563. #define HPM_TRGM2_FILTER_SRC_TRGM2_IN3 (0xBUL)
  564. #define HPM_TRGM2_FILTER_SRC_TRGM2_IN4 (0xCUL)
  565. #define HPM_TRGM2_FILTER_SRC_TRGM2_IN5 (0xDUL)
  566. #define HPM_TRGM2_FILTER_SRC_TRGM2_IN6 (0xEUL)
  567. #define HPM_TRGM2_FILTER_SRC_TRGM2_IN7 (0xFUL)
  568. #define HPM_TRGM2_FILTER_SRC_TRGM2_IN8 (0x10UL)
  569. #define HPM_TRGM2_FILTER_SRC_TRGM2_IN9 (0x11UL)
  570. #define HPM_TRGM2_FILTER_SRC_TRGM2_IN10 (0x12UL)
  571. #define HPM_TRGM2_FILTER_SRC_TRGM2_IN11 (0x13UL)
  572. /* trgm3_filter mux definitions */
  573. #define HPM_TRGM3_FILTER_SRC_PWM3_IN0 (0x0UL)
  574. #define HPM_TRGM3_FILTER_SRC_PWM3_IN1 (0x1UL)
  575. #define HPM_TRGM3_FILTER_SRC_PWM3_IN2 (0x2UL)
  576. #define HPM_TRGM3_FILTER_SRC_PWM3_IN3 (0x3UL)
  577. #define HPM_TRGM3_FILTER_SRC_PWM3_IN4 (0x4UL)
  578. #define HPM_TRGM3_FILTER_SRC_PWM3_IN5 (0x5UL)
  579. #define HPM_TRGM3_FILTER_SRC_PWM3_IN6 (0x6UL)
  580. #define HPM_TRGM3_FILTER_SRC_PWM3_IN7 (0x7UL)
  581. #define HPM_TRGM3_FILTER_SRC_TRGM3_IN0 (0x8UL)
  582. #define HPM_TRGM3_FILTER_SRC_TRGM3_IN1 (0x9UL)
  583. #define HPM_TRGM3_FILTER_SRC_TRGM3_IN2 (0xAUL)
  584. #define HPM_TRGM3_FILTER_SRC_TRGM3_IN3 (0xBUL)
  585. #define HPM_TRGM3_FILTER_SRC_TRGM3_IN4 (0xCUL)
  586. #define HPM_TRGM3_FILTER_SRC_TRGM3_IN5 (0xDUL)
  587. #define HPM_TRGM3_FILTER_SRC_TRGM3_IN6 (0xEUL)
  588. #define HPM_TRGM3_FILTER_SRC_TRGM3_IN7 (0xFUL)
  589. #define HPM_TRGM3_FILTER_SRC_TRGM3_IN8 (0x10UL)
  590. #define HPM_TRGM3_FILTER_SRC_TRGM3_IN9 (0x11UL)
  591. #define HPM_TRGM3_FILTER_SRC_TRGM3_IN10 (0x12UL)
  592. #define HPM_TRGM3_FILTER_SRC_TRGM3_IN11 (0x13UL)
  593. /* trgm0_dma mux definitions */
  594. #define HPM_TRGM0_DMA_SRC_PWM0_CMP0 (0x0UL)
  595. #define HPM_TRGM0_DMA_SRC_PWM0_CMP1 (0x1UL)
  596. #define HPM_TRGM0_DMA_SRC_PWM0_CMP2 (0x2UL)
  597. #define HPM_TRGM0_DMA_SRC_PWM0_CMP3 (0x3UL)
  598. #define HPM_TRGM0_DMA_SRC_PWM0_CMP4 (0x4UL)
  599. #define HPM_TRGM0_DMA_SRC_PWM0_CMP5 (0x5UL)
  600. #define HPM_TRGM0_DMA_SRC_PWM0_CMP6 (0x6UL)
  601. #define HPM_TRGM0_DMA_SRC_PWM0_CMP7 (0x7UL)
  602. #define HPM_TRGM0_DMA_SRC_PWM0_CMP8 (0x8UL)
  603. #define HPM_TRGM0_DMA_SRC_PWM0_CMP9 (0x9UL)
  604. #define HPM_TRGM0_DMA_SRC_PWM0_CMP10 (0xAUL)
  605. #define HPM_TRGM0_DMA_SRC_PWM0_CMP11 (0xBUL)
  606. #define HPM_TRGM0_DMA_SRC_PWM0_CMP12 (0xCUL)
  607. #define HPM_TRGM0_DMA_SRC_PWM0_CMP13 (0xDUL)
  608. #define HPM_TRGM0_DMA_SRC_PWM0_CMP14 (0xEUL)
  609. #define HPM_TRGM0_DMA_SRC_PWM0_CMP15 (0xFUL)
  610. #define HPM_TRGM0_DMA_SRC_PWM0_CMP16 (0x10UL)
  611. #define HPM_TRGM0_DMA_SRC_PWM0_CMP17 (0x11UL)
  612. #define HPM_TRGM0_DMA_SRC_PWM0_CMP18 (0x12UL)
  613. #define HPM_TRGM0_DMA_SRC_PWM0_CMP19 (0x13UL)
  614. #define HPM_TRGM0_DMA_SRC_PWM0_CMP20 (0x14UL)
  615. #define HPM_TRGM0_DMA_SRC_PWM0_CMP21 (0x15UL)
  616. #define HPM_TRGM0_DMA_SRC_PWM0_CMP22 (0x16UL)
  617. #define HPM_TRGM0_DMA_SRC_PWM0_CMP23 (0x17UL)
  618. #define HPM_TRGM0_DMA_SRC_PWM0_RLD (0x18UL)
  619. #define HPM_TRGM0_DMA_SRC_PWM0_HALFRLD (0x19UL)
  620. #define HPM_TRGM0_DMA_SRC_PWM0_XRLD (0x1AUL)
  621. #define HPM_TRGM0_DMA_SRC_QEI0 (0x1BUL)
  622. #define HPM_TRGM0_DMA_SRC_HALL0 (0x1CUL)
  623. /* trgm1_dma mux definitions */
  624. #define HPM_TRGM1_DMA_SRC_PWM1_CMP0 (0x0UL)
  625. #define HPM_TRGM1_DMA_SRC_PWM1_CMP1 (0x1UL)
  626. #define HPM_TRGM1_DMA_SRC_PWM1_CMP2 (0x2UL)
  627. #define HPM_TRGM1_DMA_SRC_PWM1_CMP3 (0x3UL)
  628. #define HPM_TRGM1_DMA_SRC_PWM1_CMP4 (0x4UL)
  629. #define HPM_TRGM1_DMA_SRC_PWM1_CMP5 (0x5UL)
  630. #define HPM_TRGM1_DMA_SRC_PWM1_CMP6 (0x6UL)
  631. #define HPM_TRGM1_DMA_SRC_PWM1_CMP7 (0x7UL)
  632. #define HPM_TRGM1_DMA_SRC_PWM1_CMP8 (0x8UL)
  633. #define HPM_TRGM1_DMA_SRC_PWM1_CMP9 (0x9UL)
  634. #define HPM_TRGM1_DMA_SRC_PWM1_CMP10 (0xAUL)
  635. #define HPM_TRGM1_DMA_SRC_PWM1_CMP11 (0xBUL)
  636. #define HPM_TRGM1_DMA_SRC_PWM1_CMP12 (0xCUL)
  637. #define HPM_TRGM1_DMA_SRC_PWM1_CMP13 (0xDUL)
  638. #define HPM_TRGM1_DMA_SRC_PWM1_CMP14 (0xEUL)
  639. #define HPM_TRGM1_DMA_SRC_PWM1_CMP15 (0xFUL)
  640. #define HPM_TRGM1_DMA_SRC_PWM1_CMP16 (0x10UL)
  641. #define HPM_TRGM1_DMA_SRC_PWM1_CMP17 (0x11UL)
  642. #define HPM_TRGM1_DMA_SRC_PWM1_CMP18 (0x12UL)
  643. #define HPM_TRGM1_DMA_SRC_PWM1_CMP19 (0x13UL)
  644. #define HPM_TRGM1_DMA_SRC_PWM1_CMP20 (0x14UL)
  645. #define HPM_TRGM1_DMA_SRC_PWM1_CMP21 (0x15UL)
  646. #define HPM_TRGM1_DMA_SRC_PWM1_CMP22 (0x16UL)
  647. #define HPM_TRGM1_DMA_SRC_PWM1_CMP23 (0x17UL)
  648. #define HPM_TRGM1_DMA_SRC_PWM1_RLD (0x18UL)
  649. #define HPM_TRGM1_DMA_SRC_PWM1_HALFRLD (0x19UL)
  650. #define HPM_TRGM1_DMA_SRC_PWM1_XRLD (0x1AUL)
  651. #define HPM_TRGM1_DMA_SRC_QEI1 (0x1BUL)
  652. #define HPM_TRGM1_DMA_SRC_HALL1 (0x1CUL)
  653. /* trgm2_dma mux definitions */
  654. #define HPM_TRGM2_DMA_SRC_PWM2_CMP0 (0x0UL)
  655. #define HPM_TRGM2_DMA_SRC_PWM2_CMP1 (0x1UL)
  656. #define HPM_TRGM2_DMA_SRC_PWM2_CMP2 (0x2UL)
  657. #define HPM_TRGM2_DMA_SRC_PWM2_CMP3 (0x3UL)
  658. #define HPM_TRGM2_DMA_SRC_PWM2_CMP4 (0x4UL)
  659. #define HPM_TRGM2_DMA_SRC_PWM2_CMP5 (0x5UL)
  660. #define HPM_TRGM2_DMA_SRC_PWM2_CMP6 (0x6UL)
  661. #define HPM_TRGM2_DMA_SRC_PWM2_CMP7 (0x7UL)
  662. #define HPM_TRGM2_DMA_SRC_PWM2_CMP8 (0x8UL)
  663. #define HPM_TRGM2_DMA_SRC_PWM2_CMP9 (0x9UL)
  664. #define HPM_TRGM2_DMA_SRC_PWM2_CMP10 (0xAUL)
  665. #define HPM_TRGM2_DMA_SRC_PWM2_CMP11 (0xBUL)
  666. #define HPM_TRGM2_DMA_SRC_PWM2_CMP12 (0xCUL)
  667. #define HPM_TRGM2_DMA_SRC_PWM2_CMP13 (0xDUL)
  668. #define HPM_TRGM2_DMA_SRC_PWM2_CMP14 (0xEUL)
  669. #define HPM_TRGM2_DMA_SRC_PWM2_CMP15 (0xFUL)
  670. #define HPM_TRGM2_DMA_SRC_PWM2_CMP16 (0x10UL)
  671. #define HPM_TRGM2_DMA_SRC_PWM2_CMP17 (0x11UL)
  672. #define HPM_TRGM2_DMA_SRC_PWM2_CMP18 (0x12UL)
  673. #define HPM_TRGM2_DMA_SRC_PWM2_CMP19 (0x13UL)
  674. #define HPM_TRGM2_DMA_SRC_PWM2_CMP20 (0x14UL)
  675. #define HPM_TRGM2_DMA_SRC_PWM2_CMP21 (0x15UL)
  676. #define HPM_TRGM2_DMA_SRC_PWM2_CMP22 (0x16UL)
  677. #define HPM_TRGM2_DMA_SRC_PWM2_CMP23 (0x17UL)
  678. #define HPM_TRGM2_DMA_SRC_PWM2_RLD (0x18UL)
  679. #define HPM_TRGM2_DMA_SRC_PWM2_HALFRLD (0x19UL)
  680. #define HPM_TRGM2_DMA_SRC_PWM2_XRLD (0x1AUL)
  681. #define HPM_TRGM2_DMA_SRC_QEI2 (0x1BUL)
  682. #define HPM_TRGM2_DMA_SRC_HALL2 (0x1CUL)
  683. /* trgm3_dma mux definitions */
  684. #define HPM_TRGM3_DMA_SRC_PWM3_CMP0 (0x0UL)
  685. #define HPM_TRGM3_DMA_SRC_PWM3_CMP1 (0x1UL)
  686. #define HPM_TRGM3_DMA_SRC_PWM3_CMP2 (0x2UL)
  687. #define HPM_TRGM3_DMA_SRC_PWM3_CMP3 (0x3UL)
  688. #define HPM_TRGM3_DMA_SRC_PWM3_CMP4 (0x4UL)
  689. #define HPM_TRGM3_DMA_SRC_PWM3_CMP5 (0x5UL)
  690. #define HPM_TRGM3_DMA_SRC_PWM3_CMP6 (0x6UL)
  691. #define HPM_TRGM3_DMA_SRC_PWM3_CMP7 (0x7UL)
  692. #define HPM_TRGM3_DMA_SRC_PWM3_CMP8 (0x8UL)
  693. #define HPM_TRGM3_DMA_SRC_PWM3_CMP9 (0x9UL)
  694. #define HPM_TRGM3_DMA_SRC_PWM3_CMP10 (0xAUL)
  695. #define HPM_TRGM3_DMA_SRC_PWM3_CMP11 (0xBUL)
  696. #define HPM_TRGM3_DMA_SRC_PWM3_CMP12 (0xCUL)
  697. #define HPM_TRGM3_DMA_SRC_PWM3_CMP13 (0xDUL)
  698. #define HPM_TRGM3_DMA_SRC_PWM3_CMP14 (0xEUL)
  699. #define HPM_TRGM3_DMA_SRC_PWM3_CMP15 (0xFUL)
  700. #define HPM_TRGM3_DMA_SRC_PWM3_CMP16 (0x10UL)
  701. #define HPM_TRGM3_DMA_SRC_PWM3_CMP17 (0x11UL)
  702. #define HPM_TRGM3_DMA_SRC_PWM3_CMP18 (0x12UL)
  703. #define HPM_TRGM3_DMA_SRC_PWM3_CMP19 (0x13UL)
  704. #define HPM_TRGM3_DMA_SRC_PWM3_CMP20 (0x14UL)
  705. #define HPM_TRGM3_DMA_SRC_PWM3_CMP21 (0x15UL)
  706. #define HPM_TRGM3_DMA_SRC_PWM3_CMP22 (0x16UL)
  707. #define HPM_TRGM3_DMA_SRC_PWM3_CMP23 (0x17UL)
  708. #define HPM_TRGM3_DMA_SRC_PWM3_RLD (0x18UL)
  709. #define HPM_TRGM3_DMA_SRC_PWM3_HALFRLD (0x19UL)
  710. #define HPM_TRGM3_DMA_SRC_PWM3_XRLD (0x1AUL)
  711. #define HPM_TRGM3_DMA_SRC_QEI3 (0x1BUL)
  712. #define HPM_TRGM3_DMA_SRC_HALL3 (0x1CUL)
  713. #endif /* HPM_TRGMMUX_SRC_H */