mt_ssusb_sifslv_ippc.h 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676
  1. /*
  2. * Copyright(c) 2013 MediaTek Inc.
  3. *
  4. * Permission is hereby granted, free of charge, to any person obtaining
  5. * a copy of this software and associated documentation files
  6. *(the "Software"), to deal in the Software without restriction,
  7. * including without limitation the rights to use, copy, modify, merge,
  8. * publish, distribute, sublicense, and/or sell copies of the Software,
  9. * and to permit persons to whom the Software is furnished to do so,
  10. * subject to the following conditions:
  11. *
  12. * The above copyright notice and this permission notice shall be
  13. * included in all copies or substantial portions of the Software.
  14. *
  15. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  16. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  17. * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  18. * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
  19. * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  20. * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
  21. * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  22. */
  23. #ifndef _MT_SSUSB_SIFSLV_IPPC_H_
  24. #define _MT_SSUSB_SIFSLV_IPPC_H_
  25. /* SSUSB_SIFSLV_IPPC REGISTER DEFINITION */
  26. /* Newer address for phy clock and ref clock setting -- begin */
  27. /* USB3_SIF_BASE */
  28. #define U3D_SPLLC_XTALCTL3 (SSUSB_SIFSLV_SPLLC_BASE+0x0018) /* SIF+0x018 */
  29. #define U3D_PHYD_CDR1 (SSUSB_SIFSLV_U3PHYD_BASE+0x005c) /* SIF+0x95c */
  30. /* USB3_SIF2_BASE */
  31. #define U3D_B2_PHYD_RXDET2 (SSUSB_USB30_PHYA_SIV_B2_BASE+0x002c) /* SIF2+0xA2C */
  32. #define U3D_USB30_PHYA_REG0 (SSUSB_USB30_PHYA_SIV_B_BASE+0x0000) /* SIF2+0xB00 */
  33. #define U3D_USB30_PHYA_REG6 (SSUSB_USB30_PHYA_SIV_B_BASE+0x0018) /* SIF2+0xB18 */
  34. #define U3D_U3PHYA_DA_REG0 (SSUSB_SIFSLV_U3PHYA_DA_BASE+0x0000) /* SIF2+0xC00 */
  35. #define U3D_U3PHYA_DA_REG32 (SSUSB_SIFSLV_U3PHYA_DA_BASE+0x0060) /* SIF2+0xC60 */
  36. #define U3D_U3PHYA_DA_REG36 (SSUSB_SIFSLV_U3PHYA_DA_BASE+0x0070) /* SIF2+0xC70 */
  37. /* U3D_USB30_PHYA_REG0 */
  38. #define RG_SSUSB_VUSB10_ON (1<<5)
  39. #define RG_SSUSB_VUSB10_ON_OFST (5)
  40. /* Newer address for phy clock and ref clock setting -- end */
  41. /* referenecd from ssusb_USB20_PHY_regmap_com_T28.xls */
  42. #define U3D_USBPHYACR0 (SSUSB_SIFSLV_U2PHY_COM_SIV_B_BASE+0x0000) /* bit 2~bit 30 */
  43. #define U3D_USBPHYACR1 (SSUSB_SIFSLV_U2PHY_COM_SIV_B_BASE+0x0004)
  44. #define U3D_USBPHYACR2 (SSUSB_SIFSLV_U2PHY_COM_SIV_B_BASE+0x0008) /* bit 0~ bit15 */
  45. #define U3D_USBPHYACR4 (SSUSB_SIFSLV_U2PHY_COM_SIV_B_BASE+0x0010)
  46. #define U3D_USBPHYACR5 (SSUSB_SIFSLV_U2PHY_COM_SIV_B_BASE+0x0014)
  47. #define U3D_USBPHYACR6 (SSUSB_SIFSLV_U2PHY_COM_SIV_B_BASE+0x0018)
  48. #define U3D_U2PHYACR3 (SSUSB_SIFSLV_U2PHY_COM_SIV_B_BASE+0x001c)
  49. #define U3D_U2PHYACR4_0 (SSUSB_SIFSLV_U2PHY_COM_SIV_B_BASE+0x0020) /* bit0~ bit5 */
  50. #define U3D_U2PHYACR4 (SSUSB_SIFSLV_U2PHY_COM_BASE+0x0020) /* bit8~ bit18 */
  51. #define U3D_U2PHYAMON0 (SSUSB_SIFSLV_U2PHY_COM_BASE+0x0024)
  52. #define U3D_U2PHYDCR0 (SSUSB_SIFSLV_U2PHY_COM_BASE+0x0060)
  53. #define U3D_U2PHYDCR1 (SSUSB_SIFSLV_U2PHY_COM_BASE+0x0064)
  54. #define U3D_U2PHYDTM0 (SSUSB_SIFSLV_U2PHY_COM_BASE+0x0068)
  55. #define U3D_U2PHYDTM1 (SSUSB_SIFSLV_U2PHY_COM_BASE+0x006C)
  56. #define U3D_U2PHYDMON0 (SSUSB_SIFSLV_U2PHY_COM_BASE+0x0070)
  57. #define U3D_U2PHYDMON1 (SSUSB_SIFSLV_U2PHY_COM_BASE+0x0074)
  58. #define U3D_U2PHYDMON2 (SSUSB_SIFSLV_U2PHY_COM_BASE+0x0078)
  59. #define U3D_U2PHYDMON3 (SSUSB_SIFSLV_U2PHY_COM_BASE+0x007C)
  60. #define U3D_U2PHYBC12C (SSUSB_SIFSLV_U2PHY_COM_BASE+0x0080)
  61. #define U3D_U2PHYBC12C1 (SSUSB_SIFSLV_U2PHY_COM_BASE+0x0084)
  62. #define U3D_U2PHYREGFPPC (SSUSB_SIFSLV_U2PHY_COM_BASE+0x00e0)
  63. #define U3D_U2PHYVERSIONC (SSUSB_SIFSLV_U2PHY_COM_BASE+0x00f0)
  64. #define U3D_U2PHYREGFCOM (SSUSB_SIFSLV_U2PHY_COM_BASE+0x00fc)
  65. #define U3D_SSUSB_IP_PW_CTRL0 (SSUSB_SIFSLV_IPPC_BASE+0x0000)
  66. #define U3D_SSUSB_IP_PW_CTRL1 (SSUSB_SIFSLV_IPPC_BASE+0x0004)
  67. #define U3D_SSUSB_IP_PW_CTRL2 (SSUSB_SIFSLV_IPPC_BASE+0x0008)
  68. #define U3D_SSUSB_IP_PW_CTRL3 (SSUSB_SIFSLV_IPPC_BASE+0x000C)
  69. #define U3D_SSUSB_IP_PW_STS1 (SSUSB_SIFSLV_IPPC_BASE+0x0010)
  70. #define U3D_SSUSB_IP_PW_STS2 (SSUSB_SIFSLV_IPPC_BASE+0x0014)
  71. #define U3D_SSUSB_IP_MAC_CAP (SSUSB_SIFSLV_IPPC_BASE+0x0020)
  72. #define U3D_SSUSB_IP_XHCI_CAP (SSUSB_SIFSLV_IPPC_BASE+0x0024)
  73. #define U3D_SSUSB_IP_DEV_CAP (SSUSB_SIFSLV_IPPC_BASE+0x0028)
  74. #define U3D_SSUSB_U3_CTRL_0P (SSUSB_SIFSLV_IPPC_BASE+0x0030)
  75. #define U3D_SSUSB_U3_CTRL_1P (SSUSB_SIFSLV_IPPC_BASE+0x0038)
  76. #define U3D_SSUSB_U3_CTRL_2P (SSUSB_SIFSLV_IPPC_BASE+0x0040)
  77. #define U3D_SSUSB_U3_CTRL_3P (SSUSB_SIFSLV_IPPC_BASE+0x0048)
  78. #define U3D_SSUSB_U2_CTRL_0P (SSUSB_SIFSLV_IPPC_BASE+0x0050)
  79. #define U3D_SSUSB_U2_CTRL_1P (SSUSB_SIFSLV_IPPC_BASE+0x0058)
  80. #define U3D_SSUSB_U2_CTRL_2P (SSUSB_SIFSLV_IPPC_BASE+0x0060)
  81. #define U3D_SSUSB_U2_CTRL_3P (SSUSB_SIFSLV_IPPC_BASE+0x0068)
  82. #define U3D_SSUSB_U2_CTRL_4P (SSUSB_SIFSLV_IPPC_BASE+0x0070)
  83. #define U3D_SSUSB_U2_CTRL_5P (SSUSB_SIFSLV_IPPC_BASE+0x0078)
  84. #define U3D_SSUSB_U2_PHY_PLL (SSUSB_SIFSLV_IPPC_BASE+0x007C)
  85. #define U3D_SSUSB_DMA_CTRL (SSUSB_SIFSLV_IPPC_BASE+0x0080)
  86. #define U3D_SSUSB_MAC_CK_CTRL (SSUSB_SIFSLV_IPPC_BASE+0x0084)
  87. #define U3D_SSUSB_CSR_CK_CTRL (SSUSB_SIFSLV_IPPC_BASE+0x0088)
  88. #define U3D_SSUSB_REF_CK_CTRL (SSUSB_SIFSLV_IPPC_BASE+0x008C)
  89. #define U3D_SSUSB_XHCI_CK_CTRL (SSUSB_SIFSLV_IPPC_BASE+0x0090)
  90. #define U3D_SSUSB_XHCI_RST_CTRL (SSUSB_SIFSLV_IPPC_BASE+0x0094)
  91. #define U3D_SSUSB_DEV_RST_CTRL (SSUSB_SIFSLV_IPPC_BASE+0x0098)
  92. #define U3D_SSUSB_SYS_CK_CTRL (SSUSB_SIFSLV_IPPC_BASE+0x009C)
  93. #define U3D_SSUSB_HW_ID (SSUSB_SIFSLV_IPPC_BASE+0x00A0)
  94. #define U3D_SSUSB_HW_SUB_ID (SSUSB_SIFSLV_IPPC_BASE+0x00A4)
  95. #define U3D_SSUSB_PRB_CTRL0 (SSUSB_SIFSLV_IPPC_BASE+0x00B0)
  96. #define U3D_SSUSB_PRB_CTRL1 (SSUSB_SIFSLV_IPPC_BASE+0x00B4)
  97. #define U3D_SSUSB_PRB_CTRL2 (SSUSB_SIFSLV_IPPC_BASE+0x00B8)
  98. #define U3D_SSUSB_PRB_CTRL3 (SSUSB_SIFSLV_IPPC_BASE+0x00BC)
  99. #define U3D_SSUSB_PRB_CTRL4 (SSUSB_SIFSLV_IPPC_BASE+0x00C0)
  100. #define U3D_SSUSB_PRB_CTRL5 (SSUSB_SIFSLV_IPPC_BASE+0x00C4)
  101. #define U3D_SSUSB_IP_SPARE0 (SSUSB_SIFSLV_IPPC_BASE+0x00C8)
  102. #define U3D_SSUSB_IP_SPARE1 (SSUSB_SIFSLV_IPPC_BASE+0x00CC)
  103. #define U3D_SSUSB_FPGA_I2C_OUT_0P (SSUSB_SIFSLV_IPPC_BASE+0x00D0)
  104. #define U3D_SSUSB_FPGA_I2C_IN_0P (SSUSB_SIFSLV_IPPC_BASE+0x00D4)
  105. #define U3D_SSUSB_FPGA_I2C_OUT_1P (SSUSB_SIFSLV_IPPC_BASE+0x00D8)
  106. #define U3D_SSUSB_FPGA_I2C_IN_1P (SSUSB_SIFSLV_IPPC_BASE+0x00DC)
  107. #define U3D_SSUSB_FPGA_I2C_OUT_2P (SSUSB_SIFSLV_IPPC_BASE+0x00E0)
  108. #define U3D_SSUSB_FPGA_I2C_IN_2P (SSUSB_SIFSLV_IPPC_BASE+0x00E4)
  109. #define U3D_SSUSB_FPGA_I2C_OUT_3P (SSUSB_SIFSLV_IPPC_BASE+0x00E8)
  110. #define U3D_SSUSB_FPGA_I2C_IN_3P (SSUSB_SIFSLV_IPPC_BASE+0x00EC)
  111. #define U3D_SSUSB_FPGA_I2C_OUT_4P (SSUSB_SIFSLV_IPPC_BASE+0x00F0)
  112. #define U3D_SSUSB_FPGA_I2C_IN_4P (SSUSB_SIFSLV_IPPC_BASE+0x00F4)
  113. #define U3D_SSUSB_IP_SLV_TMOUT (SSUSB_SIFSLV_IPPC_BASE+0x00F8)
  114. /* SSUSB_SIFSLV_IPPC FIELD DEFINITION */
  115. /* U3D_SSUSB_IP_PW_CTRL0 */
  116. #define SSUSB_IP_U2_ENTER_SLEEP_CNT (0xff << 8) /* 15:8 */
  117. #define SSUSB_IP_SW_RST (0x1 << 0) /* 0:0 */
  118. /* U3D_SSUSB_IP_PW_CTRL1 */
  119. #define SSUSB_IP_HOST_PDN (0x1 << 0) /* 0:0 */
  120. /* U3D_SSUSB_IP_PW_CTRL2 */
  121. #define SSUSB_IP_DEV_PDN (0x1 << 0) /* 0:0 */
  122. /* U3D_SSUSB_IP_PW_CTRL3 */
  123. #define SSUSB_IP_PCIE_PDN (0x1 << 0) /* 0:0 */
  124. /* U3D_SSUSB_IP_PW_STS1 */
  125. #define SSUSB_U2_MAC_RST_B_STS_5P (0x1 << 29) /* 29:29 */
  126. #define SSUSB_U2_MAC_RST_B_STS_4P (0x1 << 28) /* 28:28 */
  127. #define SSUSB_U2_MAC_RST_B_STS_3P (0x1 << 27) /* 27:27 */
  128. #define SSUSB_U2_MAC_RST_B_STS_2P (0x1 << 26) /* 26:26 */
  129. #define SSUSB_U2_MAC_RST_B_STS_1P (0x1 << 25) /* 25:25 */
  130. #define SSUSB_U2_MAC_RST_B_STS (0x1 << 24) /* 24:24 */
  131. #define SSUSB_U3_MAC_RST_B_STS_3P (0x1 << 19) /* 19:19 */
  132. #define SSUSB_U3_MAC_RST_B_STS_2P (0x1 << 18) /* 18:18 */
  133. #define SSUSB_U3_MAC_RST_B_STS_1P (0x1 << 17) /* 17:17 */
  134. #define SSUSB_U3_MAC_RST_B_STS (0x1 << 16) /* 16:16 */
  135. #define SSUSB_DEV_DRAM_RST_B_STS (0x1 << 13) /* 13:13 */
  136. #define SSUSB_XHCI_DRAM_RST_B_STS (0x1 << 12) /* 12:12 */
  137. #define SSUSB_XHCI_RST_B_STS (0x1 << 11) /* 11:11 */
  138. #define SSUSB_SYS125_RST_B_STS (0x1 << 10) /* 10:10 */
  139. #define SSUSB_SYS60_RST_B_STS (0x1 << 9) /* 9:9 */
  140. #define SSUSB_REF_RST_B_STS (0x1 << 8) /* 8:8 */
  141. #define SSUSB_DEV_RST_B_STS (0x1 << 3) /* 3:3 */
  142. #define SSUSB_DEV_BMU_RST_B_STS (0x1 << 2) /* 2:2 */
  143. #define SSUSB_DEV_QMU_RST_B_STS (0x1 << 1) /* 1:1 */
  144. #define SSUSB_SYSPLL_STABLE (0x1 << 0) /* 0:0 */
  145. /* U3D_SSUSB_IP_PW_STS2 */
  146. #define SSUSB_U2_MAC_SYS_RST_B_STS_5P (0x1 << 5) /* 5:5 */
  147. #define SSUSB_U2_MAC_SYS_RST_B_STS_4P (0x1 << 4) /* 4:4 */
  148. #define SSUSB_U2_MAC_SYS_RST_B_STS_3P (0x1 << 3) /* 3:3 */
  149. #define SSUSB_U2_MAC_SYS_RST_B_STS_2P (0x1 << 2) /* 2:2 */
  150. #define SSUSB_U2_MAC_SYS_RST_B_STS_1P (0x1 << 1) /* 1:1 */
  151. #define SSUSB_U2_MAC_SYS_RST_B_STS (0x1 << 0) /* 0:0 */
  152. /* U3D_SSUSB_IP_MAC_CAP */
  153. #define SSUSB_IP_MAC_U2_PORT_NO (0xff << 8) /* 15:8 */
  154. #define SSUSB_IP_MAC_U3_PORT_NO (0xff << 0) /* 7:0 */
  155. /* U3D_SSUSB_IP_XHCI_CAP */
  156. #define SSUSB_IP_XHCI_U2_PORT_NO (0xff << 8) /* 15:8 */
  157. #define SSUSB_IP_XHCI_U3_PORT_NO (0xff << 0) /* 7:0 */
  158. /* U3D_SSUSB_IP_DEV_CAP */
  159. #define SSUSB_IP_DEV_U2_PORT_NO (0xff << 8) /* 15:8 */
  160. #define SSUSB_IP_DEV_U3_PORT_NO (0xff << 0) /* 7:0 */
  161. /* U3D_SSUSB_U3_CTRL_0P */
  162. #define SSUSB_U3_PORT_PHYD_RST (0x1 << 5) /* 5:5 */
  163. #define SSUSB_U3_PORT_MAC_RST (0x1 << 4) /* 4:4 */
  164. #define SSUSB_U3_PORT_U2_CG_EN (0x1 << 3) /* 3:3 */
  165. #define SSUSB_U3_PORT_HOST_SEL (0x1 << 2) /* 2:2 */
  166. #define SSUSB_U3_PORT_PDN (0x1 << 1) /* 1:1 */
  167. #define SSUSB_U3_PORT_DIS (0x1 << 0) /* 0:0 */
  168. /* U3D_SSUSB_U3_CTRL_1P */
  169. #define SSUSB_U3_PORT_PHYD_RST_1P (0x1 << 5) /* 5:5 */
  170. #define SSUSB_U3_PORT_MAC_RST_1P (0x1 << 4) /* 4:4 */
  171. #define SSUSB_U3_PORT_U2_CG_EN_1P (0x1 << 3) /* 3:3 */
  172. #define SSUSB_U3_PORT_HOST_SEL_1P (0x1 << 2) /* 2:2 */
  173. #define SSUSB_U3_PORT_PDN_1P (0x1 << 1) /* 1:1 */
  174. #define SSUSB_U3_PORT_DIS_1P (0x1 << 0) /* 0:0 */
  175. /* U3D_SSUSB_U3_CTRL_2P */
  176. #define SSUSB_U3_PORT_PHYD_RST_2P (0x1 << 5) /* 5:5 */
  177. #define SSUSB_U3_PORT_MAC_RST_2P (0x1 << 4) /* 4:4 */
  178. #define SSUSB_U3_PORT_U2_CG_EN_2P (0x1 << 3) /* 3:3 */
  179. #define SSUSB_U3_PORT_HOST_SEL_2P (0x1 << 2) /* 2:2 */
  180. #define SSUSB_U3_PORT_PDN_2P (0x1 << 1) /* 1:1 */
  181. #define SSUSB_U3_PORT_DIS_2P (0x1 << 0) /* 0:0 */
  182. /* U3D_SSUSB_U3_CTRL_3P */
  183. #define SSUSB_U3_PORT_PHYD_RST_3P (0x1 << 5) /* 5:5 */
  184. #define SSUSB_U3_PORT_MAC_RST_3P (0x1 << 4) /* 4:4 */
  185. #define SSUSB_U3_PORT_U2_CG_EN_3P (0x1 << 3) /* 3:3 */
  186. #define SSUSB_U3_PORT_HOST_SEL_3P (0x1 << 2) /* 2:2 */
  187. #define SSUSB_U3_PORT_PDN_3P (0x1 << 1) /* 1:1 */
  188. #define SSUSB_U3_PORT_DIS_3P (0x1 << 0) /* 0:0 */
  189. /* U3D_SSUSB_U2_CTRL_0P */
  190. #define SSUSB_U2_PORT_SYS_CK_SEL (0x1 << 6) /* 6:6 */
  191. #define SSUSB_U2_PORT_PHYD_RST (0x1 << 5) /* 5:5 */
  192. #define SSUSB_U2_PORT_MAC_RST (0x1 << 4) /* 4:4 */
  193. #define SSUSB_U2_PORT_U2_CG_EN (0x1 << 3) /* 3:3 */
  194. #define SSUSB_U2_PORT_HOST_SEL (0x1 << 2) /* 2:2 */
  195. #define SSUSB_U2_PORT_PDN (0x1 << 1) /* 1:1 */
  196. #define SSUSB_U2_PORT_DIS (0x1 << 0) /* 0:0 */
  197. /* U3D_SSUSB_U2_CTRL_1P */
  198. #define SSUSB_U2_PORT_SYS_CK_SEL_1P (0x1 << 6) /* 6:6 */
  199. #define SSUSB_U2_PORT_PHYD_RST_1P (0x1 << 5) /* 5:5 */
  200. #define SSUSB_U2_PORT_MAC_RST_1P (0x1 << 4) /* 4:4 */
  201. #define SSUSB_U2_PORT_U2_CG_EN_1P (0x1 << 3) /* 3:3 */
  202. #define SSUSB_U2_PORT_HOST_SEL_1P (0x1 << 2) /* 2:2 */
  203. #define SSUSB_U2_PORT_PDN_1P (0x1 << 1) /* 1:1 */
  204. #define SSUSB_U2_PORT_DIS_1P (0x1 << 0) /* 0:0 */
  205. /* U3D_SSUSB_U2_CTRL_2P */
  206. #define SSUSB_U2_PORT_SYS_CK_SEL_2P (0x1 << 6) /* 6:6 */
  207. #define SSUSB_U2_PORT_PHYD_RST_2P (0x1 << 5) /* 5:5 */
  208. #define SSUSB_U2_PORT_MAC_RST_2P (0x1 << 4) /* 4:4 */
  209. #define SSUSB_U2_PORT_U2_CG_EN_2P (0x1 << 3) /* 3:3 */
  210. #define SSUSB_U2_PORT_HOST_SEL_2P (0x1 << 2) /* 2:2 */
  211. #define SSUSB_U2_PORT_PDN_2P (0x1 << 1) /* 1:1 */
  212. #define SSUSB_U2_PORT_DIS_2P (0x1 << 0) /* 0:0 */
  213. /* U3D_SSUSB_U2_CTRL_3P */
  214. #define SSUSB_U2_PORT_SYS_CK_SEL_3P (0x1 << 6) /* 6:6 */
  215. #define SSUSB_U2_PORT_PHYD_RST_3P (0x1 << 5) /* 5:5 */
  216. #define SSUSB_U2_PORT_MAC_RST_3P (0x1 << 4) /* 4:4 */
  217. #define SSUSB_U2_PORT_U2_CG_EN_3P (0x1 << 3) /* 3:3 */
  218. #define SSUSB_U2_PORT_HOST_SEL_3P (0x1 << 2) /* 2:2 */
  219. #define SSUSB_U2_PORT_PDN_3P (0x1 << 1) /* 1:1 */
  220. #define SSUSB_U2_PORT_DIS_3P (0x1 << 0) /* 0:0 */
  221. /* U3D_SSUSB_U2_CTRL_4P */
  222. #define SSUSB_U2_PORT_SYS_CK_SEL_4P (0x1 << 6) /* 6:6 */
  223. #define SSUSB_U2_PORT_PHYD_RST_4P (0x1 << 5) /* 5:5 */
  224. #define SSUSB_U2_PORT_MAC_RST_4P (0x1 << 4) /* 4:4 */
  225. #define SSUSB_U2_PORT_U2_CG_EN_4P (0x1 << 3) /* 3:3 */
  226. #define SSUSB_U2_PORT_HOST_SEL_4P (0x1 << 2) /* 2:2 */
  227. #define SSUSB_U2_PORT_PDN_4P (0x1 << 1) /* 1:1 */
  228. #define SSUSB_U2_PORT_DIS_4P (0x1 << 0) /* 0:0 */
  229. /* U3D_SSUSB_U2_CTRL_5P */
  230. #define SSUSB_U2_PORT_SYS_CK_SEL_5P (0x1 << 6) /* 6:6 */
  231. #define SSUSB_U2_PORT_PHYD_RST_5P (0x1 << 5) /* 5:5 */
  232. #define SSUSB_U2_PORT_MAC_RST_5P (0x1 << 4) /* 4:4 */
  233. #define SSUSB_U2_PORT_U2_CG_EN_5P (0x1 << 3) /* 3:3 */
  234. #define SSUSB_U2_PORT_HOST_SEL_5P (0x1 << 2) /* 2:2 */
  235. #define SSUSB_U2_PORT_PDN_5P (0x1 << 1) /* 1:1 */
  236. #define SSUSB_U2_PORT_DIS_5P (0x1 << 0) /* 0:0 */
  237. /* U3D_SSUSB_U2_PHY_PLL */
  238. #define SSUSB_U2_PORT_PLL_STABLE_TIMER (0xff << 8) /* 15:8 */
  239. #define SSUSB_U2_PORT_1US_TIMER (0xff << 0) /* 7:0 */
  240. /* U3D_SSUSB_DMA_CTRL */
  241. #define SSUSB_IP_DMA_BUS_CK_GATE_DIS (0x1 << 0) /* 0:0 */
  242. /* U3D_SSUSB_MAC_CK_CTRL */
  243. #define SSUSB_MAC3_SYS_CK_GATE_MASK_TIME (0xff << 16) /* 23:16 */
  244. #define SSUSB_MAC2_SYS_CK_GATE_MASK_TIME (0xff << 8) /* 15:8 */
  245. #define SSUSB_MAC3_SYS_CK_GATE_MODE (0x3 << 2) /* 3:2 */
  246. #define SSUSB_MAC2_SYS_CK_GATE_MODE (0x3 << 0) /* 1:0 */
  247. /* U3D_SSUSB_CSR_CK_CTRL */
  248. #define SSUSB_CSR_MCU_BUS_CK_GATE_EN (0x1 << 0) /* 0:0 */
  249. /* U3D_SSUSB_REF_CK_CTRL */
  250. #define SSUSB_REF_MAC3_CK_GATE_EN (0x1 << 3) /* 3:3 */
  251. #define SSUSB_REF_CK_GATE_EN (0x1 << 2) /* 2:2 */
  252. #define SSUSB_REF_PHY_CK_GATE_EN (0x1 << 1) /* 1:1 */
  253. #define SSUSB_REF_MAC_CK_GATE_EN (0x1 << 0) /* 0:0 */
  254. /* U3D_SSUSB_XHCI_CK_CTRL */
  255. #define SSUSB_XACT3_XHCI_CK_GATE_MASK_TIME (0xff << 8) /* 15:8 */
  256. #define SSUSB_XACT3_XHCI_CK_GATE_MODE (0x3 << 4) /* 5:4 */
  257. #define SSUSB_XHCI_CK_DIV2_EN (0x1 << 0) /* 0:0 */
  258. /* U3D_SSUSB_XHCI_RST_CTRL */
  259. #define SSUSB_XHCI_SW_DRAM_RST (0x1 << 4) /* 4:4 */
  260. #define SSUSB_XHCI_SW_SYS60_RST (0x1 << 3) /* 3:3 */
  261. #define SSUSB_XHCI_SW_SYS125_RST (0x1 << 2) /* 2:2 */
  262. #define SSUSB_XHCI_SW_XHCI_RST (0x1 << 1) /* 1:1 */
  263. #define SSUSB_XHCI_SW_RST (0x1 << 0) /* 0:0 */
  264. /* U3D_SSUSB_DEV_RST_CTRL */
  265. #define SSUSB_DEV_SW_DRAM_RST (0x1 << 3) /* 3:3 */
  266. #define SSUSB_DEV_SW_QMU_RST (0x1 << 2) /* 2:2 */
  267. #define SSUSB_DEV_SW_BMU_RST (0x1 << 1) /* 1:1 */
  268. #define SSUSB_DEV_SW_RST (0x1 << 0) /* 0:0 */
  269. /* U3D_SSUSB_SYS_CK_CTRL */
  270. #define SSUSB_SYS_CK_DIV2_EN (0x1 << 0) /* 0:0 */
  271. /* U3D_SSUSB_HW_ID */
  272. #define SSUSB_HW_ID (0xffffffff << 0) /* 31:0 */
  273. /* U3D_SSUSB_HW_SUB_ID */
  274. #define SSUSB_HW_SUB_ID (0xffffffff << 0) /* 31:0 */
  275. /* U3D_SSUSB_PRB_CTRL0 */
  276. #define PRB_BYTE3_EN (0x1 << 3) /* 3:3 */
  277. #define PRB_BYTE2_EN (0x1 << 2) /* 2:2 */
  278. #define PRB_BYTE1_EN (0x1 << 1) /* 1:1 */
  279. #define PRB_BYTE0_EN (0x1 << 0) /* 0:0 */
  280. /* U3D_SSUSB_PRB_CTRL1 */
  281. #define PRB_BYTE1_SEL (0xffff << 16) /* 31:16 */
  282. #define PRB_BYTE0_SEL (0xffff << 0) /* 15:0 */
  283. /* U3D_SSUSB_PRB_CTRL2 */
  284. #define PRB_BYTE3_SEL (0xffff << 16) /* 31:16 */
  285. #define PRB_BYTE2_SEL (0xffff << 0) /* 15:0 */
  286. /* U3D_SSUSB_PRB_CTRL3 */
  287. #define PRB_BYTE3_MODULE_SEL (0xff << 24) /* 31:24 */
  288. #define PRB_BYTE2_MODULE_SEL (0xff << 16) /* 23:16 */
  289. #define PRB_BYTE1_MODULE_SEL (0xff << 8) /* 15:8 */
  290. #define PRB_BYTE0_MODULE_SEL (0xff << 0) /* 7:0 */
  291. /* U3D_SSUSB_PRB_CTRL4 */
  292. #define SW_PRB_OUT (0xffffffff << 0) /* 31:0 */
  293. /* U3D_SSUSB_PRB_CTRL5 */
  294. #define PRB_RD_DATA (0xffffffff << 0) /* 31:0 */
  295. /* U3D_SSUSB_IP_SPARE0 */
  296. #define SSUSB_IP_SPARE0 (0xffffffff << 0) /* 31:0 */
  297. /* U3D_SSUSB_IP_SPARE1 */
  298. #define SSUSB_IP_SPARE1 (0xffffffff << 0) /* 31:0 */
  299. /* U3D_SSUSB_FPGA_I2C_OUT_0P */
  300. #define SSUSB_FPGA_I2C_SCL_OEN_0P (0x1 << 3) /* 3:3 */
  301. #define SSUSB_FPGA_I2C_SCL_OUT_0P (0x1 << 2) /* 2:2 */
  302. #define SSUSB_FPGA_I2C_SDA_OEN_0P (0x1 << 1) /* 1:1 */
  303. #define SSUSB_FPGA_I2C_SDA_OUT_0P (0x1 << 0) /* 0:0 */
  304. /* U3D_SSUSB_FPGA_I2C_IN_0P */
  305. #define SSUSB_FPGA_I2C_SCL_IN_0P (0x1 << 1) /* 1:1 */
  306. #define SSUSB_FPGA_I2C_SDA_IN_0P (0x1 << 0) /* 0:0 */
  307. /* U3D_SSUSB_FPGA_I2C_OUT_1P */
  308. #define SSUSB_FPGA_I2C_SCL_OEN_1P (0x1 << 3) /* 3:3 */
  309. #define SSUSB_FPGA_I2C_SCL_OUT_1P (0x1 << 2) /* 2:2 */
  310. #define SSUSB_FPGA_I2C_SDA_OEN_1P (0x1 << 1) /* 1:1 */
  311. #define SSUSB_FPGA_I2C_SDA_OUT_1P (0x1 << 0) /* 0:0 */
  312. /* U3D_SSUSB_FPGA_I2C_IN_1P */
  313. #define SSUSB_FPGA_I2C_SCL_IN_1P (0x1 << 1) /* 1:1 */
  314. #define SSUSB_FPGA_I2C_SDA_IN_1P (0x1 << 0) /* 0:0 */
  315. /* U3D_SSUSB_FPGA_I2C_OUT_2P */
  316. #define SSUSB_FPGA_I2C_SCL_OEN_2P (0x1 << 3) /* 3:3 */
  317. #define SSUSB_FPGA_I2C_SCL_OUT_2P (0x1 << 2) /* 2:2 */
  318. #define SSUSB_FPGA_I2C_SDA_OEN_2P (0x1 << 1) /* 1:1 */
  319. #define SSUSB_FPGA_I2C_SDA_OUT_2P (0x1 << 0) /* 0:0 */
  320. /* U3D_SSUSB_FPGA_I2C_IN_2P */
  321. #define SSUSB_FPGA_I2C_SCL_IN_2P (0x1 << 1) /* 1:1 */
  322. #define SSUSB_FPGA_I2C_SDA_IN_2P (0x1 << 0) /* 0:0 */
  323. /* U3D_SSUSB_FPGA_I2C_OUT_3P */
  324. #define SSUSB_FPGA_I2C_SCL_OEN_3P (0x1 << 3) /* 3:3 */
  325. #define SSUSB_FPGA_I2C_SCL_OUT_3P (0x1 << 2) /* 2:2 */
  326. #define SSUSB_FPGA_I2C_SDA_OEN_3P (0x1 << 1) /* 1:1 */
  327. #define SSUSB_FPGA_I2C_SDA_OUT_3P (0x1 << 0) /* 0:0 */
  328. /* U3D_SSUSB_FPGA_I2C_IN_3P */
  329. #define SSUSB_FPGA_I2C_SCL_IN_3P (0x1 << 1) /* 1:1 */
  330. #define SSUSB_FPGA_I2C_SDA_IN_3P (0x1 << 0) /* 0:0 */
  331. /* U3D_SSUSB_FPGA_I2C_OUT_4P */
  332. #define SSUSB_FPGA_I2C_SCL_OEN_4P (0x1 << 3) /* 3:3 */
  333. #define SSUSB_FPGA_I2C_SCL_OUT_4P (0x1 << 2) /* 2:2 */
  334. #define SSUSB_FPGA_I2C_SDA_OEN_4P (0x1 << 1) /* 1:1 */
  335. #define SSUSB_FPGA_I2C_SDA_OUT_4P (0x1 << 0) /* 0:0 */
  336. /* U3D_SSUSB_FPGA_I2C_IN_4P */
  337. #define SSUSB_FPGA_I2C_SCL_IN_4P (0x1 << 1) /* 1:1 */
  338. #define SSUSB_FPGA_I2C_SDA_IN_4P (0x1 << 0) /* 0:0 */
  339. /* U3D_SSUSB_IP_SLV_TMOUT */
  340. #define SSUSB_IP_SLV_TMOUT (0xffffffff << 0) /* 31:0 */
  341. /* SSUSB_SIFSLV_IPPC FIELD OFFSET DEFINITION */
  342. /* U3D_SSUSB_IP_PW_CTRL0 */
  343. #define SSUSB_IP_U2_ENTER_SLEEP_CNT_OFST (8)
  344. #define SSUSB_IP_SW_RST_OFST (0)
  345. /* U3D_SSUSB_IP_PW_CTRL1 */
  346. #define SSUSB_IP_HOST_PDN_OFST (0)
  347. /* U3D_SSUSB_IP_PW_CTRL2 */
  348. #define SSUSB_IP_DEV_PDN_OFST (0)
  349. /* U3D_SSUSB_IP_PW_CTRL3 */
  350. #define SSUSB_IP_PCIE_PDN_OFST (0)
  351. /* U3D_SSUSB_IP_PW_STS1 */
  352. #define SSUSB_U2_MAC_RST_B_STS_5P_OFST (29)
  353. #define SSUSB_U2_MAC_RST_B_STS_4P_OFST (28)
  354. #define SSUSB_U2_MAC_RST_B_STS_3P_OFST (27)
  355. #define SSUSB_U2_MAC_RST_B_STS_2P_OFST (26)
  356. #define SSUSB_U2_MAC_RST_B_STS_1P_OFST (25)
  357. #define SSUSB_U2_MAC_RST_B_STS_OFST (24)
  358. #define SSUSB_U3_MAC_RST_B_STS_3P_OFST (19)
  359. #define SSUSB_U3_MAC_RST_B_STS_2P_OFST (18)
  360. #define SSUSB_U3_MAC_RST_B_STS_1P_OFST (17)
  361. #define SSUSB_U3_MAC_RST_B_STS_OFST (16)
  362. #define SSUSB_DEV_DRAM_RST_B_STS_OFST (13)
  363. #define SSUSB_XHCI_DRAM_RST_B_STS_OFST (12)
  364. #define SSUSB_XHCI_RST_B_STS_OFST (11)
  365. #define SSUSB_SYS125_RST_B_STS_OFST (10)
  366. #define SSUSB_SYS60_RST_B_STS_OFST (9)
  367. #define SSUSB_REF_RST_B_STS_OFST (8)
  368. #define SSUSB_DEV_RST_B_STS_OFST (3)
  369. #define SSUSB_DEV_BMU_RST_B_STS_OFST (2)
  370. #define SSUSB_DEV_QMU_RST_B_STS_OFST (1)
  371. #define SSUSB_SYSPLL_STABLE_OFST (0)
  372. /* U3D_SSUSB_IP_PW_STS2 */
  373. #define SSUSB_U2_MAC_SYS_RST_B_STS_5P_OFST (5)
  374. #define SSUSB_U2_MAC_SYS_RST_B_STS_4P_OFST (4)
  375. #define SSUSB_U2_MAC_SYS_RST_B_STS_3P_OFST (3)
  376. #define SSUSB_U2_MAC_SYS_RST_B_STS_2P_OFST (2)
  377. #define SSUSB_U2_MAC_SYS_RST_B_STS_1P_OFST (1)
  378. #define SSUSB_U2_MAC_SYS_RST_B_STS_OFST (0)
  379. /* U3D_SSUSB_IP_MAC_CAP */
  380. #define SSUSB_IP_MAC_U2_PORT_NO_OFST (8)
  381. #define SSUSB_IP_MAC_U3_PORT_NO_OFST (0)
  382. /* U3D_SSUSB_IP_XHCI_CAP */
  383. #define SSUSB_IP_XHCI_U2_PORT_NO_OFST (8)
  384. #define SSUSB_IP_XHCI_U3_PORT_NO_OFST (0)
  385. /* U3D_SSUSB_IP_DEV_CAP */
  386. #define SSUSB_IP_DEV_U2_PORT_NO_OFST (8)
  387. #define SSUSB_IP_DEV_U3_PORT_NO_OFST (0)
  388. /* U3D_SSUSB_U3_CTRL_0P */
  389. #define SSUSB_U3_PORT_PHYD_RST_OFST (5)
  390. #define SSUSB_U3_PORT_MAC_RST_OFST (4)
  391. #define SSUSB_U3_PORT_U2_CG_EN_OFST (3)
  392. #define SSUSB_U3_PORT_HOST_SEL_OFST (2)
  393. #define SSUSB_U3_PORT_PDN_OFST (1)
  394. #define SSUSB_U3_PORT_DIS_OFST (0)
  395. /* U3D_SSUSB_U3_CTRL_1P */
  396. #define SSUSB_U3_PORT_PHYD_RST_1P_OFST (5)
  397. #define SSUSB_U3_PORT_MAC_RST_1P_OFST (4)
  398. #define SSUSB_U3_PORT_U2_CG_EN_1P_OFST (3)
  399. #define SSUSB_U3_PORT_HOST_SEL_1P_OFST (2)
  400. #define SSUSB_U3_PORT_PDN_1P_OFST (1)
  401. #define SSUSB_U3_PORT_DIS_1P_OFST (0)
  402. /* U3D_SSUSB_U3_CTRL_2P */
  403. #define SSUSB_U3_PORT_PHYD_RST_2P_OFST (5)
  404. #define SSUSB_U3_PORT_MAC_RST_2P_OFST (4)
  405. #define SSUSB_U3_PORT_U2_CG_EN_2P_OFST (3)
  406. #define SSUSB_U3_PORT_HOST_SEL_2P_OFST (2)
  407. #define SSUSB_U3_PORT_PDN_2P_OFST (1)
  408. #define SSUSB_U3_PORT_DIS_2P_OFST (0)
  409. /* U3D_SSUSB_U3_CTRL_3P */
  410. #define SSUSB_U3_PORT_PHYD_RST_3P_OFST (5)
  411. #define SSUSB_U3_PORT_MAC_RST_3P_OFST (4)
  412. #define SSUSB_U3_PORT_U2_CG_EN_3P_OFST (3)
  413. #define SSUSB_U3_PORT_HOST_SEL_3P_OFST (2)
  414. #define SSUSB_U3_PORT_PDN_3P_OFST (1)
  415. #define SSUSB_U3_PORT_DIS_3P_OFST (0)
  416. /* U3D_SSUSB_U2_CTRL_0P */
  417. #define SSUSB_U2_PORT_SYS_CK_SEL_OFST (6)
  418. #define SSUSB_U2_PORT_PHYD_RST_OFST (5)
  419. #define SSUSB_U2_PORT_MAC_RST_OFST (4)
  420. #define SSUSB_U2_PORT_U2_CG_EN_OFST (3)
  421. #define SSUSB_U2_PORT_HOST_SEL_OFST (2)
  422. #define SSUSB_U2_PORT_PDN_OFST (1)
  423. #define SSUSB_U2_PORT_DIS_OFST (0)
  424. /* U3D_SSUSB_U2_CTRL_1P */
  425. #define SSUSB_U2_PORT_SYS_CK_SEL_1P_OFST (6)
  426. #define SSUSB_U2_PORT_PHYD_RST_1P_OFST (5)
  427. #define SSUSB_U2_PORT_MAC_RST_1P_OFST (4)
  428. #define SSUSB_U2_PORT_U2_CG_EN_1P_OFST (3)
  429. #define SSUSB_U2_PORT_HOST_SEL_1P_OFST (2)
  430. #define SSUSB_U2_PORT_PDN_1P_OFST (1)
  431. #define SSUSB_U2_PORT_DIS_1P_OFST (0)
  432. /* U3D_SSUSB_U2_CTRL_2P */
  433. #define SSUSB_U2_PORT_SYS_CK_SEL_2P_OFST (6)
  434. #define SSUSB_U2_PORT_PHYD_RST_2P_OFST (5)
  435. #define SSUSB_U2_PORT_MAC_RST_2P_OFST (4)
  436. #define SSUSB_U2_PORT_U2_CG_EN_2P_OFST (3)
  437. #define SSUSB_U2_PORT_HOST_SEL_2P_OFST (2)
  438. #define SSUSB_U2_PORT_PDN_2P_OFST (1)
  439. #define SSUSB_U2_PORT_DIS_2P_OFST (0)
  440. /* U3D_SSUSB_U2_CTRL_3P */
  441. #define SSUSB_U2_PORT_SYS_CK_SEL_3P_OFST (6)
  442. #define SSUSB_U2_PORT_PHYD_RST_3P_OFST (5)
  443. #define SSUSB_U2_PORT_MAC_RST_3P_OFST (4)
  444. #define SSUSB_U2_PORT_U2_CG_EN_3P_OFST (3)
  445. #define SSUSB_U2_PORT_HOST_SEL_3P_OFST (2)
  446. #define SSUSB_U2_PORT_PDN_3P_OFST (1)
  447. #define SSUSB_U2_PORT_DIS_3P_OFST (0)
  448. /* U3D_SSUSB_U2_CTRL_4P */
  449. #define SSUSB_U2_PORT_SYS_CK_SEL_4P_OFST (6)
  450. #define SSUSB_U2_PORT_PHYD_RST_4P_OFST (5)
  451. #define SSUSB_U2_PORT_MAC_RST_4P_OFST (4)
  452. #define SSUSB_U2_PORT_U2_CG_EN_4P_OFST (3)
  453. #define SSUSB_U2_PORT_HOST_SEL_4P_OFST (2)
  454. #define SSUSB_U2_PORT_PDN_4P_OFST (1)
  455. #define SSUSB_U2_PORT_DIS_4P_OFST (0)
  456. /* U3D_SSUSB_U2_CTRL_5P */
  457. #define SSUSB_U2_PORT_SYS_CK_SEL_5P_OFST (6)
  458. #define SSUSB_U2_PORT_PHYD_RST_5P_OFST (5)
  459. #define SSUSB_U2_PORT_MAC_RST_5P_OFST (4)
  460. #define SSUSB_U2_PORT_U2_CG_EN_5P_OFST (3)
  461. #define SSUSB_U2_PORT_HOST_SEL_5P_OFST (2)
  462. #define SSUSB_U2_PORT_PDN_5P_OFST (1)
  463. #define SSUSB_U2_PORT_DIS_5P_OFST (0)
  464. /* U3D_SSUSB_U2_PHY_PLL */
  465. #define SSUSB_U2_PORT_PLL_STABLE_TIMER_OFST (8)
  466. #define SSUSB_U2_PORT_1US_TIMER_OFST (0)
  467. /* U3D_SSUSB_DMA_CTRL */
  468. #define SSUSB_IP_DMA_BUS_CK_GATE_DIS_OFST (0)
  469. /* U3D_SSUSB_MAC_CK_CTRL */
  470. #define SSUSB_MAC3_SYS_CK_GATE_MASK_TIME_OFST (16)
  471. #define SSUSB_MAC2_SYS_CK_GATE_MASK_TIME_OFST (8)
  472. #define SSUSB_MAC3_SYS_CK_GATE_MODE_OFST (2)
  473. #define SSUSB_MAC2_SYS_CK_GATE_MODE_OFST (0)
  474. /* U3D_SSUSB_CSR_CK_CTRL */
  475. #define SSUSB_CSR_MCU_BUS_CK_GATE_EN_OFST (0)
  476. /* U3D_SSUSB_REF_CK_CTRL */
  477. #define SSUSB_REF_MAC3_CK_GATE_EN_OFST (3)
  478. #define SSUSB_REF_CK_GATE_EN_OFST (2)
  479. #define SSUSB_REF_PHY_CK_GATE_EN_OFST (1)
  480. #define SSUSB_REF_MAC_CK_GATE_EN_OFST (0)
  481. /* U3D_SSUSB_XHCI_CK_CTRL */
  482. #define SSUSB_XACT3_XHCI_CK_GATE_MASK_TIME_OFST (8)
  483. #define SSUSB_XACT3_XHCI_CK_GATE_MODE_OFST (4)
  484. #define SSUSB_XHCI_CK_DIV2_EN_OFST (0)
  485. /* U3D_SSUSB_XHCI_RST_CTRL */
  486. #define SSUSB_XHCI_SW_DRAM_RST_OFST (4)
  487. #define SSUSB_XHCI_SW_SYS60_RST_OFST (3)
  488. #define SSUSB_XHCI_SW_SYS125_RST_OFST (2)
  489. #define SSUSB_XHCI_SW_XHCI_RST_OFST (1)
  490. #define SSUSB_XHCI_SW_RST_OFST (0)
  491. /* U3D_SSUSB_DEV_RST_CTRL */
  492. #define SSUSB_DEV_SW_DRAM_RST_OFST (3)
  493. #define SSUSB_DEV_SW_QMU_RST_OFST (2)
  494. #define SSUSB_DEV_SW_BMU_RST_OFST (1)
  495. #define SSUSB_DEV_SW_RST_OFST (0)
  496. /* U3D_SSUSB_SYS_CK_CTRL */
  497. #define SSUSB_SYS_CK_DIV2_EN_OFST (0)
  498. /* U3D_SSUSB_HW_ID */
  499. #define SSUSB_HW_ID_OFST (0)
  500. /* U3D_SSUSB_HW_SUB_ID */
  501. #define SSUSB_HW_SUB_ID_OFST (0)
  502. /* U3D_SSUSB_PRB_CTRL0 */
  503. #define PRB_BYTE3_EN_OFST (3)
  504. #define PRB_BYTE2_EN_OFST (2)
  505. #define PRB_BYTE1_EN_OFST (1)
  506. #define PRB_BYTE0_EN_OFST (0)
  507. /* U3D_SSUSB_PRB_CTRL1 */
  508. #define PRB_BYTE1_SEL_OFST (16)
  509. #define PRB_BYTE0_SEL_OFST (0)
  510. /* U3D_SSUSB_PRB_CTRL2 */
  511. #define PRB_BYTE3_SEL_OFST (16)
  512. #define PRB_BYTE2_SEL_OFST (0)
  513. /* U3D_SSUSB_PRB_CTRL3 */
  514. #define PRB_BYTE3_MODULE_SEL_OFST (24)
  515. #define PRB_BYTE2_MODULE_SEL_OFST (16)
  516. #define PRB_BYTE1_MODULE_SEL_OFST (8)
  517. #define PRB_BYTE0_MODULE_SEL_OFST (0)
  518. /* U3D_SSUSB_PRB_CTRL4 */
  519. #define SW_PRB_OUT_OFST (0)
  520. /* U3D_SSUSB_PRB_CTRL5 */
  521. #define PRB_RD_DATA_OFST (0)
  522. /* U3D_SSUSB_IP_SPARE0 */
  523. #define SSUSB_IP_SPARE0_OFST (0)
  524. /* U3D_SSUSB_IP_SPARE1 */
  525. #define SSUSB_IP_SPARE1_OFST (0)
  526. /* U3D_SSUSB_FPGA_I2C_OUT_0P */
  527. #define SSUSB_FPGA_I2C_SCL_OEN_0P_OFST (3)
  528. #define SSUSB_FPGA_I2C_SCL_OUT_0P_OFST (2)
  529. #define SSUSB_FPGA_I2C_SDA_OEN_0P_OFST (1)
  530. #define SSUSB_FPGA_I2C_SDA_OUT_0P_OFST (0)
  531. /* U3D_SSUSB_FPGA_I2C_IN_0P */
  532. #define SSUSB_FPGA_I2C_SCL_IN_0P_OFST (1)
  533. #define SSUSB_FPGA_I2C_SDA_IN_0P_OFST (0)
  534. /* U3D_SSUSB_FPGA_I2C_OUT_1P */
  535. #define SSUSB_FPGA_I2C_SCL_OEN_1P_OFST (3)
  536. #define SSUSB_FPGA_I2C_SCL_OUT_1P_OFST (2)
  537. #define SSUSB_FPGA_I2C_SDA_OEN_1P_OFST (1)
  538. #define SSUSB_FPGA_I2C_SDA_OUT_1P_OFST (0)
  539. /* U3D_SSUSB_FPGA_I2C_IN_1P */
  540. #define SSUSB_FPGA_I2C_SCL_IN_1P_OFST (1)
  541. #define SSUSB_FPGA_I2C_SDA_IN_1P_OFST (0)
  542. /* U3D_SSUSB_FPGA_I2C_OUT_2P */
  543. #define SSUSB_FPGA_I2C_SCL_OEN_2P_OFST (3)
  544. #define SSUSB_FPGA_I2C_SCL_OUT_2P_OFST (2)
  545. #define SSUSB_FPGA_I2C_SDA_OEN_2P_OFST (1)
  546. #define SSUSB_FPGA_I2C_SDA_OUT_2P_OFST (0)
  547. /* U3D_SSUSB_FPGA_I2C_IN_2P */
  548. #define SSUSB_FPGA_I2C_SCL_IN_2P_OFST (1)
  549. #define SSUSB_FPGA_I2C_SDA_IN_2P_OFST (0)
  550. /* U3D_SSUSB_FPGA_I2C_OUT_3P */
  551. #define SSUSB_FPGA_I2C_SCL_OEN_3P_OFST (3)
  552. #define SSUSB_FPGA_I2C_SCL_OUT_3P_OFST (2)
  553. #define SSUSB_FPGA_I2C_SDA_OEN_3P_OFST (1)
  554. #define SSUSB_FPGA_I2C_SDA_OUT_3P_OFST (0)
  555. /* U3D_SSUSB_FPGA_I2C_IN_3P */
  556. #define SSUSB_FPGA_I2C_SCL_IN_3P_OFST (1)
  557. #define SSUSB_FPGA_I2C_SDA_IN_3P_OFST (0)
  558. /* U3D_SSUSB_FPGA_I2C_OUT_4P */
  559. #define SSUSB_FPGA_I2C_SCL_OEN_4P_OFST (3)
  560. #define SSUSB_FPGA_I2C_SCL_OUT_4P_OFST (2)
  561. #define SSUSB_FPGA_I2C_SDA_OEN_4P_OFST (1)
  562. #define SSUSB_FPGA_I2C_SDA_OUT_4P_OFST (0)
  563. /* U3D_SSUSB_FPGA_I2C_IN_4P */
  564. #define SSUSB_FPGA_I2C_SCL_IN_4P_OFST (1)
  565. #define SSUSB_FPGA_I2C_SDA_IN_4P_OFST (0)
  566. /* U3D_SSUSB_IP_SLV_TMOUT */
  567. #define SSUSB_IP_SLV_TMOUT_OFST (0)
  568. #endif