cslr_vusr.h 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624
  1. /********************************************************************
  2. * Copyright (C) 2003-2011 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. /*********************************************************************
  34. * file: cslr_vusr.h
  35. *
  36. * Brief: This file contains the Register Description for vusr
  37. *
  38. *********************************************************************/
  39. #ifndef CSLR_VUSR_H_
  40. #define CSLR_VUSR_H_
  41. #include <ti/csl/cslr.h>
  42. #include <ti/csl/tistdtypes.h>
  43. /* Minimum unit = 1 byte */
  44. /**************************************************************************\
  45. * Register Overlay Structure
  46. \**************************************************************************/
  47. typedef struct {
  48. volatile Uint32 REV;
  49. volatile Uint32 CTL;
  50. volatile Uint32 STS;
  51. volatile Uint32 INT_PRI_VEC;
  52. volatile Uint32 INT_CLR;
  53. volatile Uint32 INT_SET;
  54. volatile Uint32 SW_INT;
  55. volatile Uint32 TX_SEL_CTL;
  56. volatile Uint8 RSVD0[12];
  57. volatile Uint32 RX_SEL_CTL;
  58. volatile Uint32 RX_PRIV_IDX;
  59. volatile Uint32 RX_PRIV_VAL;
  60. volatile Uint32 RX_SEG_IDX;
  61. volatile Uint32 RX_SEG_VAL;
  62. volatile Uint32 CHIP_ID_VER;
  63. volatile Uint32 PWR;
  64. volatile Uint32 RPC;
  65. volatile Uint32 ECC_CNTR;
  66. volatile Uint8 RSVD1[8];
  67. volatile Uint32 LINK_STS;
  68. volatile Uint32 SBS;
  69. volatile Uint32 INT_CTL_IDX;
  70. volatile Uint32 INT_CTL_VAL;
  71. volatile Uint32 INT_PTR_IDX;
  72. volatile Uint32 INT_PTR_VAL;
  73. volatile Uint32 SERDES_CTL_STS1;
  74. volatile Uint32 SERDES_CTL_STS2;
  75. volatile Uint32 SERDES_CTL_STS3;
  76. volatile Uint32 SERDES_CTL_STS4;
  77. volatile Uint32 REM_REGS[32];
  78. } CSL_VusrRegs;
  79. /**************************************************************************\
  80. * Field Definition Macros
  81. \**************************************************************************/
  82. /* REV */
  83. #define CSL_VUSR_REV_SCHEME_MASK (0xC0000000u)
  84. #define CSL_VUSR_REV_SCHEME_SHIFT (0x0000001Eu)
  85. #define CSL_VUSR_REV_SCHEME_RESETVAL (0x00000001u)
  86. #define CSL_VUSR_REV_BU_MASK (0x30000000u)
  87. #define CSL_VUSR_REV_BU_SHIFT (0x0000001Cu)
  88. #define CSL_VUSR_REV_BU_RESETVAL (0x00000000u)
  89. #define CSL_VUSR_REV_MODID_MASK (0x0FFF0000u)
  90. #define CSL_VUSR_REV_MODID_SHIFT (0x00000010u)
  91. #define CSL_VUSR_REV_MODID_RESETVAL (0x00000E90u)
  92. #define CSL_VUSR_REV_RTL_VER_MASK (0x0000F800u)
  93. #define CSL_VUSR_REV_RTL_VER_SHIFT (0x0000000Bu)
  94. #define CSL_VUSR_REV_RTL_VER_RESETVAL (0x00000000u)
  95. #define CSL_VUSR_REV_REVMAJ_MASK (0x00000700u)
  96. #define CSL_VUSR_REV_REVMAJ_SHIFT (0x00000008u)
  97. #define CSL_VUSR_REV_REVMAJ_RESETVAL (0x00000001u)
  98. #define CSL_VUSR_REV_CUSTOMER_MASK (0x000000C0u)
  99. #define CSL_VUSR_REV_CUSTOMER_SHIFT (0x00000006u)
  100. #define CSL_VUSR_REV_CUSTOMER_RESETVAL (0x00000000u)
  101. #define CSL_VUSR_REV_REVMIN_MASK (0x0000003Fu)
  102. #define CSL_VUSR_REV_REVMIN_SHIFT (0x00000000u)
  103. #define CSL_VUSR_REV_REVMIN_RESETVAL (0x00000001u)
  104. #define CSL_VUSR_REV_RESETVAL (0x4E900101u)
  105. /* CTL */
  106. #define CSL_VUSR_CTL_INTLOCAL_MASK (0x00004000u)
  107. #define CSL_VUSR_CTL_INTLOCAL_SHIFT (0x0000000Eu)
  108. #define CSL_VUSR_CTL_INTLOCAL_RESETVAL (0x00000000u)
  109. #define CSL_VUSR_CTL_INTENABLE_MASK (0x00002000u)
  110. #define CSL_VUSR_CTL_INTENABLE_SHIFT (0x0000000Du)
  111. #define CSL_VUSR_CTL_INTENABLE_RESETVAL (0x00000000u)
  112. #define CSL_VUSR_CTL_INTVEC_MASK (0x00001F00u)
  113. #define CSL_VUSR_CTL_INTVEC_SHIFT (0x00000008u)
  114. #define CSL_VUSR_CTL_INTVEC_RESETVAL (0x00000000u)
  115. #define CSL_VUSR_CTL_INT2CFG_MASK (0x00000080u)
  116. #define CSL_VUSR_CTL_INT2CFG_SHIFT (0x00000007u)
  117. #define CSL_VUSR_CTL_INT2CFG_RESETVAL (0x00000000u)
  118. #define CSL_VUSR_CTL_DATAARBCYC_MASK (0x00000070u)
  119. #define CSL_VUSR_CTL_DATAARBCYC_SHIFT (0x00000004u)
  120. #define CSL_VUSR_CTL_DATAARBCYC_RESETVAL (0x00000000u)
  121. #define CSL_VUSR_CTL_SERIAL_STOP_MASK (0x00000004u)
  122. #define CSL_VUSR_CTL_SERIAL_STOP_SHIFT (0x00000002u)
  123. #define CSL_VUSR_CTL_SERIAL_STOP_RESETVAL (0x00000000u)
  124. #define CSL_VUSR_CTL_LOOPBACK_MASK (0x00000002u)
  125. #define CSL_VUSR_CTL_LOOPBACK_SHIFT (0x00000001u)
  126. #define CSL_VUSR_CTL_LOOPBACK_RESETVAL (0x00000000u)
  127. #define CSL_VUSR_CTL_RESET_MASK (0x00000001u)
  128. #define CSL_VUSR_CTL_RESET_SHIFT (0x00000000u)
  129. #define CSL_VUSR_CTL_RESET_RESETVAL (0x00000000u)
  130. #define CSL_VUSR_CTL_RESETVAL (0x00000000u)
  131. /* STS */
  132. #define CSL_VUSR_STS_SWIDTHIN_MASK (0x0F000000u)
  133. #define CSL_VUSR_STS_SWIDTHIN_SHIFT (0x00000018u)
  134. #define CSL_VUSR_STS_SWIDTHIN_RESETVAL (0x00000000u)
  135. #define CSL_VUSR_STS_SWIDTHOUT_MASK (0x00F00000u)
  136. #define CSL_VUSR_STS_SWIDTHOUT_SHIFT (0x00000014u)
  137. #define CSL_VUSR_STS_SWIDTHOUT_RESETVAL (0x00000000u)
  138. #define CSL_VUSR_STS_PLL_DISABLE_MASK (0x00004000u)
  139. #define CSL_VUSR_STS_PLL_DISABLE_SHIFT (0x0000000Eu)
  140. #define CSL_VUSR_STS_PLL_DISABLE_RESETVAL (0x00000000u)
  141. #define CSL_VUSR_STS_SERIAL_HALT_MASK (0x00002000u)
  142. #define CSL_VUSR_STS_SERIAL_HALT_SHIFT (0x0000000Du)
  143. #define CSL_VUSR_STS_SERIAL_HALT_RESETVAL (0x00000000u)
  144. #define CSL_VUSR_STS_PLL_UNLOCK_MASK (0x00001000u)
  145. #define CSL_VUSR_STS_PLL_UNLOCK_SHIFT (0x0000000Cu)
  146. #define CSL_VUSR_STS_PLL_UNLOCK_RESETVAL (0x00000001u)
  147. #define CSL_VUSR_STS_RPEND_MASK (0x00000800u)
  148. #define CSL_VUSR_STS_RPEND_SHIFT (0x0000000Bu)
  149. #define CSL_VUSR_STS_RPEND_RESETVAL (0x00000000u)
  150. #define CSL_VUSR_STS_IFLOW_MASK (0x00000400u)
  151. #define CSL_VUSR_STS_IFLOW_SHIFT (0x0000000Au)
  152. #define CSL_VUSR_STS_IFLOW_RESETVAL (0x00000000u)
  153. #define CSL_VUSR_STS_OFLOW_MASK (0x00000200u)
  154. #define CSL_VUSR_STS_OFLOW_SHIFT (0x00000009u)
  155. #define CSL_VUSR_STS_OFLOW_RESETVAL (0x00000000u)
  156. #define CSL_VUSR_STS_RERROR_MASK (0x00000100u)
  157. #define CSL_VUSR_STS_RERROR_SHIFT (0x00000008u)
  158. #define CSL_VUSR_STS_RERROR_RESETVAL (0x00000000u)
  159. #define CSL_VUSR_STS_LERROR_MASK (0x00000080u)
  160. #define CSL_VUSR_STS_LERROR_SHIFT (0x00000007u)
  161. #define CSL_VUSR_STS_LERROR_RESETVAL (0x00000000u)
  162. #define CSL_VUSR_STS_NFEMPTY3_MASK (0x00000040u)
  163. #define CSL_VUSR_STS_NFEMPTY3_SHIFT (0x00000006u)
  164. #define CSL_VUSR_STS_NFEMPTY3_RESETVAL (0x00000000u)
  165. #define CSL_VUSR_STS_NFEMPTY2_MASK (0x00000020u)
  166. #define CSL_VUSR_STS_NFEMPTY2_SHIFT (0x00000005u)
  167. #define CSL_VUSR_STS_NFEMPTY2_RESETVAL (0x00000000u)
  168. #define CSL_VUSR_STS_NFEMPTY1_MASK (0x00000010u)
  169. #define CSL_VUSR_STS_NFEMPTY1_SHIFT (0x00000004u)
  170. #define CSL_VUSR_STS_NFEMPTY1_RESETVAL (0x00000000u)
  171. #define CSL_VUSR_STS_NFEMPTY0_MASK (0x00000008u)
  172. #define CSL_VUSR_STS_NFEMPTY0_SHIFT (0x00000003u)
  173. #define CSL_VUSR_STS_NFEMPTY0_RESETVAL (0x00000000u)
  174. #define CSL_VUSR_STS_SPEND_MASK (0x00000004u)
  175. #define CSL_VUSR_STS_SPEND_SHIFT (0x00000002u)
  176. #define CSL_VUSR_STS_SPEND_RESETVAL (0x00000000u)
  177. #define CSL_VUSR_STS_MPEND_MASK (0x00000002u)
  178. #define CSL_VUSR_STS_MPEND_SHIFT (0x00000001u)
  179. #define CSL_VUSR_STS_MPEND_RESETVAL (0x00000000u)
  180. #define CSL_VUSR_STS_LINK_MASK (0x00000001u)
  181. #define CSL_VUSR_STS_LINK_SHIFT (0x00000000u)
  182. #define CSL_VUSR_STS_LINK_RESETVAL (0x00000000u)
  183. #define CSL_VUSR_STS_RESETVAL (0x00001000u)
  184. /* INT_PRI_VEC */
  185. #define CSL_VUSR_INT_PRI_VEC_NOINTPEND_MASK (0x80000000u)
  186. #define CSL_VUSR_INT_PRI_VEC_NOINTPEND_SHIFT (0x0000001Fu)
  187. #define CSL_VUSR_INT_PRI_VEC_NOINTPEND_RESETVAL (0x00000001u)
  188. #define CSL_VUSR_INT_PRI_VEC_INTSTAT_MASK (0x0000001Fu)
  189. #define CSL_VUSR_INT_PRI_VEC_INTSTAT_SHIFT (0x00000000u)
  190. #define CSL_VUSR_INT_PRI_VEC_INTSTAT_RESETVAL (0x00000000u)
  191. #define CSL_VUSR_INT_PRI_VEC_RESETVAL (0x80000000u)
  192. /* INT_CLR */
  193. #define CSL_VUSR_INT_CLR_INTCLR_MASK (0xFFFFFFFFu)
  194. #define CSL_VUSR_INT_CLR_INTCLR_SHIFT (0x00000000u)
  195. #define CSL_VUSR_INT_CLR_INTCLR_RESETVAL (0x00000000u)
  196. #define CSL_VUSR_INT_CLR_RESETVAL (0x00000000u)
  197. /* INT_SET */
  198. #define CSL_VUSR_INT_SET_INTSET_MASK (0xFFFFFFFFu)
  199. #define CSL_VUSR_INT_SET_INTSET_SHIFT (0x00000000u)
  200. #define CSL_VUSR_INT_SET_INTSET_RESETVAL (0x00000000u)
  201. #define CSL_VUSR_INT_SET_RESETVAL (0x00000000u)
  202. /* SW_INT */
  203. #define CSL_VUSR_SW_INT_EOI_FLAG_MASK (0x0000FF00u)
  204. #define CSL_VUSR_SW_INT_EOI_FLAG_SHIFT (0x00000008u)
  205. #define CSL_VUSR_SW_INT_EOI_FLAG_RESETVAL (0x00000000u)
  206. #define CSL_VUSR_SW_INT_IVECTOR_MASK (0x000000FFu)
  207. #define CSL_VUSR_SW_INT_IVECTOR_SHIFT (0x00000000u)
  208. #define CSL_VUSR_SW_INT_IVECTOR_RESETVAL (0x00000000u)
  209. #define CSL_VUSR_SW_INT_RESETVAL (0x00000000u)
  210. /* TX_SEL_CTL */
  211. #define CSL_VUSR_TX_SEL_CTL_TXSECOVL_MASK (0x000F0000u)
  212. #define CSL_VUSR_TX_SEL_CTL_TXSECOVL_SHIFT (0x00000010u)
  213. #define CSL_VUSR_TX_SEL_CTL_TXSECOVL_RESETVAL (0x00000000u)
  214. #define CSL_VUSR_TX_SEL_CTL_TXPRIVIDOVL_MASK (0x00000F00u)
  215. #define CSL_VUSR_TX_SEL_CTL_TXPRIVIDOVL_SHIFT (0x00000008u)
  216. #define CSL_VUSR_TX_SEL_CTL_TXPRIVIDOVL_RESETVAL (0x00000000u)
  217. #define CSL_VUSR_TX_SEL_CTL_TXIGNMSK_MASK (0x0000000Fu)
  218. #define CSL_VUSR_TX_SEL_CTL_TXIGNMSK_SHIFT (0x00000000u)
  219. #define CSL_VUSR_TX_SEL_CTL_TXIGNMSK_RESETVAL (0x00000000u)
  220. #define CSL_VUSR_TX_SEL_CTL_RESETVAL (0x00000000u)
  221. /* RX_SEL_CTL */
  222. #define CSL_VUSR_RX_SEL_CTL_RXSECHI_MASK (0x02000000u)
  223. #define CSL_VUSR_RX_SEL_CTL_RXSECHI_SHIFT (0x00000019u)
  224. #define CSL_VUSR_RX_SEL_CTL_RXSECHI_RESETVAL (0x00000000u)
  225. #define CSL_VUSR_RX_SEL_CTL_RXSECLO_MASK (0x01000000u)
  226. #define CSL_VUSR_RX_SEL_CTL_RXSECLO_SHIFT (0x00000018u)
  227. #define CSL_VUSR_RX_SEL_CTL_RXSECLO_RESETVAL (0x00000000u)
  228. #define CSL_VUSR_RX_SEL_CTL_RXSECSEL_MASK (0x000F0000u)
  229. #define CSL_VUSR_RX_SEL_CTL_RXSECSEL_SHIFT (0x00000010u)
  230. #define CSL_VUSR_RX_SEL_CTL_RXSECSEL_RESETVAL (0x00000000u)
  231. #define CSL_VUSR_RX_SEL_CTL_RXPRIVIDSEL_MASK (0x00000F00u)
  232. #define CSL_VUSR_RX_SEL_CTL_RXPRIVIDSEL_SHIFT (0x00000008u)
  233. #define CSL_VUSR_RX_SEL_CTL_RXPRIVIDSEL_RESETVAL (0x00000000u)
  234. #define CSL_VUSR_RX_SEL_CTL_RXSEGSEL_MASK (0x0000000Fu)
  235. #define CSL_VUSR_RX_SEL_CTL_RXSEGSEL_SHIFT (0x00000000u)
  236. #define CSL_VUSR_RX_SEL_CTL_RXSEGSEL_RESETVAL (0x00000000u)
  237. #define CSL_VUSR_RX_SEL_CTL_RESETVAL (0x00000000u)
  238. /* RX_PRIV_IDX */
  239. #define CSL_VUSR_RX_PRIV_IDX_RXPRIVID_IDX_MASK (0x0000000Fu)
  240. #define CSL_VUSR_RX_PRIV_IDX_RXPRIVID_IDX_SHIFT (0x00000000u)
  241. #define CSL_VUSR_RX_PRIV_IDX_RXPRIVID_IDX_RESETVAL (0x00000000u)
  242. #define CSL_VUSR_RX_PRIV_IDX_RESETVAL (0x00000000u)
  243. /* RX_PRIV_VAL */
  244. #define CSL_VUSR_RX_PRIV_VAL_RXPRIVID_VAL_MASK (0x0000000Fu)
  245. #define CSL_VUSR_RX_PRIV_VAL_RXPRIVID_VAL_SHIFT (0x00000000u)
  246. #define CSL_VUSR_RX_PRIV_VAL_RXPRIVID_VAL_RESETVAL (0x00000000u)
  247. #define CSL_VUSR_RX_PRIV_VAL_RESETVAL (0x00000000u)
  248. /* RX_SEG_IDX */
  249. #define CSL_VUSR_RX_SEG_IDX_RXSEG_IDX_MASK (0x0000003Fu)
  250. #define CSL_VUSR_RX_SEG_IDX_RXSEG_IDX_SHIFT (0x00000000u)
  251. #define CSL_VUSR_RX_SEG_IDX_RXSEG_IDX_RESETVAL (0x00000000u)
  252. #define CSL_VUSR_RX_SEG_IDX_RESETVAL (0x00000000u)
  253. /* RX_SEG_VAL */
  254. #define CSL_VUSR_RX_SEG_VAL_RXSEG_VAL_MASK (0xFFFF0000u)
  255. #define CSL_VUSR_RX_SEG_VAL_RXSEG_VAL_SHIFT (0x00000010u)
  256. #define CSL_VUSR_RX_SEG_VAL_RXSEG_VAL_RESETVAL (0x00000000u)
  257. #define CSL_VUSR_RX_SEG_VAL_RXLEN_VAL_MASK (0x0000001Fu)
  258. #define CSL_VUSR_RX_SEG_VAL_RXLEN_VAL_SHIFT (0x00000000u)
  259. #define CSL_VUSR_RX_SEG_VAL_RXLEN_VAL_RESETVAL (0x00000000u)
  260. #define CSL_VUSR_RX_SEG_VAL_RESETVAL (0x00000000u)
  261. /* CHIP_ID_VER */
  262. #define CSL_VUSR_CHIP_ID_VER_DEVREV_MASK (0xFFFF0000u)
  263. #define CSL_VUSR_CHIP_ID_VER_DEVREV_SHIFT (0x00000010u)
  264. #define CSL_VUSR_CHIP_ID_VER_DEVREV_RESETVAL (0x00000000u)
  265. #define CSL_VUSR_CHIP_ID_VER_DEVID_MASK (0x0000FFFFu)
  266. #define CSL_VUSR_CHIP_ID_VER_DEVID_SHIFT (0x00000000u)
  267. #define CSL_VUSR_CHIP_ID_VER_DEVID_RESETVAL (0x00000000u)
  268. #define CSL_VUSR_CHIP_ID_VER_RESETVAL (0x00000000u)
  269. /* PWR */
  270. #define CSL_VUSR_PWR_H2L_MASK (0x07000000u)
  271. #define CSL_VUSR_PWR_H2L_SHIFT (0x00000018u)
  272. #define CSL_VUSR_PWR_H2L_RESETVAL (0x00000007u)
  273. #define CSL_VUSR_PWR_L2H_MASK (0x00070000u)
  274. #define CSL_VUSR_PWR_L2H_SHIFT (0x00000010u)
  275. #define CSL_VUSR_PWR_L2H_RESETVAL (0x00000007u)
  276. #define CSL_VUSR_PWR_PWC_MASK (0x0000FF00u)
  277. #define CSL_VUSR_PWR_PWC_SHIFT (0x00000008u)
  278. #define CSL_VUSR_PWR_PWC_RESETVAL (0x00000000u)
  279. #define CSL_VUSR_PWR_HIGHSPEED_MASK (0x00000008u)
  280. #define CSL_VUSR_PWR_HIGHSPEED_SHIFT (0x00000003u)
  281. #define CSL_VUSR_PWR_HIGHSPEED_RESETVAL (0x00000000u)
  282. #define CSL_VUSR_PWR_QUADLANE_MASK (0x00000004u)
  283. #define CSL_VUSR_PWR_QUADLANE_SHIFT (0x00000002u)
  284. #define CSL_VUSR_PWR_QUADLANE_RESETVAL (0x00000001u)
  285. #define CSL_VUSR_PWR_SINGLELANE_MASK (0x00000002u)
  286. #define CSL_VUSR_PWR_SINGLELANE_SHIFT (0x00000001u)
  287. #define CSL_VUSR_PWR_SINGLELANE_RESETVAL (0x00000001u)
  288. #define CSL_VUSR_PWR_ZEROLANE_MASK (0x00000001u)
  289. #define CSL_VUSR_PWR_ZEROLANE_SHIFT (0x00000000u)
  290. #define CSL_VUSR_PWR_ZEROLANE_RESETVAL (0x00000001u)
  291. #define CSL_VUSR_PWR_RESETVAL (0x07070007u)
  292. /* RPC */
  293. #define CSL_VUSR_RPC_TRAN0PRI_MASK (0x70000000u)
  294. #define CSL_VUSR_RPC_TRAN0PRI_SHIFT (0x0000001Cu)
  295. #define CSL_VUSR_RPC_TRAN0PRI_RESETVAL (0x00000000u)
  296. #define CSL_VUSR_RPC_TRAN1PRI_MASK (0x07000000u)
  297. #define CSL_VUSR_RPC_TRAN1PRI_SHIFT (0x00000018u)
  298. #define CSL_VUSR_RPC_TRAN1PRI_RESETVAL (0x00000004u)
  299. #define CSL_VUSR_RPC_TRAN0EPRI_MASK (0x00007000u)
  300. #define CSL_VUSR_RPC_TRAN0EPRI_SHIFT (0x0000000Cu)
  301. #define CSL_VUSR_RPC_TRAN0EPRI_RESETVAL (0x00000000u)
  302. #define CSL_VUSR_RPC_TRAN1EPRI_MASK (0x00000700u)
  303. #define CSL_VUSR_RPC_TRAN1EPRI_SHIFT (0x00000008u)
  304. #define CSL_VUSR_RPC_TRAN1EPRI_RESETVAL (0x00000004u)
  305. #define CSL_VUSR_RPC_RESETVAL (0x04000400u)
  306. /* ECC_CNTR */
  307. #define CSL_VUSR_ECC_CNTR_SGL_ERR_COR_MASK (0xFFFF0000u)
  308. #define CSL_VUSR_ECC_CNTR_SGL_ERR_COR_SHIFT (0x00000010u)
  309. #define CSL_VUSR_ECC_CNTR_SGL_ERR_COR_RESETVAL (0x00000000u)
  310. #define CSL_VUSR_ECC_CNTR_DBL_ERR_DET_MASK (0x000000FFu)
  311. #define CSL_VUSR_ECC_CNTR_DBL_ERR_DET_SHIFT (0x00000000u)
  312. #define CSL_VUSR_ECC_CNTR_DBL_ERR_DET_RESETVAL (0x00000000u)
  313. #define CSL_VUSR_ECC_CNTR_RESETVAL (0x00000000u)
  314. /* LINK_STS */
  315. #define CSL_VUSR_LINK_STS_TXPLS_REQ_MASK (0xC0000000u)
  316. #define CSL_VUSR_LINK_STS_TXPLS_REQ_SHIFT (0x0000001Eu)
  317. #define CSL_VUSR_LINK_STS_TXPLS_REQ_RESETVAL (0x00000000u)
  318. #define CSL_VUSR_LINK_STS_TXPLS_ACK_MASK (0x30000000u)
  319. #define CSL_VUSR_LINK_STS_TXPLS_ACK_SHIFT (0x0000001Cu)
  320. #define CSL_VUSR_LINK_STS_TXPLS_ACK_RESETVAL (0x00000000u)
  321. #define CSL_VUSR_LINK_STS_TXPM_REQ_MASK (0x0C000000u)
  322. #define CSL_VUSR_LINK_STS_TXPM_REQ_SHIFT (0x0000001Au)
  323. #define CSL_VUSR_LINK_STS_TXPM_REQ_RESETVAL (0x00000000u)
  324. #define CSL_VUSR_LINK_STS_TX_RSYNC_MASK (0x02000000u)
  325. #define CSL_VUSR_LINK_STS_TX_RSYNC_SHIFT (0x00000019u)
  326. #define CSL_VUSR_LINK_STS_TX_RSYNC_RESETVAL (0x00000000u)
  327. #define CSL_VUSR_LINK_STS_TXPLSOK_MASK (0x01000000u)
  328. #define CSL_VUSR_LINK_STS_TXPLSOK_SHIFT (0x00000018u)
  329. #define CSL_VUSR_LINK_STS_TXPLSOK_RESETVAL (0x00000000u)
  330. #define CSL_VUSR_LINK_STS_TX_PHY_EN_MASK (0x00F00000u)
  331. #define CSL_VUSR_LINK_STS_TX_PHY_EN_SHIFT (0x00000014u)
  332. #define CSL_VUSR_LINK_STS_TX_PHY_EN_RESETVAL (0x00000000u)
  333. #define CSL_VUSR_LINK_STS_TXFLOW_STS_MASK (0x000F0000u)
  334. #define CSL_VUSR_LINK_STS_TXFLOW_STS_SHIFT (0x00000010u)
  335. #define CSL_VUSR_LINK_STS_TXFLOW_STS_RESETVAL (0x00000000u)
  336. #define CSL_VUSR_LINK_STS_RXPLS_REQ_MASK (0x0000C000u)
  337. #define CSL_VUSR_LINK_STS_RXPLS_REQ_SHIFT (0x0000000Eu)
  338. #define CSL_VUSR_LINK_STS_RXPLS_REQ_RESETVAL (0x00000000u)
  339. #define CSL_VUSR_LINK_STS_RXPLS_ACK_MASK (0x00003000u)
  340. #define CSL_VUSR_LINK_STS_RXPLS_ACK_SHIFT (0x0000000Cu)
  341. #define CSL_VUSR_LINK_STS_RXPLS_ACK_RESETVAL (0x00000000u)
  342. #define CSL_VUSR_LINK_STS_RXPM_REQ_MASK (0x00000C00u)
  343. #define CSL_VUSR_LINK_STS_RXPM_REQ_SHIFT (0x0000000Au)
  344. #define CSL_VUSR_LINK_STS_RXPM_REQ_RESETVAL (0x00000000u)
  345. #define CSL_VUSR_LINK_STS_RX_LSYNC_MASK (0x00000200u)
  346. #define CSL_VUSR_LINK_STS_RX_LSYNC_SHIFT (0x00000009u)
  347. #define CSL_VUSR_LINK_STS_RX_LSYNC_RESETVAL (0x00000000u)
  348. #define CSL_VUSR_LINK_STS_RX_ONE_ID_MASK (0x00000100u)
  349. #define CSL_VUSR_LINK_STS_RX_ONE_ID_SHIFT (0x00000008u)
  350. #define CSL_VUSR_LINK_STS_RX_ONE_ID_RESETVAL (0x00000000u)
  351. #define CSL_VUSR_LINK_STS_RX_PHY_EN_MASK (0x000000F0u)
  352. #define CSL_VUSR_LINK_STS_RX_PHY_EN_SHIFT (0x00000004u)
  353. #define CSL_VUSR_LINK_STS_RX_PHY_EN_RESETVAL (0x00000000u)
  354. #define CSL_VUSR_LINK_STS_RX_PHY_POL_MASK (0x0000000Fu)
  355. #define CSL_VUSR_LINK_STS_RX_PHY_POL_SHIFT (0x00000000u)
  356. #define CSL_VUSR_LINK_STS_RX_PHY_POL_RESETVAL (0x00000000u)
  357. #define CSL_VUSR_LINK_STS_RESETVAL (0x00000000u)
  358. /* SBS */
  359. #define CSL_VUSR_SBS_TXFL_FLAGS_SEL_MASK (0xFF000000u)
  360. #define CSL_VUSR_SBS_TXFL_FLAGS_SEL_SHIFT (0x00000018u)
  361. #define CSL_VUSR_SBS_TXFL_FLAGS_SEL_RESETVAL (0x00000000u)
  362. #define CSL_VUSR_SBS_TXFL_FLAGS_CAP_MASK (0x00F00000u)
  363. #define CSL_VUSR_SBS_TXFL_FLAGS_CAP_SHIFT (0x00000014u)
  364. #define CSL_VUSR_SBS_TXFL_FLAGS_CAP_RESETVAL (0x00000000u)
  365. #define CSL_VUSR_SBS_TXFL_FLAGS_STS_MASK (0x000F0000u)
  366. #define CSL_VUSR_SBS_TXFL_FLAGS_STS_SHIFT (0x00000010u)
  367. #define CSL_VUSR_SBS_TXFL_FLAGS_STS_RESETVAL (0x00000000u)
  368. #define CSL_VUSR_SBS_RXPM_FLAGS_SEL_MASK (0x0000FF00u)
  369. #define CSL_VUSR_SBS_RXPM_FLAGS_SEL_SHIFT (0x00000008u)
  370. #define CSL_VUSR_SBS_RXPM_FLAGS_SEL_RESETVAL (0x00000000u)
  371. #define CSL_VUSR_SBS_RXPM_FLAGS_CAP_MASK (0x000000F0u)
  372. #define CSL_VUSR_SBS_RXPM_FLAGS_CAP_SHIFT (0x00000004u)
  373. #define CSL_VUSR_SBS_RXPM_FLAGS_CAP_RESETVAL (0x00000000u)
  374. #define CSL_VUSR_SBS_RXPM_FLAGS_STS_MASK (0x0000000Fu)
  375. #define CSL_VUSR_SBS_RXPM_FLAGS_STS_SHIFT (0x00000000u)
  376. #define CSL_VUSR_SBS_RXPM_FLAGS_STS_RESETVAL (0x00000000u)
  377. #define CSL_VUSR_SBS_RESETVAL (0x00000000u)
  378. /* INT_CTL_IDX */
  379. #define CSL_VUSR_INT_CTL_IDX_ICIDX_MASK (0x000000FFu)
  380. #define CSL_VUSR_INT_CTL_IDX_ICIDX_SHIFT (0x00000000u)
  381. #define CSL_VUSR_INT_CTL_IDX_ICIDX_RESETVAL (0x00000000u)
  382. #define CSL_VUSR_INT_CTL_IDX_RESETVAL (0x00000000u)
  383. /* INT_CTL_VAL */
  384. #define CSL_VUSR_INT_CTL_VAL_INTEN_MASK (0x80000000u)
  385. #define CSL_VUSR_INT_CTL_VAL_INTEN_SHIFT (0x0000001Fu)
  386. #define CSL_VUSR_INT_CTL_VAL_INTEN_RESETVAL (0x00000000u)
  387. #define CSL_VUSR_INT_CTL_VAL_INTTYPE_MASK (0x40000000u)
  388. #define CSL_VUSR_INT_CTL_VAL_INTTYPE_SHIFT (0x0000001Eu)
  389. #define CSL_VUSR_INT_CTL_VAL_INTTYPE_RESETVAL (0x00000000u)
  390. #define CSL_VUSR_INT_CTL_VAL_INTPOL_MASK (0x20000000u)
  391. #define CSL_VUSR_INT_CTL_VAL_INTPOL_SHIFT (0x0000001Du)
  392. #define CSL_VUSR_INT_CTL_VAL_INTPOL_RESETVAL (0x00000000u)
  393. #define CSL_VUSR_INT_CTL_VAL_ISEC_MASK (0x10000000u)
  394. #define CSL_VUSR_INT_CTL_VAL_ISEC_SHIFT (0x0000001Cu)
  395. #define CSL_VUSR_INT_CTL_VAL_ISEC_RESETVAL (0x00000000u)
  396. #define CSL_VUSR_INT_CTL_VAL_SIEN_MASK (0x08000000u)
  397. #define CSL_VUSR_INT_CTL_VAL_SIEN_SHIFT (0x0000001Bu)
  398. #define CSL_VUSR_INT_CTL_VAL_SIEN_RESETVAL (0x00000000u)
  399. #define CSL_VUSR_INT_CTL_VAL_DNID_MASK (0x00030000u)
  400. #define CSL_VUSR_INT_CTL_VAL_DNID_SHIFT (0x00000010u)
  401. #define CSL_VUSR_INT_CTL_VAL_DNID_RESETVAL (0x00000000u)
  402. #define CSL_VUSR_INT_CTL_VAL_MPS_MASK (0x00000F00u)
  403. #define CSL_VUSR_INT_CTL_VAL_MPS_SHIFT (0x00000008u)
  404. #define CSL_VUSR_INT_CTL_VAL_MPS_RESETVAL (0x00000000u)
  405. #define CSL_VUSR_INT_CTL_VAL_VECTOR_MASK (0x0000001Fu)
  406. #define CSL_VUSR_INT_CTL_VAL_VECTOR_SHIFT (0x00000000u)
  407. #define CSL_VUSR_INT_CTL_VAL_VECTOR_RESETVAL (0x00000000u)
  408. #define CSL_VUSR_INT_CTL_VAL_RESETVAL (0x00000000u)
  409. /* INT_PTR_IDX */
  410. #define CSL_VUSR_INT_PTR_IDX_IPIDX_MASK (0x0000000Fu)
  411. #define CSL_VUSR_INT_PTR_IDX_IPIDX_SHIFT (0x00000000u)
  412. #define CSL_VUSR_INT_PTR_IDX_IPIDX_RESETVAL (0x00000000u)
  413. #define CSL_VUSR_INT_PTR_IDX_RESETVAL (0x00000000u)
  414. /* INT_PTR_VAL */
  415. #define CSL_VUSR_INT_PTR_VAL_INTPTR_MASK (0xFFFFFFFCu)
  416. #define CSL_VUSR_INT_PTR_VAL_INTPTR_SHIFT (0x00000002u)
  417. #define CSL_VUSR_INT_PTR_VAL_INTPTR_RESETVAL (0x00000000u)
  418. #define CSL_VUSR_INT_PTR_VAL_RESETVAL (0x00000000u)
  419. /* SERDES_CTL_STS1 */
  420. #define CSL_VUSR_SERDES_CTL_STS1_SLEEP_CNT_MASK (0xFF000000u)
  421. #define CSL_VUSR_SERDES_CTL_STS1_SLEEP_CNT_SHIFT (0x00000018u)
  422. #define CSL_VUSR_SERDES_CTL_STS1_SLEEP_CNT_RESETVAL (0x00000009u)
  423. #define CSL_VUSR_SERDES_CTL_STS1_DISABLE_CNT_MASK (0x00FF0000u)
  424. #define CSL_VUSR_SERDES_CTL_STS1_DISABLE_CNT_SHIFT (0x00000010u)
  425. #define CSL_VUSR_SERDES_CTL_STS1_DISABLE_CNT_RESETVAL (0x0000002Eu)
  426. #define CSL_VUSR_SERDES_CTL_STS1_RESETVAL (0x092E0000u)
  427. /* SERDES_CTL_STS2 */
  428. #define CSL_VUSR_SERDES_CTL_STS2_S2CTL_MASK (0xFFFF0000u)
  429. #define CSL_VUSR_SERDES_CTL_STS2_S2CTL_SHIFT (0x00000010u)
  430. #define CSL_VUSR_SERDES_CTL_STS2_S2CTL_RESETVAL (0x00000000u)
  431. #define CSL_VUSR_SERDES_CTL_STS2_RESETVAL (0x00000000u)
  432. /* SERDES_CTL_STS3 */
  433. #define CSL_VUSR_SERDES_CTL_STS3_S3CTL_MASK (0xFFFF0000u)
  434. #define CSL_VUSR_SERDES_CTL_STS3_S3CTL_SHIFT (0x00000010u)
  435. #define CSL_VUSR_SERDES_CTL_STS3_S3CTL_RESETVAL (0x00000000u)
  436. #define CSL_VUSR_SERDES_CTL_STS3_RESETVAL (0x00000000u)
  437. /* SERDES_CTL_STS4 */
  438. #define CSL_VUSR_SERDES_CTL_STS4_DVQUICK_MASK (0x80000000u)
  439. #define CSL_VUSR_SERDES_CTL_STS4_DVQUICK_SHIFT (0x0000001Fu)
  440. #define CSL_VUSR_SERDES_CTL_STS4_DVQUICK_RESETVAL (0x00000000u)
  441. #define CSL_VUSR_SERDES_CTL_STS4_S4CTL_MASK (0x7FF00000u)
  442. #define CSL_VUSR_SERDES_CTL_STS4_S4CTL_SHIFT (0x00000014u)
  443. #define CSL_VUSR_SERDES_CTL_STS4_S4CTL_RESETVAL (0x00000000u)
  444. #define CSL_VUSR_SERDES_CTL_STS4_TX_SPC_MASK (0x000C0000u)
  445. #define CSL_VUSR_SERDES_CTL_STS4_TX_SPC_SHIFT (0x00000012u)
  446. #define CSL_VUSR_SERDES_CTL_STS4_TX_SPC_RESETVAL (0x00000000u)
  447. #define CSL_VUSR_SERDES_CTL_STS4_RX_SPC_MASK (0x00030000u)
  448. #define CSL_VUSR_SERDES_CTL_STS4_RX_SPC_SHIFT (0x00000010u)
  449. #define CSL_VUSR_SERDES_CTL_STS4_RX_SPC_RESETVAL (0x00000000u)
  450. #define CSL_VUSR_SERDES_CTL_STS4_RESETVAL (0x00000000u)
  451. /* REM_REGS */
  452. #define CSL_VUSR_REM_REGS_REMOTE_REGISTERS_MASK (0xFFFFFFFFu)
  453. #define CSL_VUSR_REM_REGS_REMOTE_REGISTERS_SHIFT (0x00000000u)
  454. #define CSL_VUSR_REM_REGS_REMOTE_REGISTERS_RESETVAL (0x00000000u)
  455. #define CSL_VUSR_REM_REGS_RESETVAL (0x00000000u)
  456. #endif