hdmi.xml.h 46 KB

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