cslr_cmi.h 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584
  1. /********************************************************************
  2. * Copyright (C) 2013-2014 Texas Instruments Incorporated.
  3. *
  4. * Redistribution and use in source and binary forms, with or without
  5. * modification, are permitted provided that the following conditions
  6. * are met:
  7. *
  8. * Redistributions of source code must retain the above copyright
  9. * notice, this list of conditions and the following disclaimer.
  10. *
  11. * Redistributions in binary form must reproduce the above copyright
  12. * notice, this list of conditions and the following disclaimer in the
  13. * documentation and/or other materials provided with the
  14. * distribution.
  15. *
  16. * Neither the name of Texas Instruments Incorporated nor the names of
  17. * its contributors may be used to endorse or promote products derived
  18. * from this software without specific prior written permission.
  19. *
  20. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  21. * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  22. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  23. * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  24. * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  25. * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  26. * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  27. * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  28. * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  29. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  30. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  31. *
  32. */
  33. #ifndef CSLR_CMI_H_
  34. #define CSLR_CMI_H_
  35. #ifdef __cplusplus
  36. extern "C"
  37. {
  38. #endif
  39. #include <ti/csl/cslr.h>
  40. #include <ti/csl/tistdtypes.h>
  41. /**************************************************************************
  42. * Register Overlay Structure for __ALL__
  43. **************************************************************************/
  44. typedef struct {
  45. volatile Uint32 CMI_IDENTICATION;
  46. volatile Uint8 RSVD0[12];
  47. volatile Uint32 CMI_SYS_CONFIG;
  48. volatile Uint32 CMI_STATUS;
  49. volatile Uint8 RSVD1[12];
  50. volatile Uint32 CMI_CONFIGURATION;
  51. volatile Uint32 CMI_CLASS_FILTERING;
  52. volatile Uint32 CMI_TRIGGERING;
  53. volatile Uint32 CMI_SAMPLING;
  54. } CSL_CMIRegs;
  55. /**************************************************************************
  56. * Register Macros
  57. **************************************************************************/
  58. #define CSL_CMI_CMI_IDENTICATION (0x0U)
  59. /* Below define for backward compatibility */
  60. #define CMI_IDENTICATION (CSL_CMI_CMI_IDENTICATION)
  61. #define CSL_CMI_CMI_SYS_CONFIG (0x10U)
  62. /* Below define for backward compatibility */
  63. #define CMI_SYS_CONFIG (CSL_CMI_CMI_SYS_CONFIG)
  64. #define CSL_CMI_CMI_STATUS (0x14U)
  65. /* Below define for backward compatibility */
  66. #define CMI_STATUS (CSL_CMI_CMI_STATUS)
  67. #define CSL_CMI_CMI_CONFIGURATION (0x24U)
  68. /* Below define for backward compatibility */
  69. #define CMI_CONFIGURATION (CSL_CMI_CMI_CONFIGURATION)
  70. #define CSL_CMI_CMI_CLASS_FILTERING (0x28U)
  71. /* Below define for backward compatibility */
  72. #define CMI_CLASS_FILTERING (CSL_CMI_CMI_CLASS_FILTERING)
  73. #define CSL_CMI_CMI_TRIGGERING (0x2CU)
  74. /* Below define for backward compatibility */
  75. #define CMI_TRIGGERING (CSL_CMI_CMI_TRIGGERING)
  76. #define CSL_CMI_CMI_SAMPLING (0x30U)
  77. /* Below define for backward compatibility */
  78. #define CMI_SAMPLING (CSL_CMI_CMI_SAMPLING)
  79. /**************************************************************************
  80. * Field Definition Macros
  81. **************************************************************************/
  82. /* CMI_IDENTICATION */
  83. #define CSL_CMI_CMI_IDENTICATION_SCHEME_MASK (0xC0000000U)
  84. /* Below define for backward compatibility */
  85. #define CMI_IDENTICATION_SCHEME_MASK (CSL_CMI_CMI_IDENTICATION_SCHEME_MASK)
  86. #define CSL_CMI_CMI_IDENTICATION_SCHEME_RESETVAL (0x00000001U)
  87. #define CSL_CMI_CMI_IDENTICATION_SCHEME_SHIFT (30U)
  88. /* Below define for backward compatibility */
  89. #define CMI_IDENTICATION_SCHEME_SHIFT (CSL_CMI_CMI_IDENTICATION_SCHEME_SHIFT)
  90. #define CSL_CMI_CMI_IDENTICATION_SCHEME_MAX (0x00000003U)
  91. #define CSL_CMI_CMI_IDENTICATION_FUNC_MASK (0x0FFF0000U)
  92. /* Below define for backward compatibility */
  93. #define CMI_IDENTICATION_FUNC_MASK (CSL_CMI_CMI_IDENTICATION_FUNC_MASK)
  94. #define CSL_CMI_CMI_IDENTICATION_FUNC_RESETVAL (0x00000005U)
  95. #define CSL_CMI_CMI_IDENTICATION_FUNC_SHIFT (16U)
  96. /* Below define for backward compatibility */
  97. #define CMI_IDENTICATION_FUNC_SHIFT (CSL_CMI_CMI_IDENTICATION_FUNC_SHIFT)
  98. #define CSL_CMI_CMI_IDENTICATION_FUNC_MAX (0x00000fffU)
  99. #define CSL_CMI_CMI_IDENTICATION_RTL_MASK (0x0000F800U)
  100. /* Below define for backward compatibility */
  101. #define CMI_IDENTICATION_RTL_MASK (CSL_CMI_CMI_IDENTICATION_RTL_MASK)
  102. #define CSL_CMI_CMI_IDENTICATION_RTL_RESETVAL (0x00000009U)
  103. #define CSL_CMI_CMI_IDENTICATION_RTL_SHIFT (11U)
  104. /* Below define for backward compatibility */
  105. #define CMI_IDENTICATION_RTL_SHIFT (CSL_CMI_CMI_IDENTICATION_RTL_SHIFT)
  106. #define CSL_CMI_CMI_IDENTICATION_RTL_MAX (0x0000001fU)
  107. #define CSL_CMI_CMI_IDENTICATION_MAJOR_MASK (0x00000700U)
  108. /* Below define for backward compatibility */
  109. #define CMI_IDENTICATION_MAJOR_MASK (CSL_CMI_CMI_IDENTICATION_MAJOR_MASK)
  110. #define CSL_CMI_CMI_IDENTICATION_MAJOR_RESETVAL (0x00000000U)
  111. #define CSL_CMI_CMI_IDENTICATION_MAJOR_SHIFT (8U)
  112. /* Below define for backward compatibility */
  113. #define CMI_IDENTICATION_MAJOR_SHIFT (CSL_CMI_CMI_IDENTICATION_MAJOR_SHIFT)
  114. #define CSL_CMI_CMI_IDENTICATION_MAJOR_MAX (0x00000007U)
  115. #define CSL_CMI_CMI_IDENTICATION_CUSTOM_MASK (0x000000C0U)
  116. /* Below define for backward compatibility */
  117. #define CMI_IDENTICATION_CUSTOM_MASK (CSL_CMI_CMI_IDENTICATION_CUSTOM_MASK)
  118. #define CSL_CMI_CMI_IDENTICATION_CUSTOM_RESETVAL (0x00000000U)
  119. #define CSL_CMI_CMI_IDENTICATION_CUSTOM_SHIFT (6U)
  120. /* Below define for backward compatibility */
  121. #define CMI_IDENTICATION_CUSTOM_SHIFT (CSL_CMI_CMI_IDENTICATION_CUSTOM_SHIFT)
  122. #define CSL_CMI_CMI_IDENTICATION_CUSTOM_MAX (0x00000003U)
  123. #define CSL_CMI_CMI_IDENTICATION_MINOR_MASK (0x0000003FU)
  124. /* Below define for backward compatibility */
  125. #define CMI_IDENTICATION_MINOR_MASK (CSL_CMI_CMI_IDENTICATION_MINOR_MASK)
  126. #define CSL_CMI_CMI_IDENTICATION_MINOR_RESETVAL (0x00000000U)
  127. #define CSL_CMI_CMI_IDENTICATION_MINOR_SHIFT (0U)
  128. /* Below define for backward compatibility */
  129. #define CMI_IDENTICATION_MINOR_SHIFT (CSL_CMI_CMI_IDENTICATION_MINOR_SHIFT)
  130. #define CSL_CMI_CMI_IDENTICATION_MINOR_MAX (0x0000003fU)
  131. #define CSL_CMI_CMI_IDENTICATION_RESETVAL (0x50054800U)
  132. /* CMI_SYS_CONFIG */
  133. #define CSL_CMI_CMI_SYS_CONFIG_IDLEMODE_MASK (0x0000000CU)
  134. /* Below define for backward compatibility */
  135. #define CMI_SYS_CONFIG_IDLEMODE_MASK (CSL_CMI_CMI_SYS_CONFIG_IDLEMODE_MASK)
  136. #define CSL_CMI_CMI_SYS_CONFIG_IDLEMODE_RESETVAL (0x00000002U)
  137. #define CSL_CMI_CMI_SYS_CONFIG_IDLEMODE_SHIFT (2U)
  138. /* Below define for backward compatibility */
  139. #define CMI_SYS_CONFIG_IDLEMODE_SHIFT (CSL_CMI_CMI_SYS_CONFIG_IDLEMODE_SHIFT)
  140. #define CSL_CMI_CMI_SYS_CONFIG_IDLEMODE_MAX (0x00000003U)
  141. #define CSL_CMI_CMI_SYS_CONFIG_SOFTRESET_MASK (0x00000001U)
  142. /* Below define for backward compatibility */
  143. #define CMI_SYS_CONFIG_SOFTRESET_MASK (CSL_CMI_CMI_SYS_CONFIG_SOFTRESET_MASK)
  144. #define CSL_CMI_CMI_SYS_CONFIG_SOFTRESET_RESETVAL (0x00000000U)
  145. #define CSL_CMI_CMI_SYS_CONFIG_SOFTRESET_SHIFT (0U)
  146. /* Below define for backward compatibility */
  147. #define CMI_SYS_CONFIG_SOFTRESET_SHIFT (CSL_CMI_CMI_SYS_CONFIG_SOFTRESET_SHIFT)
  148. #define CSL_CMI_CMI_SYS_CONFIG_SOFTRESET_MAX (0x00000001U)
  149. #define CSL_CMI_CMI_SYS_CONFIG_RESETVAL (0x00000008U)
  150. /* CMI_STATUS */
  151. #define CSL_CMI_CMI_STATUS_FIFOEMPTY_MASK (0x00000100U)
  152. /* Below define for backward compatibility */
  153. #define CMI_STATUS_FIFOEMPTY_MASK (CSL_CMI_CMI_STATUS_FIFOEMPTY_MASK)
  154. #define CSL_CMI_CMI_STATUS_FIFOEMPTY_RESETVAL (0x00000001U)
  155. #define CSL_CMI_CMI_STATUS_FIFOEMPTY_SHIFT (8U)
  156. /* Below define for backward compatibility */
  157. #define CMI_STATUS_FIFOEMPTY_SHIFT (CSL_CMI_CMI_STATUS_FIFOEMPTY_SHIFT)
  158. #define CSL_CMI_CMI_STATUS_FIFOEMPTY_MAX (0x00000001U)
  159. #define CSL_CMI_CMI_STATUS_RESETVAL (0x00000100U)
  160. /* CMI_CONFIGURATION */
  161. #define CSL_CMI_CMI_CONFIGURATION_CLAIM_3_MASK (0xC0000000U)
  162. /* Below define for backward compatibility */
  163. #define CMI_CONFIGURATION_CLAIM_3_MASK (CSL_CMI_CMI_CONFIGURATION_CLAIM_3_MASK)
  164. #define CSL_CMI_CMI_CONFIGURATION_CLAIM_3_RESETVAL (0x00000000U)
  165. #define CSL_CMI_CMI_CONFIGURATION_CLAIM_3_SHIFT (30U)
  166. /* Below define for backward compatibility */
  167. #define CMI_CONFIGURATION_CLAIM_3_SHIFT (CSL_CMI_CMI_CONFIGURATION_CLAIM_3_SHIFT)
  168. #define CSL_CMI_CMI_CONFIGURATION_CLAIM_3_MAX (0x00000003U)
  169. #define CSL_CMI_CMI_CONFIGURATION_CLAIM_2_MASK (0x20000000U)
  170. /* Below define for backward compatibility */
  171. #define CMI_CONFIGURATION_CLAIM_2_MASK (CSL_CMI_CMI_CONFIGURATION_CLAIM_2_MASK)
  172. #define CSL_CMI_CMI_CONFIGURATION_CLAIM_2_RESETVAL (0x00000001U)
  173. #define CSL_CMI_CMI_CONFIGURATION_CLAIM_2_SHIFT (29U)
  174. /* Below define for backward compatibility */
  175. #define CMI_CONFIGURATION_CLAIM_2_SHIFT (CSL_CMI_CMI_CONFIGURATION_CLAIM_2_SHIFT)
  176. #define CSL_CMI_CMI_CONFIGURATION_CLAIM_2_MAX (0x00000001U)
  177. #define CSL_CMI_CMI_CONFIGURATION_CLAIM_1_MASK (0x10000000U)
  178. /* Below define for backward compatibility */
  179. #define CMI_CONFIGURATION_CLAIM_1_MASK (CSL_CMI_CMI_CONFIGURATION_CLAIM_1_MASK)
  180. #define CSL_CMI_CMI_CONFIGURATION_CLAIM_1_RESETVAL (0x00000000U)
  181. #define CSL_CMI_CMI_CONFIGURATION_CLAIM_1_SHIFT (28U)
  182. /* Below define for backward compatibility */
  183. #define CMI_CONFIGURATION_CLAIM_1_SHIFT (CSL_CMI_CMI_CONFIGURATION_CLAIM_1_SHIFT)
  184. #define CSL_CMI_CMI_CONFIGURATION_CLAIM_1_MAX (0x00000001U)
  185. #define CSL_CMI_CMI_CONFIGURATION_MOD_ACT_EN_MASK (0x00008000U)
  186. /* Below define for backward compatibility */
  187. #define CMI_CONFIGURATION_MOD_ACT_EN_MASK (CSL_CMI_CMI_CONFIGURATION_MOD_ACT_EN_MASK)
  188. #define CSL_CMI_CMI_CONFIGURATION_MOD_ACT_EN_RESETVAL (0x00000000U)
  189. #define CSL_CMI_CMI_CONFIGURATION_MOD_ACT_EN_SHIFT (15U)
  190. /* Below define for backward compatibility */
  191. #define CMI_CONFIGURATION_MOD_ACT_EN_SHIFT (CSL_CMI_CMI_CONFIGURATION_MOD_ACT_EN_SHIFT)
  192. #define CSL_CMI_CMI_CONFIGURATION_MOD_ACT_EN_MAX (0x00000001U)
  193. #define CSL_CMI_CMI_CONFIGURATION_EVT_CAPT_EN_MASK (0x00000080U)
  194. /* Below define for backward compatibility */
  195. #define CMI_CONFIGURATION_EVT_CAPT_EN_MASK (CSL_CMI_CMI_CONFIGURATION_EVT_CAPT_EN_MASK)
  196. #define CSL_CMI_CMI_CONFIGURATION_EVT_CAPT_EN_RESETVAL (0x00000000U)
  197. #define CSL_CMI_CMI_CONFIGURATION_EVT_CAPT_EN_SHIFT (7U)
  198. /* Below define for backward compatibility */
  199. #define CMI_CONFIGURATION_EVT_CAPT_EN_SHIFT (CSL_CMI_CMI_CONFIGURATION_EVT_CAPT_EN_SHIFT)
  200. #define CSL_CMI_CMI_CONFIGURATION_EVT_CAPT_EN_MAX (0x00000001U)
  201. #define CSL_CMI_CMI_CONFIGURATION_RESETVAL (0x20000000U)
  202. /* CMI_CLASS_FILTERING */
  203. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_1F_MASK (0x80000000U)
  204. /* Below define for backward compatibility */
  205. #define CMI_CLASS_FILTERING_SNAP_CAPT_EN_1F_MASK (CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_1F_MASK)
  206. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_1F_RESETVAL (0x00000000U)
  207. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_1F_SHIFT (31U)
  208. /* Below define for backward compatibility */
  209. #define CMI_CLASS_FILTERING_SNAP_CAPT_EN_1F_SHIFT (CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_1F_SHIFT)
  210. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_1F_MAX (0x00000001U)
  211. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_1E_MASK (0x40000000U)
  212. /* Below define for backward compatibility */
  213. #define CMI_CLASS_FILTERING_SNAP_CAPT_EN_1E_MASK (CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_1E_MASK)
  214. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_1E_RESETVAL (0x00000000U)
  215. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_1E_SHIFT (30U)
  216. /* Below define for backward compatibility */
  217. #define CMI_CLASS_FILTERING_SNAP_CAPT_EN_1E_SHIFT (CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_1E_SHIFT)
  218. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_1E_MAX (0x00000001U)
  219. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_1D_MASK (0x20000000U)
  220. /* Below define for backward compatibility */
  221. #define CMI_CLASS_FILTERING_SNAP_CAPT_EN_1D_MASK (CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_1D_MASK)
  222. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_1D_RESETVAL (0x00000000U)
  223. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_1D_SHIFT (29U)
  224. /* Below define for backward compatibility */
  225. #define CMI_CLASS_FILTERING_SNAP_CAPT_EN_1D_SHIFT (CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_1D_SHIFT)
  226. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_1D_MAX (0x00000001U)
  227. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_1C_MASK (0x10000000U)
  228. /* Below define for backward compatibility */
  229. #define CMI_CLASS_FILTERING_SNAP_CAPT_EN_1C_MASK (CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_1C_MASK)
  230. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_1C_RESETVAL (0x00000000U)
  231. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_1C_SHIFT (28U)
  232. /* Below define for backward compatibility */
  233. #define CMI_CLASS_FILTERING_SNAP_CAPT_EN_1C_SHIFT (CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_1C_SHIFT)
  234. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_1C_MAX (0x00000001U)
  235. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_1B_MASK (0x08000000U)
  236. /* Below define for backward compatibility */
  237. #define CMI_CLASS_FILTERING_SNAP_CAPT_EN_1B_MASK (CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_1B_MASK)
  238. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_1B_RESETVAL (0x00000000U)
  239. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_1B_SHIFT (27U)
  240. /* Below define for backward compatibility */
  241. #define CMI_CLASS_FILTERING_SNAP_CAPT_EN_1B_SHIFT (CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_1B_SHIFT)
  242. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_1B_MAX (0x00000001U)
  243. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_1A_MASK (0x04000000U)
  244. /* Below define for backward compatibility */
  245. #define CMI_CLASS_FILTERING_SNAP_CAPT_EN_1A_MASK (CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_1A_MASK)
  246. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_1A_RESETVAL (0x00000000U)
  247. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_1A_SHIFT (26U)
  248. /* Below define for backward compatibility */
  249. #define CMI_CLASS_FILTERING_SNAP_CAPT_EN_1A_SHIFT (CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_1A_SHIFT)
  250. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_1A_MAX (0x00000001U)
  251. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_19_MASK (0x02000000U)
  252. /* Below define for backward compatibility */
  253. #define CMI_CLASS_FILTERING_SNAP_CAPT_EN_19_MASK (CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_19_MASK)
  254. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_19_RESETVAL (0x00000000U)
  255. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_19_SHIFT (25U)
  256. /* Below define for backward compatibility */
  257. #define CMI_CLASS_FILTERING_SNAP_CAPT_EN_19_SHIFT (CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_19_SHIFT)
  258. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_19_MAX (0x00000001U)
  259. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_18_MASK (0x01000000U)
  260. /* Below define for backward compatibility */
  261. #define CMI_CLASS_FILTERING_SNAP_CAPT_EN_18_MASK (CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_18_MASK)
  262. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_18_RESETVAL (0x00000000U)
  263. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_18_SHIFT (24U)
  264. /* Below define for backward compatibility */
  265. #define CMI_CLASS_FILTERING_SNAP_CAPT_EN_18_SHIFT (CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_18_SHIFT)
  266. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_18_MAX (0x00000001U)
  267. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_17_MASK (0x00800000U)
  268. /* Below define for backward compatibility */
  269. #define CMI_CLASS_FILTERING_SNAP_CAPT_EN_17_MASK (CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_17_MASK)
  270. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_17_RESETVAL (0x00000000U)
  271. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_17_SHIFT (23U)
  272. /* Below define for backward compatibility */
  273. #define CMI_CLASS_FILTERING_SNAP_CAPT_EN_17_SHIFT (CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_17_SHIFT)
  274. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_17_MAX (0x00000001U)
  275. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_16_MASK (0x00400000U)
  276. /* Below define for backward compatibility */
  277. #define CMI_CLASS_FILTERING_SNAP_CAPT_EN_16_MASK (CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_16_MASK)
  278. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_16_RESETVAL (0x00000000U)
  279. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_16_SHIFT (22U)
  280. /* Below define for backward compatibility */
  281. #define CMI_CLASS_FILTERING_SNAP_CAPT_EN_16_SHIFT (CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_16_SHIFT)
  282. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_16_MAX (0x00000001U)
  283. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_15_MASK (0x00200000U)
  284. /* Below define for backward compatibility */
  285. #define CMI_CLASS_FILTERING_SNAP_CAPT_EN_15_MASK (CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_15_MASK)
  286. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_15_RESETVAL (0x00000000U)
  287. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_15_SHIFT (21U)
  288. /* Below define for backward compatibility */
  289. #define CMI_CLASS_FILTERING_SNAP_CAPT_EN_15_SHIFT (CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_15_SHIFT)
  290. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_15_MAX (0x00000001U)
  291. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_14_MASK (0x00100000U)
  292. /* Below define for backward compatibility */
  293. #define CMI_CLASS_FILTERING_SNAP_CAPT_EN_14_MASK (CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_14_MASK)
  294. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_14_RESETVAL (0x00000000U)
  295. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_14_SHIFT (20U)
  296. /* Below define for backward compatibility */
  297. #define CMI_CLASS_FILTERING_SNAP_CAPT_EN_14_SHIFT (CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_14_SHIFT)
  298. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_14_MAX (0x00000001U)
  299. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_13_MASK (0x00080000U)
  300. /* Below define for backward compatibility */
  301. #define CMI_CLASS_FILTERING_SNAP_CAPT_EN_13_MASK (CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_13_MASK)
  302. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_13_RESETVAL (0x00000000U)
  303. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_13_SHIFT (19U)
  304. /* Below define for backward compatibility */
  305. #define CMI_CLASS_FILTERING_SNAP_CAPT_EN_13_SHIFT (CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_13_SHIFT)
  306. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_13_MAX (0x00000001U)
  307. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_12_MASK (0x00040000U)
  308. /* Below define for backward compatibility */
  309. #define CMI_CLASS_FILTERING_SNAP_CAPT_EN_12_MASK (CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_12_MASK)
  310. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_12_RESETVAL (0x00000000U)
  311. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_12_SHIFT (18U)
  312. /* Below define for backward compatibility */
  313. #define CMI_CLASS_FILTERING_SNAP_CAPT_EN_12_SHIFT (CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_12_SHIFT)
  314. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_12_MAX (0x00000001U)
  315. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_11_MASK (0x00020000U)
  316. /* Below define for backward compatibility */
  317. #define CMI_CLASS_FILTERING_SNAP_CAPT_EN_11_MASK (CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_11_MASK)
  318. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_11_RESETVAL (0x00000000U)
  319. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_11_SHIFT (17U)
  320. /* Below define for backward compatibility */
  321. #define CMI_CLASS_FILTERING_SNAP_CAPT_EN_11_SHIFT (CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_11_SHIFT)
  322. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_11_MAX (0x00000001U)
  323. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_10_MASK (0x00010000U)
  324. /* Below define for backward compatibility */
  325. #define CMI_CLASS_FILTERING_SNAP_CAPT_EN_10_MASK (CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_10_MASK)
  326. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_10_RESETVAL (0x00000000U)
  327. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_10_SHIFT (16U)
  328. /* Below define for backward compatibility */
  329. #define CMI_CLASS_FILTERING_SNAP_CAPT_EN_10_SHIFT (CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_10_SHIFT)
  330. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_10_MAX (0x00000001U)
  331. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_03_MASK (0x00000008U)
  332. /* Below define for backward compatibility */
  333. #define CMI_CLASS_FILTERING_SNAP_CAPT_EN_03_MASK (CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_03_MASK)
  334. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_03_RESETVAL (0x00000000U)
  335. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_03_SHIFT (3U)
  336. /* Below define for backward compatibility */
  337. #define CMI_CLASS_FILTERING_SNAP_CAPT_EN_03_SHIFT (CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_03_SHIFT)
  338. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_03_MAX (0x00000001U)
  339. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_02_MASK (0x00000004U)
  340. /* Below define for backward compatibility */
  341. #define CMI_CLASS_FILTERING_SNAP_CAPT_EN_02_MASK (CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_02_MASK)
  342. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_02_RESETVAL (0x00000000U)
  343. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_02_SHIFT (2U)
  344. /* Below define for backward compatibility */
  345. #define CMI_CLASS_FILTERING_SNAP_CAPT_EN_02_SHIFT (CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_02_SHIFT)
  346. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_02_MAX (0x00000001U)
  347. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_01_MASK (0x00000002U)
  348. /* Below define for backward compatibility */
  349. #define CMI_CLASS_FILTERING_SNAP_CAPT_EN_01_MASK (CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_01_MASK)
  350. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_01_RESETVAL (0x00000000U)
  351. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_01_SHIFT (1U)
  352. /* Below define for backward compatibility */
  353. #define CMI_CLASS_FILTERING_SNAP_CAPT_EN_01_SHIFT (CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_01_SHIFT)
  354. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_01_MAX (0x00000001U)
  355. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_00_MASK (0x00000001U)
  356. /* Below define for backward compatibility */
  357. #define CMI_CLASS_FILTERING_SNAP_CAPT_EN_00_MASK (CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_00_MASK)
  358. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_00_RESETVAL (0x00000000U)
  359. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_00_SHIFT (0U)
  360. /* Below define for backward compatibility */
  361. #define CMI_CLASS_FILTERING_SNAP_CAPT_EN_00_SHIFT (CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_00_SHIFT)
  362. #define CSL_CMI_CMI_CLASS_FILTERING_SNAP_CAPT_EN_00_MAX (0x00000001U)
  363. #define CSL_CMI_CMI_CLASS_FILTERING_RESETVAL (0x00000000U)
  364. /* CMI_TRIGGERING */
  365. #define CSL_CMI_CMI_TRIGGERING_TRIG_STOP_EN_MASK (0x00000002U)
  366. /* Below define for backward compatibility */
  367. #define CMI_TRIGGERING_TRIG_STOP_EN_MASK (CSL_CMI_CMI_TRIGGERING_TRIG_STOP_EN_MASK)
  368. #define CSL_CMI_CMI_TRIGGERING_TRIG_STOP_EN_RESETVAL (0x00000000U)
  369. #define CSL_CMI_CMI_TRIGGERING_TRIG_STOP_EN_SHIFT (1U)
  370. /* Below define for backward compatibility */
  371. #define CMI_TRIGGERING_TRIG_STOP_EN_SHIFT (CSL_CMI_CMI_TRIGGERING_TRIG_STOP_EN_SHIFT)
  372. #define CSL_CMI_CMI_TRIGGERING_TRIG_STOP_EN_MAX (0x00000001U)
  373. #define CSL_CMI_CMI_TRIGGERING_TRIG_START_EN_MASK (0x00000001U)
  374. /* Below define for backward compatibility */
  375. #define CMI_TRIGGERING_TRIG_START_EN_MASK (CSL_CMI_CMI_TRIGGERING_TRIG_START_EN_MASK)
  376. #define CSL_CMI_CMI_TRIGGERING_TRIG_START_EN_RESETVAL (0x00000000U)
  377. #define CSL_CMI_CMI_TRIGGERING_TRIG_START_EN_SHIFT (0U)
  378. /* Below define for backward compatibility */
  379. #define CMI_TRIGGERING_TRIG_START_EN_SHIFT (CSL_CMI_CMI_TRIGGERING_TRIG_START_EN_SHIFT)
  380. #define CSL_CMI_CMI_TRIGGERING_TRIG_START_EN_MAX (0x00000001U)
  381. #define CSL_CMI_CMI_TRIGGERING_RESETVAL (0x00000000U)
  382. /* CMI_SAMPLING */
  383. #define CSL_CMI_CMI_SAMPLING_FCLK_DIV_FACOR_MASK (0x000F0000U)
  384. /* Below define for backward compatibility */
  385. #define CMI_SAMPLING_FCLK_DIV_FACOR_MASK (CSL_CMI_CMI_SAMPLING_FCLK_DIV_FACOR_MASK)
  386. #define CSL_CMI_CMI_SAMPLING_FCLK_DIV_FACOR_RESETVAL (0x00000000U)
  387. #define CSL_CMI_CMI_SAMPLING_FCLK_DIV_FACOR_SHIFT (16U)
  388. /* Below define for backward compatibility */
  389. #define CMI_SAMPLING_FCLK_DIV_FACOR_SHIFT (CSL_CMI_CMI_SAMPLING_FCLK_DIV_FACOR_SHIFT)
  390. #define CSL_CMI_CMI_SAMPLING_FCLK_DIV_FACOR_MAX (0x0000000fU)
  391. #define CSL_CMI_CMI_SAMPLING_SAMP_WIND_SIZE_MASK (0x000000FFU)
  392. /* Below define for backward compatibility */
  393. #define CMI_SAMPLING_SAMP_WIND_SIZE_MASK (CSL_CMI_CMI_SAMPLING_SAMP_WIND_SIZE_MASK)
  394. #define CSL_CMI_CMI_SAMPLING_SAMP_WIND_SIZE_RESETVAL (0x00000000U)
  395. #define CSL_CMI_CMI_SAMPLING_SAMP_WIND_SIZE_SHIFT (0U)
  396. /* Below define for backward compatibility */
  397. #define CMI_SAMPLING_SAMP_WIND_SIZE_SHIFT (CSL_CMI_CMI_SAMPLING_SAMP_WIND_SIZE_SHIFT)
  398. #define CSL_CMI_CMI_SAMPLING_SAMP_WIND_SIZE_MAX (0x000000ffU)
  399. #define CSL_CMI_CMI_SAMPLING_RESETVAL (0x00000000U)
  400. #ifdef __cplusplus
  401. }
  402. #endif
  403. #endif