hdmi.xml.h 44 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344
  1. #ifndef HDMI_XML
  2. #define HDMI_XML
  3. /* Autogenerated file, DO NOT EDIT manually!
  4. This file was generated by the rules-ng-ng headergen tool in this git repository:
  5. http://github.com/freedreno/envytools/
  6. git clone https://github.com/freedreno/envytools.git
  7. The rules-ng-ng source files this header was generated from are:
  8. - /home/robclark/src/freedreno/envytools/rnndb/msm.xml ( 676 bytes, from 2015-05-20 20:03:14)
  9. - /home/robclark/src/freedreno/envytools/rnndb/freedreno_copyright.xml ( 1572 bytes, from 2016-02-10 17:07:21)
  10. - /home/robclark/src/freedreno/envytools/rnndb/mdp/mdp4.xml ( 20915 bytes, from 2015-05-20 20:03:14)
  11. - /home/robclark/src/freedreno/envytools/rnndb/mdp/mdp_common.xml ( 2849 bytes, from 2015-09-18 12:07:28)
  12. - /home/robclark/src/freedreno/envytools/rnndb/mdp/mdp5.xml ( 36965 bytes, from 2016-11-26 23:01:08)
  13. - /home/robclark/src/freedreno/envytools/rnndb/dsi/dsi.xml ( 27887 bytes, from 2015-10-22 16:34:52)
  14. - /home/robclark/src/freedreno/envytools/rnndb/dsi/sfpb.xml ( 602 bytes, from 2015-10-22 16:35:02)
  15. - /home/robclark/src/freedreno/envytools/rnndb/dsi/mmss_cc.xml ( 1686 bytes, from 2015-05-20 20:03:14)
  16. - /home/robclark/src/freedreno/envytools/rnndb/hdmi/qfprom.xml ( 600 bytes, from 2015-05-20 20:03:07)
  17. - /home/robclark/src/freedreno/envytools/rnndb/hdmi/hdmi.xml ( 41472 bytes, from 2016-01-22 18:18:18)
  18. - /home/robclark/src/freedreno/envytools/rnndb/edp/edp.xml ( 10416 bytes, from 2015-05-20 20:03:14)
  19. Copyright (C) 2013-2016 by the following authors:
  20. - Rob Clark <robdclark@gmail.com> (robclark)
  21. - Ilia Mirkin <imirkin@alum.mit.edu> (imirkin)
  22. Permission is hereby granted, free of charge, to any person obtaining
  23. a copy of this software and associated documentation files (the
  24. "Software"), to deal in the Software without restriction, including
  25. without limitation the rights to use, copy, modify, merge, publish,
  26. distribute, sublicense, and/or sell copies of the Software, and to
  27. permit persons to whom the Software is furnished to do so, subject to
  28. the following conditions:
  29. The above copyright notice and this permission notice (including the
  30. next paragraph) shall be included in all copies or substantial
  31. portions of the Software.
  32. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  33. EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  34. MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  35. IN NO EVENT SHALL THE COPYRIGHT OWNER(S) AND/OR ITS SUPPLIERS BE
  36. LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  37. OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  38. WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  39. */
  40. enum hdmi_hdcp_key_state {
  41. HDCP_KEYS_STATE_NO_KEYS = 0,
  42. HDCP_KEYS_STATE_NOT_CHECKED = 1,
  43. HDCP_KEYS_STATE_CHECKING = 2,
  44. HDCP_KEYS_STATE_VALID = 3,
  45. HDCP_KEYS_STATE_AKSV_NOT_VALID = 4,
  46. HDCP_KEYS_STATE_CHKSUM_MISMATCH = 5,
  47. HDCP_KEYS_STATE_PROD_AKSV = 6,
  48. HDCP_KEYS_STATE_RESERVED = 7,
  49. };
  50. enum hdmi_ddc_read_write {
  51. DDC_WRITE = 0,
  52. DDC_READ = 1,
  53. };
  54. enum hdmi_acr_cts {
  55. ACR_NONE = 0,
  56. ACR_32 = 1,
  57. ACR_44 = 2,
  58. ACR_48 = 3,
  59. };
  60. #define REG_HDMI_CTRL 0x00000000
  61. #define HDMI_CTRL_ENABLE 0x00000001
  62. #define HDMI_CTRL_HDMI 0x00000002
  63. #define HDMI_CTRL_ENCRYPTED 0x00000004
  64. #define REG_HDMI_AUDIO_PKT_CTRL1 0x00000020
  65. #define HDMI_AUDIO_PKT_CTRL1_AUDIO_SAMPLE_SEND 0x00000001
  66. #define REG_HDMI_ACR_PKT_CTRL 0x00000024
  67. #define HDMI_ACR_PKT_CTRL_CONT 0x00000001
  68. #define HDMI_ACR_PKT_CTRL_SEND 0x00000002
  69. #define HDMI_ACR_PKT_CTRL_SELECT__MASK 0x00000030
  70. #define HDMI_ACR_PKT_CTRL_SELECT__SHIFT 4
  71. static inline uint32_t HDMI_ACR_PKT_CTRL_SELECT(enum hdmi_acr_cts val)
  72. {
  73. return ((val) << HDMI_ACR_PKT_CTRL_SELECT__SHIFT) & HDMI_ACR_PKT_CTRL_SELECT__MASK;
  74. }
  75. #define HDMI_ACR_PKT_CTRL_SOURCE 0x00000100
  76. #define HDMI_ACR_PKT_CTRL_N_MULTIPLIER__MASK 0x00070000
  77. #define HDMI_ACR_PKT_CTRL_N_MULTIPLIER__SHIFT 16
  78. static inline uint32_t HDMI_ACR_PKT_CTRL_N_MULTIPLIER(uint32_t val)
  79. {
  80. return ((val) << HDMI_ACR_PKT_CTRL_N_MULTIPLIER__SHIFT) & HDMI_ACR_PKT_CTRL_N_MULTIPLIER__MASK;
  81. }
  82. #define HDMI_ACR_PKT_CTRL_AUDIO_PRIORITY 0x80000000
  83. #define REG_HDMI_VBI_PKT_CTRL 0x00000028
  84. #define HDMI_VBI_PKT_CTRL_GC_ENABLE 0x00000010
  85. #define HDMI_VBI_PKT_CTRL_GC_EVERY_FRAME 0x00000020
  86. #define HDMI_VBI_PKT_CTRL_ISRC_SEND 0x00000100
  87. #define HDMI_VBI_PKT_CTRL_ISRC_CONTINUOUS 0x00000200
  88. #define HDMI_VBI_PKT_CTRL_ACP_SEND 0x00001000
  89. #define HDMI_VBI_PKT_CTRL_ACP_SRC_SW 0x00002000
  90. #define REG_HDMI_INFOFRAME_CTRL0 0x0000002c
  91. #define HDMI_INFOFRAME_CTRL0_AVI_SEND 0x00000001
  92. #define HDMI_INFOFRAME_CTRL0_AVI_CONT 0x00000002
  93. #define HDMI_INFOFRAME_CTRL0_AUDIO_INFO_SEND 0x00000010
  94. #define HDMI_INFOFRAME_CTRL0_AUDIO_INFO_CONT 0x00000020
  95. #define HDMI_INFOFRAME_CTRL0_AUDIO_INFO_SOURCE 0x00000040
  96. #define HDMI_INFOFRAME_CTRL0_AUDIO_INFO_UPDATE 0x00000080
  97. #define REG_HDMI_GEN_PKT_CTRL 0x00000034
  98. #define HDMI_GEN_PKT_CTRL_GENERIC0_SEND 0x00000001
  99. #define HDMI_GEN_PKT_CTRL_GENERIC0_CONT 0x00000002
  100. #define HDMI_GEN_PKT_CTRL_GENERIC0_UPDATE__MASK 0x0000000c
  101. #define HDMI_GEN_PKT_CTRL_GENERIC0_UPDATE__SHIFT 2
  102. static inline uint32_t HDMI_GEN_PKT_CTRL_GENERIC0_UPDATE(uint32_t val)
  103. {
  104. return ((val) << HDMI_GEN_PKT_CTRL_GENERIC0_UPDATE__SHIFT) & HDMI_GEN_PKT_CTRL_GENERIC0_UPDATE__MASK;
  105. }
  106. #define HDMI_GEN_PKT_CTRL_GENERIC1_SEND 0x00000010
  107. #define HDMI_GEN_PKT_CTRL_GENERIC1_CONT 0x00000020
  108. #define HDMI_GEN_PKT_CTRL_GENERIC0_LINE__MASK 0x003f0000
  109. #define HDMI_GEN_PKT_CTRL_GENERIC0_LINE__SHIFT 16
  110. static inline uint32_t HDMI_GEN_PKT_CTRL_GENERIC0_LINE(uint32_t val)
  111. {
  112. return ((val) << HDMI_GEN_PKT_CTRL_GENERIC0_LINE__SHIFT) & HDMI_GEN_PKT_CTRL_GENERIC0_LINE__MASK;
  113. }
  114. #define HDMI_GEN_PKT_CTRL_GENERIC1_LINE__MASK 0x3f000000
  115. #define HDMI_GEN_PKT_CTRL_GENERIC1_LINE__SHIFT 24
  116. static inline uint32_t HDMI_GEN_PKT_CTRL_GENERIC1_LINE(uint32_t val)
  117. {
  118. return ((val) << HDMI_GEN_PKT_CTRL_GENERIC1_LINE__SHIFT) & HDMI_GEN_PKT_CTRL_GENERIC1_LINE__MASK;
  119. }
  120. #define REG_HDMI_GC 0x00000040
  121. #define HDMI_GC_MUTE 0x00000001
  122. #define REG_HDMI_AUDIO_PKT_CTRL2 0x00000044
  123. #define HDMI_AUDIO_PKT_CTRL2_OVERRIDE 0x00000001
  124. #define HDMI_AUDIO_PKT_CTRL2_LAYOUT 0x00000002
  125. static inline uint32_t REG_HDMI_AVI_INFO(uint32_t i0) { return 0x0000006c + 0x4*i0; }
  126. #define REG_HDMI_GENERIC0_HDR 0x00000084
  127. static inline uint32_t REG_HDMI_GENERIC0(uint32_t i0) { return 0x00000088 + 0x4*i0; }
  128. #define REG_HDMI_GENERIC1_HDR 0x000000a4
  129. static inline uint32_t REG_HDMI_GENERIC1(uint32_t i0) { return 0x000000a8 + 0x4*i0; }
  130. static inline uint32_t REG_HDMI_ACR(enum hdmi_acr_cts i0) { return 0x000000c4 + 0x8*i0; }
  131. static inline uint32_t REG_HDMI_ACR_0(enum hdmi_acr_cts i0) { return 0x000000c4 + 0x8*i0; }
  132. #define HDMI_ACR_0_CTS__MASK 0xfffff000
  133. #define HDMI_ACR_0_CTS__SHIFT 12
  134. static inline uint32_t HDMI_ACR_0_CTS(uint32_t val)
  135. {
  136. return ((val) << HDMI_ACR_0_CTS__SHIFT) & HDMI_ACR_0_CTS__MASK;
  137. }
  138. static inline uint32_t REG_HDMI_ACR_1(enum hdmi_acr_cts i0) { return 0x000000c8 + 0x8*i0; }
  139. #define HDMI_ACR_1_N__MASK 0xffffffff
  140. #define HDMI_ACR_1_N__SHIFT 0
  141. static inline uint32_t HDMI_ACR_1_N(uint32_t val)
  142. {
  143. return ((val) << HDMI_ACR_1_N__SHIFT) & HDMI_ACR_1_N__MASK;
  144. }
  145. #define REG_HDMI_AUDIO_INFO0 0x000000e4
  146. #define HDMI_AUDIO_INFO0_CHECKSUM__MASK 0x000000ff
  147. #define HDMI_AUDIO_INFO0_CHECKSUM__SHIFT 0
  148. static inline uint32_t HDMI_AUDIO_INFO0_CHECKSUM(uint32_t val)
  149. {
  150. return ((val) << HDMI_AUDIO_INFO0_CHECKSUM__SHIFT) & HDMI_AUDIO_INFO0_CHECKSUM__MASK;
  151. }
  152. #define HDMI_AUDIO_INFO0_CC__MASK 0x00000700
  153. #define HDMI_AUDIO_INFO0_CC__SHIFT 8
  154. static inline uint32_t HDMI_AUDIO_INFO0_CC(uint32_t val)
  155. {
  156. return ((val) << HDMI_AUDIO_INFO0_CC__SHIFT) & HDMI_AUDIO_INFO0_CC__MASK;
  157. }
  158. #define REG_HDMI_AUDIO_INFO1 0x000000e8
  159. #define HDMI_AUDIO_INFO1_CA__MASK 0x000000ff
  160. #define HDMI_AUDIO_INFO1_CA__SHIFT 0
  161. static inline uint32_t HDMI_AUDIO_INFO1_CA(uint32_t val)
  162. {
  163. return ((val) << HDMI_AUDIO_INFO1_CA__SHIFT) & HDMI_AUDIO_INFO1_CA__MASK;
  164. }
  165. #define HDMI_AUDIO_INFO1_LSV__MASK 0x00007800
  166. #define HDMI_AUDIO_INFO1_LSV__SHIFT 11
  167. static inline uint32_t HDMI_AUDIO_INFO1_LSV(uint32_t val)
  168. {
  169. return ((val) << HDMI_AUDIO_INFO1_LSV__SHIFT) & HDMI_AUDIO_INFO1_LSV__MASK;
  170. }
  171. #define HDMI_AUDIO_INFO1_DM_INH 0x00008000
  172. #define REG_HDMI_HDCP_CTRL 0x00000110
  173. #define HDMI_HDCP_CTRL_ENABLE 0x00000001
  174. #define HDMI_HDCP_CTRL_ENCRYPTION_ENABLE 0x00000100
  175. #define REG_HDMI_HDCP_DEBUG_CTRL 0x00000114
  176. #define HDMI_HDCP_DEBUG_CTRL_RNG_CIPHER 0x00000004
  177. #define REG_HDMI_HDCP_INT_CTRL 0x00000118
  178. #define HDMI_HDCP_INT_CTRL_AUTH_SUCCESS_INT 0x00000001
  179. #define HDMI_HDCP_INT_CTRL_AUTH_SUCCESS_ACK 0x00000002
  180. #define HDMI_HDCP_INT_CTRL_AUTH_SUCCESS_MASK 0x00000004
  181. #define HDMI_HDCP_INT_CTRL_AUTH_FAIL_INT 0x00000010
  182. #define HDMI_HDCP_INT_CTRL_AUTH_FAIL_ACK 0x00000020
  183. #define HDMI_HDCP_INT_CTRL_AUTH_FAIL_MASK 0x00000040
  184. #define HDMI_HDCP_INT_CTRL_AUTH_FAIL_INFO_ACK 0x00000080
  185. #define HDMI_HDCP_INT_CTRL_AUTH_XFER_REQ_INT 0x00000100
  186. #define HDMI_HDCP_INT_CTRL_AUTH_XFER_REQ_ACK 0x00000200
  187. #define HDMI_HDCP_INT_CTRL_AUTH_XFER_REQ_MASK 0x00000400
  188. #define HDMI_HDCP_INT_CTRL_AUTH_XFER_DONE_INT 0x00001000
  189. #define HDMI_HDCP_INT_CTRL_AUTH_XFER_DONE_ACK 0x00002000
  190. #define HDMI_HDCP_INT_CTRL_AUTH_XFER_DONE_MASK 0x00004000
  191. #define REG_HDMI_HDCP_LINK0_STATUS 0x0000011c
  192. #define HDMI_HDCP_LINK0_STATUS_AN_0_READY 0x00000100
  193. #define HDMI_HDCP_LINK0_STATUS_AN_1_READY 0x00000200
  194. #define HDMI_HDCP_LINK0_STATUS_RI_MATCHES 0x00001000
  195. #define HDMI_HDCP_LINK0_STATUS_V_MATCHES 0x00100000
  196. #define HDMI_HDCP_LINK0_STATUS_KEY_STATE__MASK 0x70000000
  197. #define HDMI_HDCP_LINK0_STATUS_KEY_STATE__SHIFT 28
  198. static inline uint32_t HDMI_HDCP_LINK0_STATUS_KEY_STATE(enum hdmi_hdcp_key_state val)
  199. {
  200. return ((val) << HDMI_HDCP_LINK0_STATUS_KEY_STATE__SHIFT) & HDMI_HDCP_LINK0_STATUS_KEY_STATE__MASK;
  201. }
  202. #define REG_HDMI_HDCP_DDC_CTRL_0 0x00000120
  203. #define HDMI_HDCP_DDC_CTRL_0_DISABLE 0x00000001
  204. #define REG_HDMI_HDCP_DDC_CTRL_1 0x00000124
  205. #define HDMI_HDCP_DDC_CTRL_1_FAILED_ACK 0x00000001
  206. #define REG_HDMI_HDCP_DDC_STATUS 0x00000128
  207. #define HDMI_HDCP_DDC_STATUS_XFER_REQ 0x00000010
  208. #define HDMI_HDCP_DDC_STATUS_XFER_DONE 0x00000400
  209. #define HDMI_HDCP_DDC_STATUS_ABORTED 0x00001000
  210. #define HDMI_HDCP_DDC_STATUS_TIMEOUT 0x00002000
  211. #define HDMI_HDCP_DDC_STATUS_NACK0 0x00004000
  212. #define HDMI_HDCP_DDC_STATUS_NACK1 0x00008000
  213. #define HDMI_HDCP_DDC_STATUS_FAILED 0x00010000
  214. #define REG_HDMI_HDCP_ENTROPY_CTRL0 0x0000012c
  215. #define REG_HDMI_HDCP_ENTROPY_CTRL1 0x0000025c
  216. #define REG_HDMI_HDCP_RESET 0x00000130
  217. #define HDMI_HDCP_RESET_LINK0_DEAUTHENTICATE 0x00000001
  218. #define REG_HDMI_HDCP_RCVPORT_DATA0 0x00000134
  219. #define REG_HDMI_HDCP_RCVPORT_DATA1 0x00000138
  220. #define REG_HDMI_HDCP_RCVPORT_DATA2_0 0x0000013c
  221. #define REG_HDMI_HDCP_RCVPORT_DATA2_1 0x00000140
  222. #define REG_HDMI_HDCP_RCVPORT_DATA3 0x00000144
  223. #define REG_HDMI_HDCP_RCVPORT_DATA4 0x00000148
  224. #define REG_HDMI_HDCP_RCVPORT_DATA5 0x0000014c
  225. #define REG_HDMI_HDCP_RCVPORT_DATA6 0x00000150
  226. #define REG_HDMI_HDCP_RCVPORT_DATA7 0x00000154
  227. #define REG_HDMI_HDCP_RCVPORT_DATA8 0x00000158
  228. #define REG_HDMI_HDCP_RCVPORT_DATA9 0x0000015c
  229. #define REG_HDMI_HDCP_RCVPORT_DATA10 0x00000160
  230. #define REG_HDMI_HDCP_RCVPORT_DATA11 0x00000164
  231. #define REG_HDMI_HDCP_RCVPORT_DATA12 0x00000168
  232. #define REG_HDMI_VENSPEC_INFO0 0x0000016c
  233. #define REG_HDMI_VENSPEC_INFO1 0x00000170
  234. #define REG_HDMI_VENSPEC_INFO2 0x00000174
  235. #define REG_HDMI_VENSPEC_INFO3 0x00000178
  236. #define REG_HDMI_VENSPEC_INFO4 0x0000017c
  237. #define REG_HDMI_VENSPEC_INFO5 0x00000180
  238. #define REG_HDMI_VENSPEC_INFO6 0x00000184
  239. #define REG_HDMI_AUDIO_CFG 0x000001d0
  240. #define HDMI_AUDIO_CFG_ENGINE_ENABLE 0x00000001
  241. #define HDMI_AUDIO_CFG_FIFO_WATERMARK__MASK 0x000000f0
  242. #define HDMI_AUDIO_CFG_FIFO_WATERMARK__SHIFT 4
  243. static inline uint32_t HDMI_AUDIO_CFG_FIFO_WATERMARK(uint32_t val)
  244. {
  245. return ((val) << HDMI_AUDIO_CFG_FIFO_WATERMARK__SHIFT) & HDMI_AUDIO_CFG_FIFO_WATERMARK__MASK;
  246. }
  247. #define REG_HDMI_USEC_REFTIMER 0x00000208
  248. #define REG_HDMI_DDC_CTRL 0x0000020c
  249. #define HDMI_DDC_CTRL_GO 0x00000001
  250. #define HDMI_DDC_CTRL_SOFT_RESET 0x00000002
  251. #define HDMI_DDC_CTRL_SEND_RESET 0x00000004
  252. #define HDMI_DDC_CTRL_SW_STATUS_RESET 0x00000008
  253. #define HDMI_DDC_CTRL_TRANSACTION_CNT__MASK 0x00300000
  254. #define HDMI_DDC_CTRL_TRANSACTION_CNT__SHIFT 20
  255. static inline uint32_t HDMI_DDC_CTRL_TRANSACTION_CNT(uint32_t val)
  256. {
  257. return ((val) << HDMI_DDC_CTRL_TRANSACTION_CNT__SHIFT) & HDMI_DDC_CTRL_TRANSACTION_CNT__MASK;
  258. }
  259. #define REG_HDMI_DDC_ARBITRATION 0x00000210
  260. #define HDMI_DDC_ARBITRATION_HW_ARBITRATION 0x00000010
  261. #define REG_HDMI_DDC_INT_CTRL 0x00000214
  262. #define HDMI_DDC_INT_CTRL_SW_DONE_INT 0x00000001
  263. #define HDMI_DDC_INT_CTRL_SW_DONE_ACK 0x00000002
  264. #define HDMI_DDC_INT_CTRL_SW_DONE_MASK 0x00000004
  265. #define REG_HDMI_DDC_SW_STATUS 0x00000218
  266. #define HDMI_DDC_SW_STATUS_NACK0 0x00001000
  267. #define HDMI_DDC_SW_STATUS_NACK1 0x00002000
  268. #define HDMI_DDC_SW_STATUS_NACK2 0x00004000
  269. #define HDMI_DDC_SW_STATUS_NACK3 0x00008000
  270. #define REG_HDMI_DDC_HW_STATUS 0x0000021c
  271. #define HDMI_DDC_HW_STATUS_DONE 0x00000008
  272. #define REG_HDMI_DDC_SPEED 0x00000220
  273. #define HDMI_DDC_SPEED_THRESHOLD__MASK 0x00000003
  274. #define HDMI_DDC_SPEED_THRESHOLD__SHIFT 0
  275. static inline uint32_t HDMI_DDC_SPEED_THRESHOLD(uint32_t val)
  276. {
  277. return ((val) << HDMI_DDC_SPEED_THRESHOLD__SHIFT) & HDMI_DDC_SPEED_THRESHOLD__MASK;
  278. }
  279. #define HDMI_DDC_SPEED_PRESCALE__MASK 0xffff0000
  280. #define HDMI_DDC_SPEED_PRESCALE__SHIFT 16
  281. static inline uint32_t HDMI_DDC_SPEED_PRESCALE(uint32_t val)
  282. {
  283. return ((val) << HDMI_DDC_SPEED_PRESCALE__SHIFT) & HDMI_DDC_SPEED_PRESCALE__MASK;
  284. }
  285. #define REG_HDMI_DDC_SETUP 0x00000224
  286. #define HDMI_DDC_SETUP_TIMEOUT__MASK 0xff000000
  287. #define HDMI_DDC_SETUP_TIMEOUT__SHIFT 24
  288. static inline uint32_t HDMI_DDC_SETUP_TIMEOUT(uint32_t val)
  289. {
  290. return ((val) << HDMI_DDC_SETUP_TIMEOUT__SHIFT) & HDMI_DDC_SETUP_TIMEOUT__MASK;
  291. }
  292. static inline uint32_t REG_HDMI_I2C_TRANSACTION(uint32_t i0) { return 0x00000228 + 0x4*i0; }
  293. static inline uint32_t REG_HDMI_I2C_TRANSACTION_REG(uint32_t i0) { return 0x00000228 + 0x4*i0; }
  294. #define HDMI_I2C_TRANSACTION_REG_RW__MASK 0x00000001
  295. #define HDMI_I2C_TRANSACTION_REG_RW__SHIFT 0
  296. static inline uint32_t HDMI_I2C_TRANSACTION_REG_RW(enum hdmi_ddc_read_write val)
  297. {
  298. return ((val) << HDMI_I2C_TRANSACTION_REG_RW__SHIFT) & HDMI_I2C_TRANSACTION_REG_RW__MASK;
  299. }
  300. #define HDMI_I2C_TRANSACTION_REG_STOP_ON_NACK 0x00000100
  301. #define HDMI_I2C_TRANSACTION_REG_START 0x00001000
  302. #define HDMI_I2C_TRANSACTION_REG_STOP 0x00002000
  303. #define HDMI_I2C_TRANSACTION_REG_CNT__MASK 0x00ff0000
  304. #define HDMI_I2C_TRANSACTION_REG_CNT__SHIFT 16
  305. static inline uint32_t HDMI_I2C_TRANSACTION_REG_CNT(uint32_t val)
  306. {
  307. return ((val) << HDMI_I2C_TRANSACTION_REG_CNT__SHIFT) & HDMI_I2C_TRANSACTION_REG_CNT__MASK;
  308. }
  309. #define REG_HDMI_DDC_DATA 0x00000238
  310. #define HDMI_DDC_DATA_DATA_RW__MASK 0x00000001
  311. #define HDMI_DDC_DATA_DATA_RW__SHIFT 0
  312. static inline uint32_t HDMI_DDC_DATA_DATA_RW(enum hdmi_ddc_read_write val)
  313. {
  314. return ((val) << HDMI_DDC_DATA_DATA_RW__SHIFT) & HDMI_DDC_DATA_DATA_RW__MASK;
  315. }
  316. #define HDMI_DDC_DATA_DATA__MASK 0x0000ff00
  317. #define HDMI_DDC_DATA_DATA__SHIFT 8
  318. static inline uint32_t HDMI_DDC_DATA_DATA(uint32_t val)
  319. {
  320. return ((val) << HDMI_DDC_DATA_DATA__SHIFT) & HDMI_DDC_DATA_DATA__MASK;
  321. }
  322. #define HDMI_DDC_DATA_INDEX__MASK 0x00ff0000
  323. #define HDMI_DDC_DATA_INDEX__SHIFT 16
  324. static inline uint32_t HDMI_DDC_DATA_INDEX(uint32_t val)
  325. {
  326. return ((val) << HDMI_DDC_DATA_INDEX__SHIFT) & HDMI_DDC_DATA_INDEX__MASK;
  327. }
  328. #define HDMI_DDC_DATA_INDEX_WRITE 0x80000000
  329. #define REG_HDMI_HDCP_SHA_CTRL 0x0000023c
  330. #define REG_HDMI_HDCP_SHA_STATUS 0x00000240
  331. #define HDMI_HDCP_SHA_STATUS_BLOCK_DONE 0x00000001
  332. #define HDMI_HDCP_SHA_STATUS_COMP_DONE 0x00000010
  333. #define REG_HDMI_HDCP_SHA_DATA 0x00000244
  334. #define HDMI_HDCP_SHA_DATA_DONE 0x00000001
  335. #define REG_HDMI_HPD_INT_STATUS 0x00000250
  336. #define HDMI_HPD_INT_STATUS_INT 0x00000001
  337. #define HDMI_HPD_INT_STATUS_CABLE_DETECTED 0x00000002
  338. #define REG_HDMI_HPD_INT_CTRL 0x00000254
  339. #define HDMI_HPD_INT_CTRL_INT_ACK 0x00000001
  340. #define HDMI_HPD_INT_CTRL_INT_CONNECT 0x00000002
  341. #define HDMI_HPD_INT_CTRL_INT_EN 0x00000004
  342. #define HDMI_HPD_INT_CTRL_RX_INT_ACK 0x00000010
  343. #define HDMI_HPD_INT_CTRL_RX_INT_EN 0x00000020
  344. #define HDMI_HPD_INT_CTRL_RCV_PLUGIN_DET_MASK 0x00000200
  345. #define REG_HDMI_HPD_CTRL 0x00000258
  346. #define HDMI_HPD_CTRL_TIMEOUT__MASK 0x00001fff
  347. #define HDMI_HPD_CTRL_TIMEOUT__SHIFT 0
  348. static inline uint32_t HDMI_HPD_CTRL_TIMEOUT(uint32_t val)
  349. {
  350. return ((val) << HDMI_HPD_CTRL_TIMEOUT__SHIFT) & HDMI_HPD_CTRL_TIMEOUT__MASK;
  351. }
  352. #define HDMI_HPD_CTRL_ENABLE 0x10000000
  353. #define REG_HDMI_DDC_REF 0x0000027c
  354. #define HDMI_DDC_REF_REFTIMER_ENABLE 0x00010000
  355. #define HDMI_DDC_REF_REFTIMER__MASK 0x0000ffff
  356. #define HDMI_DDC_REF_REFTIMER__SHIFT 0
  357. static inline uint32_t HDMI_DDC_REF_REFTIMER(uint32_t val)
  358. {
  359. return ((val) << HDMI_DDC_REF_REFTIMER__SHIFT) & HDMI_DDC_REF_REFTIMER__MASK;
  360. }
  361. #define REG_HDMI_HDCP_SW_UPPER_AKSV 0x00000284
  362. #define REG_HDMI_HDCP_SW_LOWER_AKSV 0x00000288
  363. #define REG_HDMI_CEC_CTRL 0x0000028c
  364. #define REG_HDMI_CEC_WR_DATA 0x00000290
  365. #define REG_HDMI_CEC_CEC_RETRANSMIT 0x00000294
  366. #define REG_HDMI_CEC_STATUS 0x00000298
  367. #define REG_HDMI_CEC_INT 0x0000029c
  368. #define REG_HDMI_CEC_ADDR 0x000002a0
  369. #define REG_HDMI_CEC_TIME 0x000002a4
  370. #define REG_HDMI_CEC_REFTIMER 0x000002a8
  371. #define REG_HDMI_CEC_RD_DATA 0x000002ac
  372. #define REG_HDMI_CEC_RD_FILTER 0x000002b0
  373. #define REG_HDMI_ACTIVE_HSYNC 0x000002b4
  374. #define HDMI_ACTIVE_HSYNC_START__MASK 0x00000fff
  375. #define HDMI_ACTIVE_HSYNC_START__SHIFT 0
  376. static inline uint32_t HDMI_ACTIVE_HSYNC_START(uint32_t val)
  377. {
  378. return ((val) << HDMI_ACTIVE_HSYNC_START__SHIFT) & HDMI_ACTIVE_HSYNC_START__MASK;
  379. }
  380. #define HDMI_ACTIVE_HSYNC_END__MASK 0x0fff0000
  381. #define HDMI_ACTIVE_HSYNC_END__SHIFT 16
  382. static inline uint32_t HDMI_ACTIVE_HSYNC_END(uint32_t val)
  383. {
  384. return ((val) << HDMI_ACTIVE_HSYNC_END__SHIFT) & HDMI_ACTIVE_HSYNC_END__MASK;
  385. }
  386. #define REG_HDMI_ACTIVE_VSYNC 0x000002b8
  387. #define HDMI_ACTIVE_VSYNC_START__MASK 0x00000fff
  388. #define HDMI_ACTIVE_VSYNC_START__SHIFT 0
  389. static inline uint32_t HDMI_ACTIVE_VSYNC_START(uint32_t val)
  390. {
  391. return ((val) << HDMI_ACTIVE_VSYNC_START__SHIFT) & HDMI_ACTIVE_VSYNC_START__MASK;
  392. }
  393. #define HDMI_ACTIVE_VSYNC_END__MASK 0x0fff0000
  394. #define HDMI_ACTIVE_VSYNC_END__SHIFT 16
  395. static inline uint32_t HDMI_ACTIVE_VSYNC_END(uint32_t val)
  396. {
  397. return ((val) << HDMI_ACTIVE_VSYNC_END__SHIFT) & HDMI_ACTIVE_VSYNC_END__MASK;
  398. }
  399. #define REG_HDMI_VSYNC_ACTIVE_F2 0x000002bc
  400. #define HDMI_VSYNC_ACTIVE_F2_START__MASK 0x00000fff
  401. #define HDMI_VSYNC_ACTIVE_F2_START__SHIFT 0
  402. static inline uint32_t HDMI_VSYNC_ACTIVE_F2_START(uint32_t val)
  403. {
  404. return ((val) << HDMI_VSYNC_ACTIVE_F2_START__SHIFT) & HDMI_VSYNC_ACTIVE_F2_START__MASK;
  405. }
  406. #define HDMI_VSYNC_ACTIVE_F2_END__MASK 0x0fff0000
  407. #define HDMI_VSYNC_ACTIVE_F2_END__SHIFT 16
  408. static inline uint32_t HDMI_VSYNC_ACTIVE_F2_END(uint32_t val)
  409. {
  410. return ((val) << HDMI_VSYNC_ACTIVE_F2_END__SHIFT) & HDMI_VSYNC_ACTIVE_F2_END__MASK;
  411. }
  412. #define REG_HDMI_TOTAL 0x000002c0
  413. #define HDMI_TOTAL_H_TOTAL__MASK 0x00000fff
  414. #define HDMI_TOTAL_H_TOTAL__SHIFT 0
  415. static inline uint32_t HDMI_TOTAL_H_TOTAL(uint32_t val)
  416. {
  417. return ((val) << HDMI_TOTAL_H_TOTAL__SHIFT) & HDMI_TOTAL_H_TOTAL__MASK;
  418. }
  419. #define HDMI_TOTAL_V_TOTAL__MASK 0x0fff0000
  420. #define HDMI_TOTAL_V_TOTAL__SHIFT 16
  421. static inline uint32_t HDMI_TOTAL_V_TOTAL(uint32_t val)
  422. {
  423. return ((val) << HDMI_TOTAL_V_TOTAL__SHIFT) & HDMI_TOTAL_V_TOTAL__MASK;
  424. }
  425. #define REG_HDMI_VSYNC_TOTAL_F2 0x000002c4
  426. #define HDMI_VSYNC_TOTAL_F2_V_TOTAL__MASK 0x00000fff
  427. #define HDMI_VSYNC_TOTAL_F2_V_TOTAL__SHIFT 0
  428. static inline uint32_t HDMI_VSYNC_TOTAL_F2_V_TOTAL(uint32_t val)
  429. {
  430. return ((val) << HDMI_VSYNC_TOTAL_F2_V_TOTAL__SHIFT) & HDMI_VSYNC_TOTAL_F2_V_TOTAL__MASK;
  431. }
  432. #define REG_HDMI_FRAME_CTRL 0x000002c8
  433. #define HDMI_FRAME_CTRL_RGB_MUX_SEL_BGR 0x00001000
  434. #define HDMI_FRAME_CTRL_VSYNC_LOW 0x10000000
  435. #define HDMI_FRAME_CTRL_HSYNC_LOW 0x20000000
  436. #define HDMI_FRAME_CTRL_INTERLACED_EN 0x80000000
  437. #define REG_HDMI_AUD_INT 0x000002cc
  438. #define HDMI_AUD_INT_AUD_FIFO_URUN_INT 0x00000001
  439. #define HDMI_AUD_INT_AUD_FIFO_URAN_MASK 0x00000002
  440. #define HDMI_AUD_INT_AUD_SAM_DROP_INT 0x00000004
  441. #define HDMI_AUD_INT_AUD_SAM_DROP_MASK 0x00000008
  442. #define REG_HDMI_PHY_CTRL 0x000002d4
  443. #define HDMI_PHY_CTRL_SW_RESET_PLL 0x00000001
  444. #define HDMI_PHY_CTRL_SW_RESET_PLL_LOW 0x00000002
  445. #define HDMI_PHY_CTRL_SW_RESET 0x00000004
  446. #define HDMI_PHY_CTRL_SW_RESET_LOW 0x00000008
  447. #define REG_HDMI_CEC_WR_RANGE 0x000002dc
  448. #define REG_HDMI_CEC_RD_RANGE 0x000002e0
  449. #define REG_HDMI_VERSION 0x000002e4
  450. #define REG_HDMI_CEC_COMPL_CTL 0x00000360
  451. #define REG_HDMI_CEC_RD_START_RANGE 0x00000364
  452. #define REG_HDMI_CEC_RD_TOTAL_RANGE 0x00000368
  453. #define REG_HDMI_CEC_RD_ERR_RESP_LO 0x0000036c
  454. #define REG_HDMI_CEC_WR_CHECK_CONFIG 0x00000370
  455. #define REG_HDMI_8x60_PHY_REG0 0x00000000
  456. #define HDMI_8x60_PHY_REG0_DESER_DEL_CTRL__MASK 0x0000001c
  457. #define HDMI_8x60_PHY_REG0_DESER_DEL_CTRL__SHIFT 2
  458. static inline uint32_t HDMI_8x60_PHY_REG0_DESER_DEL_CTRL(uint32_t val)
  459. {
  460. return ((val) << HDMI_8x60_PHY_REG0_DESER_DEL_CTRL__SHIFT) & HDMI_8x60_PHY_REG0_DESER_DEL_CTRL__MASK;
  461. }
  462. #define REG_HDMI_8x60_PHY_REG1 0x00000004
  463. #define HDMI_8x60_PHY_REG1_DTEST_MUX_SEL__MASK 0x000000f0
  464. #define HDMI_8x60_PHY_REG1_DTEST_MUX_SEL__SHIFT 4
  465. static inline uint32_t HDMI_8x60_PHY_REG1_DTEST_MUX_SEL(uint32_t val)
  466. {
  467. return ((val) << HDMI_8x60_PHY_REG1_DTEST_MUX_SEL__SHIFT) & HDMI_8x60_PHY_REG1_DTEST_MUX_SEL__MASK;
  468. }
  469. #define HDMI_8x60_PHY_REG1_OUTVOL_SWING_CTRL__MASK 0x0000000f
  470. #define HDMI_8x60_PHY_REG1_OUTVOL_SWING_CTRL__SHIFT 0
  471. static inline uint32_t HDMI_8x60_PHY_REG1_OUTVOL_SWING_CTRL(uint32_t val)
  472. {
  473. return ((val) << HDMI_8x60_PHY_REG1_OUTVOL_SWING_CTRL__SHIFT) & HDMI_8x60_PHY_REG1_OUTVOL_SWING_CTRL__MASK;
  474. }
  475. #define REG_HDMI_8x60_PHY_REG2 0x00000008
  476. #define HDMI_8x60_PHY_REG2_PD_DESER 0x00000001
  477. #define HDMI_8x60_PHY_REG2_PD_DRIVE_1 0x00000002
  478. #define HDMI_8x60_PHY_REG2_PD_DRIVE_2 0x00000004
  479. #define HDMI_8x60_PHY_REG2_PD_DRIVE_3 0x00000008
  480. #define HDMI_8x60_PHY_REG2_PD_DRIVE_4 0x00000010
  481. #define HDMI_8x60_PHY_REG2_PD_PLL 0x00000020
  482. #define HDMI_8x60_PHY_REG2_PD_PWRGEN 0x00000040
  483. #define HDMI_8x60_PHY_REG2_RCV_SENSE_EN 0x00000080
  484. #define REG_HDMI_8x60_PHY_REG3 0x0000000c
  485. #define HDMI_8x60_PHY_REG3_PLL_ENABLE 0x00000001
  486. #define REG_HDMI_8x60_PHY_REG4 0x00000010
  487. #define REG_HDMI_8x60_PHY_REG5 0x00000014
  488. #define REG_HDMI_8x60_PHY_REG6 0x00000018
  489. #define REG_HDMI_8x60_PHY_REG7 0x0000001c
  490. #define REG_HDMI_8x60_PHY_REG8 0x00000020
  491. #define REG_HDMI_8x60_PHY_REG9 0x00000024
  492. #define REG_HDMI_8x60_PHY_REG10 0x00000028
  493. #define REG_HDMI_8x60_PHY_REG11 0x0000002c
  494. #define REG_HDMI_8x60_PHY_REG12 0x00000030
  495. #define HDMI_8x60_PHY_REG12_RETIMING_EN 0x00000001
  496. #define HDMI_8x60_PHY_REG12_PLL_LOCK_DETECT_EN 0x00000002
  497. #define HDMI_8x60_PHY_REG12_FORCE_LOCK 0x00000010
  498. #define REG_HDMI_8960_PHY_REG0 0x00000000
  499. #define REG_HDMI_8960_PHY_REG1 0x00000004
  500. #define REG_HDMI_8960_PHY_REG2 0x00000008
  501. #define REG_HDMI_8960_PHY_REG3 0x0000000c
  502. #define REG_HDMI_8960_PHY_REG4 0x00000010
  503. #define REG_HDMI_8960_PHY_REG5 0x00000014
  504. #define REG_HDMI_8960_PHY_REG6 0x00000018
  505. #define REG_HDMI_8960_PHY_REG7 0x0000001c
  506. #define REG_HDMI_8960_PHY_REG8 0x00000020
  507. #define REG_HDMI_8960_PHY_REG9 0x00000024
  508. #define REG_HDMI_8960_PHY_REG10 0x00000028
  509. #define REG_HDMI_8960_PHY_REG11 0x0000002c
  510. #define REG_HDMI_8960_PHY_REG12 0x00000030
  511. #define HDMI_8960_PHY_REG12_SW_RESET 0x00000020
  512. #define HDMI_8960_PHY_REG12_PWRDN_B 0x00000080
  513. #define REG_HDMI_8960_PHY_REG_BIST_CFG 0x00000034
  514. #define REG_HDMI_8960_PHY_DEBUG_BUS_SEL 0x00000038
  515. #define REG_HDMI_8960_PHY_REG_MISC0 0x0000003c
  516. #define REG_HDMI_8960_PHY_REG13 0x00000040
  517. #define REG_HDMI_8960_PHY_REG14 0x00000044
  518. #define REG_HDMI_8960_PHY_REG15 0x00000048
  519. #define REG_HDMI_8960_PHY_PLL_REFCLK_CFG 0x00000000
  520. #define REG_HDMI_8960_PHY_PLL_CHRG_PUMP_CFG 0x00000004
  521. #define REG_HDMI_8960_PHY_PLL_LOOP_FLT_CFG0 0x00000008
  522. #define REG_HDMI_8960_PHY_PLL_LOOP_FLT_CFG1 0x0000000c
  523. #define REG_HDMI_8960_PHY_PLL_IDAC_ADJ_CFG 0x00000010
  524. #define REG_HDMI_8960_PHY_PLL_I_VI_KVCO_CFG 0x00000014
  525. #define REG_HDMI_8960_PHY_PLL_PWRDN_B 0x00000018
  526. #define HDMI_8960_PHY_PLL_PWRDN_B_PD_PLL 0x00000002
  527. #define HDMI_8960_PHY_PLL_PWRDN_B_PLL_PWRDN_B 0x00000008
  528. #define REG_HDMI_8960_PHY_PLL_SDM_CFG0 0x0000001c
  529. #define REG_HDMI_8960_PHY_PLL_SDM_CFG1 0x00000020
  530. #define REG_HDMI_8960_PHY_PLL_SDM_CFG2 0x00000024
  531. #define REG_HDMI_8960_PHY_PLL_SDM_CFG3 0x00000028
  532. #define REG_HDMI_8960_PHY_PLL_SDM_CFG4 0x0000002c
  533. #define REG_HDMI_8960_PHY_PLL_SSC_CFG0 0x00000030
  534. #define REG_HDMI_8960_PHY_PLL_SSC_CFG1 0x00000034
  535. #define REG_HDMI_8960_PHY_PLL_SSC_CFG2 0x00000038
  536. #define REG_HDMI_8960_PHY_PLL_SSC_CFG3 0x0000003c
  537. #define REG_HDMI_8960_PHY_PLL_LOCKDET_CFG0 0x00000040
  538. #define REG_HDMI_8960_PHY_PLL_LOCKDET_CFG1 0x00000044
  539. #define REG_HDMI_8960_PHY_PLL_LOCKDET_CFG2 0x00000048
  540. #define REG_HDMI_8960_PHY_PLL_VCOCAL_CFG0 0x0000004c
  541. #define REG_HDMI_8960_PHY_PLL_VCOCAL_CFG1 0x00000050
  542. #define REG_HDMI_8960_PHY_PLL_VCOCAL_CFG2 0x00000054
  543. #define REG_HDMI_8960_PHY_PLL_VCOCAL_CFG3 0x00000058
  544. #define REG_HDMI_8960_PHY_PLL_VCOCAL_CFG4 0x0000005c
  545. #define REG_HDMI_8960_PHY_PLL_VCOCAL_CFG5 0x00000060
  546. #define REG_HDMI_8960_PHY_PLL_VCOCAL_CFG6 0x00000064
  547. #define REG_HDMI_8960_PHY_PLL_VCOCAL_CFG7 0x00000068
  548. #define REG_HDMI_8960_PHY_PLL_DEBUG_SEL 0x0000006c
  549. #define REG_HDMI_8960_PHY_PLL_MISC0 0x00000070
  550. #define REG_HDMI_8960_PHY_PLL_MISC1 0x00000074
  551. #define REG_HDMI_8960_PHY_PLL_MISC2 0x00000078
  552. #define REG_HDMI_8960_PHY_PLL_MISC3 0x0000007c
  553. #define REG_HDMI_8960_PHY_PLL_MISC4 0x00000080
  554. #define REG_HDMI_8960_PHY_PLL_MISC5 0x00000084
  555. #define REG_HDMI_8960_PHY_PLL_MISC6 0x00000088
  556. #define REG_HDMI_8960_PHY_PLL_DEBUG_BUS0 0x0000008c
  557. #define REG_HDMI_8960_PHY_PLL_DEBUG_BUS1 0x00000090
  558. #define REG_HDMI_8960_PHY_PLL_DEBUG_BUS2 0x00000094
  559. #define REG_HDMI_8960_PHY_PLL_STATUS0 0x00000098
  560. #define HDMI_8960_PHY_PLL_STATUS0_PLL_LOCK 0x00000001
  561. #define REG_HDMI_8960_PHY_PLL_STATUS1 0x0000009c
  562. #define REG_HDMI_8x74_ANA_CFG0 0x00000000
  563. #define REG_HDMI_8x74_ANA_CFG1 0x00000004
  564. #define REG_HDMI_8x74_PD_CTRL0 0x00000010
  565. #define REG_HDMI_8x74_PD_CTRL1 0x00000014
  566. #define REG_HDMI_8x74_BIST_CFG0 0x00000034
  567. #define REG_HDMI_8x74_BIST_PATN0 0x0000003c
  568. #define REG_HDMI_8x74_BIST_PATN1 0x00000040
  569. #define REG_HDMI_8x74_BIST_PATN2 0x00000044
  570. #define REG_HDMI_8x74_BIST_PATN3 0x00000048
  571. #define REG_HDMI_28nm_PHY_PLL_REFCLK_CFG 0x00000000
  572. #define REG_HDMI_28nm_PHY_PLL_POSTDIV1_CFG 0x00000004
  573. #define REG_HDMI_28nm_PHY_PLL_CHGPUMP_CFG 0x00000008
  574. #define REG_HDMI_28nm_PHY_PLL_VCOLPF_CFG 0x0000000c
  575. #define REG_HDMI_28nm_PHY_PLL_VREG_CFG 0x00000010
  576. #define REG_HDMI_28nm_PHY_PLL_PWRGEN_CFG 0x00000014
  577. #define REG_HDMI_28nm_PHY_PLL_DMUX_CFG 0x00000018
  578. #define REG_HDMI_28nm_PHY_PLL_AMUX_CFG 0x0000001c
  579. #define REG_HDMI_28nm_PHY_PLL_GLB_CFG 0x00000020
  580. #define HDMI_28nm_PHY_PLL_GLB_CFG_PLL_PWRDN_B 0x00000001
  581. #define HDMI_28nm_PHY_PLL_GLB_CFG_PLL_LDO_PWRDN_B 0x00000002
  582. #define HDMI_28nm_PHY_PLL_GLB_CFG_PLL_PWRGEN_PWRDN_B 0x00000004
  583. #define HDMI_28nm_PHY_PLL_GLB_CFG_PLL_ENABLE 0x00000008
  584. #define REG_HDMI_28nm_PHY_PLL_POSTDIV2_CFG 0x00000024
  585. #define REG_HDMI_28nm_PHY_PLL_POSTDIV3_CFG 0x00000028
  586. #define REG_HDMI_28nm_PHY_PLL_LPFR_CFG 0x0000002c
  587. #define REG_HDMI_28nm_PHY_PLL_LPFC1_CFG 0x00000030
  588. #define REG_HDMI_28nm_PHY_PLL_LPFC2_CFG 0x00000034
  589. #define REG_HDMI_28nm_PHY_PLL_SDM_CFG0 0x00000038
  590. #define REG_HDMI_28nm_PHY_PLL_SDM_CFG1 0x0000003c
  591. #define REG_HDMI_28nm_PHY_PLL_SDM_CFG2 0x00000040
  592. #define REG_HDMI_28nm_PHY_PLL_SDM_CFG3 0x00000044
  593. #define REG_HDMI_28nm_PHY_PLL_SDM_CFG4 0x00000048
  594. #define REG_HDMI_28nm_PHY_PLL_SSC_CFG0 0x0000004c
  595. #define REG_HDMI_28nm_PHY_PLL_SSC_CFG1 0x00000050
  596. #define REG_HDMI_28nm_PHY_PLL_SSC_CFG2 0x00000054
  597. #define REG_HDMI_28nm_PHY_PLL_SSC_CFG3 0x00000058
  598. #define REG_HDMI_28nm_PHY_PLL_LKDET_CFG0 0x0000005c
  599. #define REG_HDMI_28nm_PHY_PLL_LKDET_CFG1 0x00000060
  600. #define REG_HDMI_28nm_PHY_PLL_LKDET_CFG2 0x00000064
  601. #define REG_HDMI_28nm_PHY_PLL_TEST_CFG 0x00000068
  602. #define HDMI_28nm_PHY_PLL_TEST_CFG_PLL_SW_RESET 0x00000001
  603. #define REG_HDMI_28nm_PHY_PLL_CAL_CFG0 0x0000006c
  604. #define REG_HDMI_28nm_PHY_PLL_CAL_CFG1 0x00000070
  605. #define REG_HDMI_28nm_PHY_PLL_CAL_CFG2 0x00000074
  606. #define REG_HDMI_28nm_PHY_PLL_CAL_CFG3 0x00000078
  607. #define REG_HDMI_28nm_PHY_PLL_CAL_CFG4 0x0000007c
  608. #define REG_HDMI_28nm_PHY_PLL_CAL_CFG5 0x00000080
  609. #define REG_HDMI_28nm_PHY_PLL_CAL_CFG6 0x00000084
  610. #define REG_HDMI_28nm_PHY_PLL_CAL_CFG7 0x00000088
  611. #define REG_HDMI_28nm_PHY_PLL_CAL_CFG8 0x0000008c
  612. #define REG_HDMI_28nm_PHY_PLL_CAL_CFG9 0x00000090
  613. #define REG_HDMI_28nm_PHY_PLL_CAL_CFG10 0x00000094
  614. #define REG_HDMI_28nm_PHY_PLL_CAL_CFG11 0x00000098
  615. #define REG_HDMI_28nm_PHY_PLL_EFUSE_CFG 0x0000009c
  616. #define REG_HDMI_28nm_PHY_PLL_DEBUG_BUS_SEL 0x000000a0
  617. #define REG_HDMI_8996_PHY_CFG 0x00000000
  618. #define REG_HDMI_8996_PHY_PD_CTL 0x00000004
  619. #define REG_HDMI_8996_PHY_MODE 0x00000008
  620. #define REG_HDMI_8996_PHY_MISR_CLEAR 0x0000000c
  621. #define REG_HDMI_8996_PHY_TX0_TX1_BIST_CFG0 0x00000010
  622. #define REG_HDMI_8996_PHY_TX0_TX1_BIST_CFG1 0x00000014
  623. #define REG_HDMI_8996_PHY_TX0_TX1_PRBS_SEED_BYTE0 0x00000018
  624. #define REG_HDMI_8996_PHY_TX0_TX1_PRBS_SEED_BYTE1 0x0000001c
  625. #define REG_HDMI_8996_PHY_TX0_TX1_BIST_PATTERN0 0x00000020
  626. #define REG_HDMI_8996_PHY_TX0_TX1_BIST_PATTERN1 0x00000024
  627. #define REG_HDMI_8996_PHY_TX2_TX3_BIST_CFG0 0x00000028
  628. #define REG_HDMI_8996_PHY_TX2_TX3_BIST_CFG1 0x0000002c
  629. #define REG_HDMI_8996_PHY_TX2_TX3_PRBS_SEED_BYTE0 0x00000030
  630. #define REG_HDMI_8996_PHY_TX2_TX3_PRBS_SEED_BYTE1 0x00000034
  631. #define REG_HDMI_8996_PHY_TX2_TX3_BIST_PATTERN0 0x00000038
  632. #define REG_HDMI_8996_PHY_TX2_TX3_BIST_PATTERN1 0x0000003c
  633. #define REG_HDMI_8996_PHY_DEBUG_BUS_SEL 0x00000040
  634. #define REG_HDMI_8996_PHY_TXCAL_CFG0 0x00000044
  635. #define REG_HDMI_8996_PHY_TXCAL_CFG1 0x00000048
  636. #define REG_HDMI_8996_PHY_TX0_TX1_LANE_CTL 0x0000004c
  637. #define REG_HDMI_8996_PHY_TX2_TX3_LANE_CTL 0x00000050
  638. #define REG_HDMI_8996_PHY_LANE_BIST_CONFIG 0x00000054
  639. #define REG_HDMI_8996_PHY_CLOCK 0x00000058
  640. #define REG_HDMI_8996_PHY_MISC1 0x0000005c
  641. #define REG_HDMI_8996_PHY_MISC2 0x00000060
  642. #define REG_HDMI_8996_PHY_TX0_TX1_BIST_STATUS0 0x00000064
  643. #define REG_HDMI_8996_PHY_TX0_TX1_BIST_STATUS1 0x00000068
  644. #define REG_HDMI_8996_PHY_TX0_TX1_BIST_STATUS2 0x0000006c
  645. #define REG_HDMI_8996_PHY_TX2_TX3_BIST_STATUS0 0x00000070
  646. #define REG_HDMI_8996_PHY_TX2_TX3_BIST_STATUS1 0x00000074
  647. #define REG_HDMI_8996_PHY_TX2_TX3_BIST_STATUS2 0x00000078
  648. #define REG_HDMI_8996_PHY_PRE_MISR_STATUS0 0x0000007c
  649. #define REG_HDMI_8996_PHY_PRE_MISR_STATUS1 0x00000080
  650. #define REG_HDMI_8996_PHY_PRE_MISR_STATUS2 0x00000084
  651. #define REG_HDMI_8996_PHY_PRE_MISR_STATUS3 0x00000088
  652. #define REG_HDMI_8996_PHY_POST_MISR_STATUS0 0x0000008c
  653. #define REG_HDMI_8996_PHY_POST_MISR_STATUS1 0x00000090
  654. #define REG_HDMI_8996_PHY_POST_MISR_STATUS2 0x00000094
  655. #define REG_HDMI_8996_PHY_POST_MISR_STATUS3 0x00000098
  656. #define REG_HDMI_8996_PHY_STATUS 0x0000009c
  657. #define REG_HDMI_8996_PHY_MISC3_STATUS 0x000000a0
  658. #define REG_HDMI_8996_PHY_MISC4_STATUS 0x000000a4
  659. #define REG_HDMI_8996_PHY_DEBUG_BUS0 0x000000a8
  660. #define REG_HDMI_8996_PHY_DEBUG_BUS1 0x000000ac
  661. #define REG_HDMI_8996_PHY_DEBUG_BUS2 0x000000b0
  662. #define REG_HDMI_8996_PHY_DEBUG_BUS3 0x000000b4
  663. #define REG_HDMI_8996_PHY_PHY_REVISION_ID0 0x000000b8
  664. #define REG_HDMI_8996_PHY_PHY_REVISION_ID1 0x000000bc
  665. #define REG_HDMI_8996_PHY_PHY_REVISION_ID2 0x000000c0
  666. #define REG_HDMI_8996_PHY_PHY_REVISION_ID3 0x000000c4
  667. #define REG_HDMI_PHY_QSERDES_COM_ATB_SEL1 0x00000000
  668. #define REG_HDMI_PHY_QSERDES_COM_ATB_SEL2 0x00000004
  669. #define REG_HDMI_PHY_QSERDES_COM_FREQ_UPDATE 0x00000008
  670. #define REG_HDMI_PHY_QSERDES_COM_BG_TIMER 0x0000000c
  671. #define REG_HDMI_PHY_QSERDES_COM_SSC_EN_CENTER 0x00000010
  672. #define REG_HDMI_PHY_QSERDES_COM_SSC_ADJ_PER1 0x00000014
  673. #define REG_HDMI_PHY_QSERDES_COM_SSC_ADJ_PER2 0x00000018
  674. #define REG_HDMI_PHY_QSERDES_COM_SSC_PER1 0x0000001c
  675. #define REG_HDMI_PHY_QSERDES_COM_SSC_PER2 0x00000020
  676. #define REG_HDMI_PHY_QSERDES_COM_SSC_STEP_SIZE1 0x00000024
  677. #define REG_HDMI_PHY_QSERDES_COM_SSC_STEP_SIZE2 0x00000028
  678. #define REG_HDMI_PHY_QSERDES_COM_POST_DIV 0x0000002c
  679. #define REG_HDMI_PHY_QSERDES_COM_POST_DIV_MUX 0x00000030
  680. #define REG_HDMI_PHY_QSERDES_COM_BIAS_EN_CLKBUFLR_EN 0x00000034
  681. #define REG_HDMI_PHY_QSERDES_COM_CLK_ENABLE1 0x00000038
  682. #define REG_HDMI_PHY_QSERDES_COM_SYS_CLK_CTRL 0x0000003c
  683. #define REG_HDMI_PHY_QSERDES_COM_SYSCLK_BUF_ENABLE 0x00000040
  684. #define REG_HDMI_PHY_QSERDES_COM_PLL_EN 0x00000044
  685. #define REG_HDMI_PHY_QSERDES_COM_PLL_IVCO 0x00000048
  686. #define REG_HDMI_PHY_QSERDES_COM_LOCK_CMP1_MODE0 0x0000004c
  687. #define REG_HDMI_PHY_QSERDES_COM_LOCK_CMP2_MODE0 0x00000050
  688. #define REG_HDMI_PHY_QSERDES_COM_LOCK_CMP3_MODE0 0x00000054
  689. #define REG_HDMI_PHY_QSERDES_COM_LOCK_CMP1_MODE1 0x00000058
  690. #define REG_HDMI_PHY_QSERDES_COM_LOCK_CMP2_MODE1 0x0000005c
  691. #define REG_HDMI_PHY_QSERDES_COM_LOCK_CMP3_MODE1 0x00000060
  692. #define REG_HDMI_PHY_QSERDES_COM_LOCK_CMP1_MODE2 0x00000064
  693. #define REG_HDMI_PHY_QSERDES_COM_CMN_RSVD0 0x00000064
  694. #define REG_HDMI_PHY_QSERDES_COM_LOCK_CMP2_MODE2 0x00000068
  695. #define REG_HDMI_PHY_QSERDES_COM_EP_CLOCK_DETECT_CTRL 0x00000068
  696. #define REG_HDMI_PHY_QSERDES_COM_LOCK_CMP3_MODE2 0x0000006c
  697. #define REG_HDMI_PHY_QSERDES_COM_SYSCLK_DET_COMP_STATUS 0x0000006c
  698. #define REG_HDMI_PHY_QSERDES_COM_BG_TRIM 0x00000070
  699. #define REG_HDMI_PHY_QSERDES_COM_CLK_EP_DIV 0x00000074
  700. #define REG_HDMI_PHY_QSERDES_COM_CP_CTRL_MODE0 0x00000078
  701. #define REG_HDMI_PHY_QSERDES_COM_CP_CTRL_MODE1 0x0000007c
  702. #define REG_HDMI_PHY_QSERDES_COM_CP_CTRL_MODE2 0x00000080
  703. #define REG_HDMI_PHY_QSERDES_COM_CMN_RSVD1 0x00000080
  704. #define REG_HDMI_PHY_QSERDES_COM_PLL_RCTRL_MODE0 0x00000084
  705. #define REG_HDMI_PHY_QSERDES_COM_PLL_RCTRL_MODE1 0x00000088
  706. #define REG_HDMI_PHY_QSERDES_COM_PLL_RCTRL_MODE2 0x0000008c
  707. #define REG_HDMI_PHY_QSERDES_COM_CMN_RSVD2 0x0000008c
  708. #define REG_HDMI_PHY_QSERDES_COM_PLL_CCTRL_MODE0 0x00000090
  709. #define REG_HDMI_PHY_QSERDES_COM_PLL_CCTRL_MODE1 0x00000094
  710. #define REG_HDMI_PHY_QSERDES_COM_PLL_CCTRL_MODE2 0x00000098
  711. #define REG_HDMI_PHY_QSERDES_COM_CMN_RSVD3 0x00000098
  712. #define REG_HDMI_PHY_QSERDES_COM_PLL_CNTRL 0x0000009c
  713. #define REG_HDMI_PHY_QSERDES_COM_PHASE_SEL_CTRL 0x000000a0
  714. #define REG_HDMI_PHY_QSERDES_COM_PHASE_SEL_DC 0x000000a4
  715. #define REG_HDMI_PHY_QSERDES_COM_CORE_CLK_IN_SYNC_SEL 0x000000a8
  716. #define REG_HDMI_PHY_QSERDES_COM_BIAS_EN_CTRL_BY_PSM 0x000000a8
  717. #define REG_HDMI_PHY_QSERDES_COM_SYSCLK_EN_SEL 0x000000ac
  718. #define REG_HDMI_PHY_QSERDES_COM_CML_SYSCLK_SEL 0x000000b0
  719. #define REG_HDMI_PHY_QSERDES_COM_RESETSM_CNTRL 0x000000b4
  720. #define REG_HDMI_PHY_QSERDES_COM_RESETSM_CNTRL2 0x000000b8
  721. #define REG_HDMI_PHY_QSERDES_COM_RESTRIM_CTRL 0x000000bc
  722. #define REG_HDMI_PHY_QSERDES_COM_RESTRIM_CTRL2 0x000000c0
  723. #define REG_HDMI_PHY_QSERDES_COM_RESCODE_DIV_NUM 0x000000c4
  724. #define REG_HDMI_PHY_QSERDES_COM_LOCK_CMP_EN 0x000000c8
  725. #define REG_HDMI_PHY_QSERDES_COM_LOCK_CMP_CFG 0x000000cc
  726. #define REG_HDMI_PHY_QSERDES_COM_DEC_START_MODE0 0x000000d0
  727. #define REG_HDMI_PHY_QSERDES_COM_DEC_START_MODE1 0x000000d4
  728. #define REG_HDMI_PHY_QSERDES_COM_DEC_START_MODE2 0x000000d8
  729. #define REG_HDMI_PHY_QSERDES_COM_VCOCAL_DEADMAN_CTRL 0x000000d8
  730. #define REG_HDMI_PHY_QSERDES_COM_DIV_FRAC_START1_MODE0 0x000000dc
  731. #define REG_HDMI_PHY_QSERDES_COM_DIV_FRAC_START2_MODE0 0x000000e0
  732. #define REG_HDMI_PHY_QSERDES_COM_DIV_FRAC_START3_MODE0 0x000000e4
  733. #define REG_HDMI_PHY_QSERDES_COM_DIV_FRAC_START1_MODE1 0x000000e8
  734. #define REG_HDMI_PHY_QSERDES_COM_DIV_FRAC_START2_MODE1 0x000000ec
  735. #define REG_HDMI_PHY_QSERDES_COM_DIV_FRAC_START3_MODE1 0x000000f0
  736. #define REG_HDMI_PHY_QSERDES_COM_DIV_FRAC_START1_MODE2 0x000000f4
  737. #define REG_HDMI_PHY_QSERDES_COM_VCO_TUNE_MINVAL1 0x000000f4
  738. #define REG_HDMI_PHY_QSERDES_COM_DIV_FRAC_START2_MODE2 0x000000f8
  739. #define REG_HDMI_PHY_QSERDES_COM_VCO_TUNE_MINVAL2 0x000000f8
  740. #define REG_HDMI_PHY_QSERDES_COM_DIV_FRAC_START3_MODE2 0x000000fc
  741. #define REG_HDMI_PHY_QSERDES_COM_CMN_RSVD4 0x000000fc
  742. #define REG_HDMI_PHY_QSERDES_COM_INTEGLOOP_INITVAL 0x00000100
  743. #define REG_HDMI_PHY_QSERDES_COM_INTEGLOOP_EN 0x00000104
  744. #define REG_HDMI_PHY_QSERDES_COM_INTEGLOOP_GAIN0_MODE0 0x00000108
  745. #define REG_HDMI_PHY_QSERDES_COM_INTEGLOOP_GAIN1_MODE0 0x0000010c
  746. #define REG_HDMI_PHY_QSERDES_COM_INTEGLOOP_GAIN0_MODE1 0x00000110
  747. #define REG_HDMI_PHY_QSERDES_COM_INTEGLOOP_GAIN1_MODE1 0x00000114
  748. #define REG_HDMI_PHY_QSERDES_COM_INTEGLOOP_GAIN0_MODE2 0x00000118
  749. #define REG_HDMI_PHY_QSERDES_COM_VCO_TUNE_MAXVAL1 0x00000118
  750. #define REG_HDMI_PHY_QSERDES_COM_INTEGLOOP_GAIN1_MODE2 0x0000011c
  751. #define REG_HDMI_PHY_QSERDES_COM_VCO_TUNE_MAXVAL2 0x0000011c
  752. #define REG_HDMI_PHY_QSERDES_COM_RES_TRIM_CONTROL2 0x00000120
  753. #define REG_HDMI_PHY_QSERDES_COM_VCO_TUNE_CTRL 0x00000124
  754. #define REG_HDMI_PHY_QSERDES_COM_VCO_TUNE_MAP 0x00000128
  755. #define REG_HDMI_PHY_QSERDES_COM_VCO_TUNE1_MODE0 0x0000012c
  756. #define REG_HDMI_PHY_QSERDES_COM_VCO_TUNE2_MODE0 0x00000130
  757. #define REG_HDMI_PHY_QSERDES_COM_VCO_TUNE1_MODE1 0x00000134
  758. #define REG_HDMI_PHY_QSERDES_COM_VCO_TUNE2_MODE1 0x00000138
  759. #define REG_HDMI_PHY_QSERDES_COM_VCO_TUNE1_MODE2 0x0000013c
  760. #define REG_HDMI_PHY_QSERDES_COM_VCO_TUNE_INITVAL1 0x0000013c
  761. #define REG_HDMI_PHY_QSERDES_COM_VCO_TUNE2_MODE2 0x00000140
  762. #define REG_HDMI_PHY_QSERDES_COM_VCO_TUNE_INITVAL2 0x00000140
  763. #define REG_HDMI_PHY_QSERDES_COM_VCO_TUNE_TIMER1 0x00000144
  764. #define REG_HDMI_PHY_QSERDES_COM_VCO_TUNE_TIMER2 0x00000148
  765. #define REG_HDMI_PHY_QSERDES_COM_SAR 0x0000014c
  766. #define REG_HDMI_PHY_QSERDES_COM_SAR_CLK 0x00000150
  767. #define REG_HDMI_PHY_QSERDES_COM_SAR_CODE_OUT_STATUS 0x00000154
  768. #define REG_HDMI_PHY_QSERDES_COM_SAR_CODE_READY_STATUS 0x00000158
  769. #define REG_HDMI_PHY_QSERDES_COM_CMN_STATUS 0x0000015c
  770. #define REG_HDMI_PHY_QSERDES_COM_RESET_SM_STATUS 0x00000160
  771. #define REG_HDMI_PHY_QSERDES_COM_RESTRIM_CODE_STATUS 0x00000164
  772. #define REG_HDMI_PHY_QSERDES_COM_PLLCAL_CODE1_STATUS 0x00000168
  773. #define REG_HDMI_PHY_QSERDES_COM_PLLCAL_CODE2_STATUS 0x0000016c
  774. #define REG_HDMI_PHY_QSERDES_COM_BG_CTRL 0x00000170
  775. #define REG_HDMI_PHY_QSERDES_COM_CLK_SELECT 0x00000174
  776. #define REG_HDMI_PHY_QSERDES_COM_HSCLK_SEL 0x00000178
  777. #define REG_HDMI_PHY_QSERDES_COM_INTEGLOOP_BINCODE_STATUS 0x0000017c
  778. #define REG_HDMI_PHY_QSERDES_COM_PLL_ANALOG 0x00000180
  779. #define REG_HDMI_PHY_QSERDES_COM_CORECLK_DIV 0x00000184
  780. #define REG_HDMI_PHY_QSERDES_COM_SW_RESET 0x00000188
  781. #define REG_HDMI_PHY_QSERDES_COM_CORE_CLK_EN 0x0000018c
  782. #define REG_HDMI_PHY_QSERDES_COM_C_READY_STATUS 0x00000190
  783. #define REG_HDMI_PHY_QSERDES_COM_CMN_CONFIG 0x00000194
  784. #define REG_HDMI_PHY_QSERDES_COM_CMN_RATE_OVERRIDE 0x00000198
  785. #define REG_HDMI_PHY_QSERDES_COM_SVS_MODE_CLK_SEL 0x0000019c
  786. #define REG_HDMI_PHY_QSERDES_COM_DEBUG_BUS0 0x000001a0
  787. #define REG_HDMI_PHY_QSERDES_COM_DEBUG_BUS1 0x000001a4
  788. #define REG_HDMI_PHY_QSERDES_COM_DEBUG_BUS2 0x000001a8
  789. #define REG_HDMI_PHY_QSERDES_COM_DEBUG_BUS3 0x000001ac
  790. #define REG_HDMI_PHY_QSERDES_COM_DEBUG_BUS_SEL 0x000001b0
  791. #define REG_HDMI_PHY_QSERDES_COM_CMN_MISC1 0x000001b4
  792. #define REG_HDMI_PHY_QSERDES_COM_CMN_MISC2 0x000001b8
  793. #define REG_HDMI_PHY_QSERDES_COM_CORECLK_DIV_MODE1 0x000001bc
  794. #define REG_HDMI_PHY_QSERDES_COM_CORECLK_DIV_MODE2 0x000001c0
  795. #define REG_HDMI_PHY_QSERDES_COM_CMN_RSVD5 0x000001c4
  796. #define REG_HDMI_PHY_QSERDES_TX_LX_BIST_MODE_LANENO 0x00000000
  797. #define REG_HDMI_PHY_QSERDES_TX_LX_BIST_INVERT 0x00000004
  798. #define REG_HDMI_PHY_QSERDES_TX_LX_CLKBUF_ENABLE 0x00000008
  799. #define REG_HDMI_PHY_QSERDES_TX_LX_CMN_CONTROL_ONE 0x0000000c
  800. #define REG_HDMI_PHY_QSERDES_TX_LX_CMN_CONTROL_TWO 0x00000010
  801. #define REG_HDMI_PHY_QSERDES_TX_LX_CMN_CONTROL_THREE 0x00000014
  802. #define REG_HDMI_PHY_QSERDES_TX_LX_TX_EMP_POST1_LVL 0x00000018
  803. #define REG_HDMI_PHY_QSERDES_TX_LX_TX_POST2_EMPH 0x0000001c
  804. #define REG_HDMI_PHY_QSERDES_TX_LX_TX_BOOST_LVL_UP_DN 0x00000020
  805. #define REG_HDMI_PHY_QSERDES_TX_LX_HP_PD_ENABLES 0x00000024
  806. #define REG_HDMI_PHY_QSERDES_TX_LX_TX_IDLE_LVL_LARGE_AMP 0x00000028
  807. #define REG_HDMI_PHY_QSERDES_TX_LX_TX_DRV_LVL 0x0000002c
  808. #define REG_HDMI_PHY_QSERDES_TX_LX_TX_DRV_LVL_OFFSET 0x00000030
  809. #define REG_HDMI_PHY_QSERDES_TX_LX_RESET_TSYNC_EN 0x00000034
  810. #define REG_HDMI_PHY_QSERDES_TX_LX_PRE_STALL_LDO_BOOST_EN 0x00000038
  811. #define REG_HDMI_PHY_QSERDES_TX_LX_TX_BAND 0x0000003c
  812. #define REG_HDMI_PHY_QSERDES_TX_LX_SLEW_CNTL 0x00000040
  813. #define REG_HDMI_PHY_QSERDES_TX_LX_INTERFACE_SELECT 0x00000044
  814. #define REG_HDMI_PHY_QSERDES_TX_LX_LPB_EN 0x00000048
  815. #define REG_HDMI_PHY_QSERDES_TX_LX_RES_CODE_LANE_TX 0x0000004c
  816. #define REG_HDMI_PHY_QSERDES_TX_LX_RES_CODE_LANE_RX 0x00000050
  817. #define REG_HDMI_PHY_QSERDES_TX_LX_RES_CODE_LANE_OFFSET 0x00000054
  818. #define REG_HDMI_PHY_QSERDES_TX_LX_PERL_LENGTH1 0x00000058
  819. #define REG_HDMI_PHY_QSERDES_TX_LX_PERL_LENGTH2 0x0000005c
  820. #define REG_HDMI_PHY_QSERDES_TX_LX_SERDES_BYP_EN_OUT 0x00000060
  821. #define REG_HDMI_PHY_QSERDES_TX_LX_DEBUG_BUS_SEL 0x00000064
  822. #define REG_HDMI_PHY_QSERDES_TX_LX_HIGHZ_TRANSCEIVEREN_BIAS_DRVR_EN 0x00000068
  823. #define REG_HDMI_PHY_QSERDES_TX_LX_TX_POL_INV 0x0000006c
  824. #define REG_HDMI_PHY_QSERDES_TX_LX_PARRATE_REC_DETECT_IDLE_EN 0x00000070
  825. #define REG_HDMI_PHY_QSERDES_TX_LX_BIST_PATTERN1 0x00000074
  826. #define REG_HDMI_PHY_QSERDES_TX_LX_BIST_PATTERN2 0x00000078
  827. #define REG_HDMI_PHY_QSERDES_TX_LX_BIST_PATTERN3 0x0000007c
  828. #define REG_HDMI_PHY_QSERDES_TX_LX_BIST_PATTERN4 0x00000080
  829. #define REG_HDMI_PHY_QSERDES_TX_LX_BIST_PATTERN5 0x00000084
  830. #define REG_HDMI_PHY_QSERDES_TX_LX_BIST_PATTERN6 0x00000088
  831. #define REG_HDMI_PHY_QSERDES_TX_LX_BIST_PATTERN7 0x0000008c
  832. #define REG_HDMI_PHY_QSERDES_TX_LX_BIST_PATTERN8 0x00000090
  833. #define REG_HDMI_PHY_QSERDES_TX_LX_LANE_MODE 0x00000094
  834. #define REG_HDMI_PHY_QSERDES_TX_LX_IDAC_CAL_LANE_MODE 0x00000098
  835. #define REG_HDMI_PHY_QSERDES_TX_LX_IDAC_CAL_LANE_MODE_CONFIGURATION 0x0000009c
  836. #define REG_HDMI_PHY_QSERDES_TX_LX_ATB_SEL1 0x000000a0
  837. #define REG_HDMI_PHY_QSERDES_TX_LX_ATB_SEL2 0x000000a4
  838. #define REG_HDMI_PHY_QSERDES_TX_LX_RCV_DETECT_LVL 0x000000a8
  839. #define REG_HDMI_PHY_QSERDES_TX_LX_RCV_DETECT_LVL_2 0x000000ac
  840. #define REG_HDMI_PHY_QSERDES_TX_LX_PRBS_SEED1 0x000000b0
  841. #define REG_HDMI_PHY_QSERDES_TX_LX_PRBS_SEED2 0x000000b4
  842. #define REG_HDMI_PHY_QSERDES_TX_LX_PRBS_SEED3 0x000000b8
  843. #define REG_HDMI_PHY_QSERDES_TX_LX_PRBS_SEED4 0x000000bc
  844. #define REG_HDMI_PHY_QSERDES_TX_LX_RESET_GEN 0x000000c0
  845. #define REG_HDMI_PHY_QSERDES_TX_LX_RESET_GEN_MUXES 0x000000c4
  846. #define REG_HDMI_PHY_QSERDES_TX_LX_TRAN_DRVR_EMP_EN 0x000000c8
  847. #define REG_HDMI_PHY_QSERDES_TX_LX_TX_INTERFACE_MODE 0x000000cc
  848. #define REG_HDMI_PHY_QSERDES_TX_LX_PWM_CTRL 0x000000d0
  849. #define REG_HDMI_PHY_QSERDES_TX_LX_PWM_ENCODED_OR_DATA 0x000000d4
  850. #define REG_HDMI_PHY_QSERDES_TX_LX_PWM_GEAR_1_DIVIDER_BAND2 0x000000d8
  851. #define REG_HDMI_PHY_QSERDES_TX_LX_PWM_GEAR_2_DIVIDER_BAND2 0x000000dc
  852. #define REG_HDMI_PHY_QSERDES_TX_LX_PWM_GEAR_3_DIVIDER_BAND2 0x000000e0
  853. #define REG_HDMI_PHY_QSERDES_TX_LX_PWM_GEAR_4_DIVIDER_BAND2 0x000000e4
  854. #define REG_HDMI_PHY_QSERDES_TX_LX_PWM_GEAR_1_DIVIDER_BAND0_1 0x000000e8
  855. #define REG_HDMI_PHY_QSERDES_TX_LX_PWM_GEAR_2_DIVIDER_BAND0_1 0x000000ec
  856. #define REG_HDMI_PHY_QSERDES_TX_LX_PWM_GEAR_3_DIVIDER_BAND0_1 0x000000f0
  857. #define REG_HDMI_PHY_QSERDES_TX_LX_PWM_GEAR_4_DIVIDER_BAND0_1 0x000000f4
  858. #define REG_HDMI_PHY_QSERDES_TX_LX_VMODE_CTRL1 0x000000f8
  859. #define REG_HDMI_PHY_QSERDES_TX_LX_VMODE_CTRL2 0x000000fc
  860. #define REG_HDMI_PHY_QSERDES_TX_LX_TX_ALOG_INTF_OBSV_CNTL 0x00000100
  861. #define REG_HDMI_PHY_QSERDES_TX_LX_BIST_STATUS 0x00000104
  862. #define REG_HDMI_PHY_QSERDES_TX_LX_BIST_ERROR_COUNT1 0x00000108
  863. #define REG_HDMI_PHY_QSERDES_TX_LX_BIST_ERROR_COUNT2 0x0000010c
  864. #define REG_HDMI_PHY_QSERDES_TX_LX_TX_ALOG_INTF_OBSV 0x00000110
  865. #endif /* HDMI_XML */