tc358743_regs.h 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681
  1. /*
  2. * tc358743 - Toshiba HDMI to CSI-2 bridge - register names and bit masks
  3. *
  4. * Copyright 2015 Cisco Systems, Inc. and/or its affiliates. All rights
  5. * reserved.
  6. *
  7. * This program is free software; you may redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; version 2 of the License.
  10. *
  11. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  12. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  13. * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  14. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
  15. * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
  16. * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  17. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  18. * SOFTWARE.
  19. *
  20. */
  21. /*
  22. * References (c = chapter, p = page):
  23. * REF_01 - Toshiba, TC358743XBG (H2C), Functional Specification, Rev 0.60
  24. */
  25. /* Bit masks has prefix 'MASK_' and options after '_'. */
  26. #ifndef __TC358743_REGS_H
  27. #define __TC358743_REGS_H
  28. #define CHIPID 0x0000
  29. #define MASK_CHIPID 0xff00
  30. #define MASK_REVID 0x00ff
  31. #define SYSCTL 0x0002
  32. #define MASK_IRRST 0x0800
  33. #define MASK_CECRST 0x0400
  34. #define MASK_CTXRST 0x0200
  35. #define MASK_HDMIRST 0x0100
  36. #define MASK_SLEEP 0x0001
  37. #define CONFCTL 0x0004
  38. #define MASK_PWRISO 0x8000
  39. #define MASK_ACLKOPT 0x1000
  40. #define MASK_AUDCHNUM 0x0c00
  41. #define MASK_AUDCHNUM_8 0x0000
  42. #define MASK_AUDCHNUM_6 0x0400
  43. #define MASK_AUDCHNUM_4 0x0800
  44. #define MASK_AUDCHNUM_2 0x0c00
  45. #define MASK_AUDCHSEL 0x0200
  46. #define MASK_I2SDLYOPT 0x0100
  47. #define MASK_YCBCRFMT 0x00c0
  48. #define MASK_YCBCRFMT_444 0x0000
  49. #define MASK_YCBCRFMT_422_12_BIT 0x0040
  50. #define MASK_YCBCRFMT_COLORBAR 0x0080
  51. #define MASK_YCBCRFMT_422_8_BIT 0x00c0
  52. #define MASK_INFRMEN 0x0020
  53. #define MASK_AUDOUTSEL 0x0018
  54. #define MASK_AUDOUTSEL_CSI 0x0000
  55. #define MASK_AUDOUTSEL_I2S 0x0010
  56. #define MASK_AUDOUTSEL_TDM 0x0018
  57. #define MASK_AUTOINDEX 0x0004
  58. #define MASK_ABUFEN 0x0002
  59. #define MASK_VBUFEN 0x0001
  60. #define FIFOCTL 0x0006
  61. #define INTSTATUS 0x0014
  62. #define MASK_AMUTE_INT 0x0400
  63. #define MASK_HDMI_INT 0x0200
  64. #define MASK_CSI_INT 0x0100
  65. #define MASK_SYS_INT 0x0020
  66. #define MASK_CEC_EINT 0x0010
  67. #define MASK_CEC_TINT 0x0008
  68. #define MASK_CEC_RINT 0x0004
  69. #define MASK_IR_EINT 0x0002
  70. #define MASK_IR_DINT 0x0001
  71. #define INTMASK 0x0016
  72. #define MASK_AMUTE_MSK 0x0400
  73. #define MASK_HDMI_MSK 0x0200
  74. #define MASK_CSI_MSK 0x0100
  75. #define MASK_SYS_MSK 0x0020
  76. #define MASK_CEC_EMSK 0x0010
  77. #define MASK_CEC_TMSK 0x0008
  78. #define MASK_CEC_RMSK 0x0004
  79. #define MASK_IR_EMSK 0x0002
  80. #define MASK_IR_DMSK 0x0001
  81. #define INTFLAG 0x0018
  82. #define INTSYSSTATUS 0x001A
  83. #define PLLCTL0 0x0020
  84. #define MASK_PLL_PRD 0xf000
  85. #define SET_PLL_PRD(prd) ((((prd) - 1) << 12) &\
  86. MASK_PLL_PRD)
  87. #define MASK_PLL_FBD 0x01ff
  88. #define SET_PLL_FBD(fbd) (((fbd) - 1) & MASK_PLL_FBD)
  89. #define PLLCTL1 0x0022
  90. #define MASK_PLL_FRS 0x0c00
  91. #define SET_PLL_FRS(frs) (((frs) << 10) & MASK_PLL_FRS)
  92. #define MASK_PLL_LBWS 0x0300
  93. #define MASK_LFBREN 0x0040
  94. #define MASK_BYPCKEN 0x0020
  95. #define MASK_CKEN 0x0010
  96. #define MASK_RESETB 0x0002
  97. #define MASK_PLL_EN 0x0001
  98. #define CLW_CNTRL 0x0140
  99. #define MASK_CLW_LANEDISABLE 0x0001
  100. #define D0W_CNTRL 0x0144
  101. #define MASK_D0W_LANEDISABLE 0x0001
  102. #define D1W_CNTRL 0x0148
  103. #define MASK_D1W_LANEDISABLE 0x0001
  104. #define D2W_CNTRL 0x014C
  105. #define MASK_D2W_LANEDISABLE 0x0001
  106. #define D3W_CNTRL 0x0150
  107. #define MASK_D3W_LANEDISABLE 0x0001
  108. #define STARTCNTRL 0x0204
  109. #define MASK_START 0x00000001
  110. #define LINEINITCNT 0x0210
  111. #define LPTXTIMECNT 0x0214
  112. #define TCLK_HEADERCNT 0x0218
  113. #define TCLK_TRAILCNT 0x021C
  114. #define THS_HEADERCNT 0x0220
  115. #define TWAKEUP 0x0224
  116. #define TCLK_POSTCNT 0x0228
  117. #define THS_TRAILCNT 0x022C
  118. #define HSTXVREGCNT 0x0230
  119. #define HSTXVREGEN 0x0234
  120. #define MASK_D3M_HSTXVREGEN 0x0010
  121. #define MASK_D2M_HSTXVREGEN 0x0008
  122. #define MASK_D1M_HSTXVREGEN 0x0004
  123. #define MASK_D0M_HSTXVREGEN 0x0002
  124. #define MASK_CLM_HSTXVREGEN 0x0001
  125. #define TXOPTIONCNTRL 0x0238
  126. #define MASK_CONTCLKMODE 0x00000001
  127. #define CSI_CONTROL 0x040C
  128. #define MASK_CSI_MODE 0x8000
  129. #define MASK_HTXTOEN 0x0400
  130. #define MASK_TXHSMD 0x0080
  131. #define MASK_HSCKMD 0x0020
  132. #define MASK_NOL 0x0006
  133. #define MASK_NOL_1 0x0000
  134. #define MASK_NOL_2 0x0002
  135. #define MASK_NOL_3 0x0004
  136. #define MASK_NOL_4 0x0006
  137. #define MASK_EOTDIS 0x0001
  138. #define CSI_INT 0x0414
  139. #define MASK_INTHLT 0x00000008
  140. #define MASK_INTER 0x00000004
  141. #define CSI_INT_ENA 0x0418
  142. #define MASK_IENHLT 0x00000008
  143. #define MASK_IENER 0x00000004
  144. #define CSI_ERR 0x044C
  145. #define MASK_INER 0x00000200
  146. #define MASK_WCER 0x00000100
  147. #define MASK_QUNK 0x00000010
  148. #define MASK_TXBRK 0x00000002
  149. #define CSI_ERR_INTENA 0x0450
  150. #define CSI_ERR_HALT 0x0454
  151. #define CSI_CONFW 0x0500
  152. #define MASK_MODE 0xe0000000
  153. #define MASK_MODE_SET 0xa0000000
  154. #define MASK_MODE_CLEAR 0xc0000000
  155. #define MASK_ADDRESS 0x1f000000
  156. #define MASK_ADDRESS_CSI_CONTROL 0x03000000
  157. #define MASK_ADDRESS_CSI_INT_ENA 0x06000000
  158. #define MASK_ADDRESS_CSI_ERR_INTENA 0x14000000
  159. #define MASK_ADDRESS_CSI_ERR_HALT 0x15000000
  160. #define MASK_DATA 0x0000ffff
  161. #define CSI_INT_CLR 0x050C
  162. #define MASK_ICRER 0x00000004
  163. #define CSI_START 0x0518
  164. #define MASK_STRT 0x00000001
  165. #define CECEN 0x0600
  166. #define MASK_CECEN 0x0001
  167. #define HDMI_INT0 0x8500
  168. #define MASK_I_KEY 0x80
  169. #define MASK_I_MISC 0x02
  170. #define MASK_I_PHYERR 0x01
  171. #define HDMI_INT1 0x8501
  172. #define MASK_I_GBD 0x80
  173. #define MASK_I_HDCP 0x40
  174. #define MASK_I_ERR 0x20
  175. #define MASK_I_AUD 0x10
  176. #define MASK_I_CBIT 0x08
  177. #define MASK_I_PACKET 0x04
  178. #define MASK_I_CLK 0x02
  179. #define MASK_I_SYS 0x01
  180. #define SYS_INT 0x8502
  181. #define MASK_I_ACR_CTS 0x80
  182. #define MASK_I_ACRN 0x40
  183. #define MASK_I_DVI 0x20
  184. #define MASK_I_HDMI 0x10
  185. #define MASK_I_NOPMBDET 0x08
  186. #define MASK_I_DPMBDET 0x04
  187. #define MASK_I_TMDS 0x02
  188. #define MASK_I_DDC 0x01
  189. #define CLK_INT 0x8503
  190. #define MASK_I_OUT_H_CHG 0x40
  191. #define MASK_I_IN_DE_CHG 0x20
  192. #define MASK_I_IN_HV_CHG 0x10
  193. #define MASK_I_DC_CHG 0x08
  194. #define MASK_I_PXCLK_CHG 0x04
  195. #define MASK_I_PHYCLK_CHG 0x02
  196. #define MASK_I_TMDSCLK_CHG 0x01
  197. #define CBIT_INT 0x8505
  198. #define MASK_I_AF_LOCK 0x80
  199. #define MASK_I_AF_UNLOCK 0x40
  200. #define MASK_I_CBIT_FS 0x02
  201. #define AUDIO_INT 0x8506
  202. #define ERR_INT 0x8507
  203. #define MASK_I_EESS_ERR 0x80
  204. #define HDCP_INT 0x8508
  205. #define MASK_I_AVM_SET 0x80
  206. #define MASK_I_AVM_CLR 0x40
  207. #define MASK_I_LINKERR 0x20
  208. #define MASK_I_SHA_END 0x10
  209. #define MASK_I_R0_END 0x08
  210. #define MASK_I_KM_END 0x04
  211. #define MASK_I_AKSV_END 0x02
  212. #define MASK_I_AN_END 0x01
  213. #define MISC_INT 0x850B
  214. #define MASK_I_AS_LAYOUT 0x10
  215. #define MASK_I_NO_SPD 0x08
  216. #define MASK_I_NO_VS 0x03
  217. #define MASK_I_SYNC_CHG 0x02
  218. #define MASK_I_AUDIO_MUTE 0x01
  219. #define KEY_INT 0x850F
  220. #define SYS_INTM 0x8512
  221. #define MASK_M_ACR_CTS 0x80
  222. #define MASK_M_ACR_N 0x40
  223. #define MASK_M_DVI_DET 0x20
  224. #define MASK_M_HDMI_DET 0x10
  225. #define MASK_M_NOPMBDET 0x08
  226. #define MASK_M_BPMBDET 0x04
  227. #define MASK_M_TMDS 0x02
  228. #define MASK_M_DDC 0x01
  229. #define CLK_INTM 0x8513
  230. #define MASK_M_OUT_H_CHG 0x40
  231. #define MASK_M_IN_DE_CHG 0x20
  232. #define MASK_M_IN_HV_CHG 0x10
  233. #define MASK_M_DC_CHG 0x08
  234. #define MASK_M_PXCLK_CHG 0x04
  235. #define MASK_M_PHYCLK_CHG 0x02
  236. #define MASK_M_TMDS_CHG 0x01
  237. #define PACKET_INTM 0x8514
  238. #define CBIT_INTM 0x8515
  239. #define MASK_M_AF_LOCK 0x80
  240. #define MASK_M_AF_UNLOCK 0x40
  241. #define MASK_M_CBIT_FS 0x02
  242. #define AUDIO_INTM 0x8516
  243. #define MASK_M_BUFINIT_END 0x01
  244. #define ERR_INTM 0x8517
  245. #define MASK_M_EESS_ERR 0x80
  246. #define HDCP_INTM 0x8518
  247. #define MASK_M_AVM_SET 0x80
  248. #define MASK_M_AVM_CLR 0x40
  249. #define MASK_M_LINKERR 0x20
  250. #define MASK_M_SHA_END 0x10
  251. #define MASK_M_R0_END 0x08
  252. #define MASK_M_KM_END 0x04
  253. #define MASK_M_AKSV_END 0x02
  254. #define MASK_M_AN_END 0x01
  255. #define MISC_INTM 0x851B
  256. #define MASK_M_AS_LAYOUT 0x10
  257. #define MASK_M_NO_SPD 0x08
  258. #define MASK_M_NO_VS 0x03
  259. #define MASK_M_SYNC_CHG 0x02
  260. #define MASK_M_AUDIO_MUTE 0x01
  261. #define KEY_INTM 0x851F
  262. #define SYS_STATUS 0x8520
  263. #define MASK_S_SYNC 0x80
  264. #define MASK_S_AVMUTE 0x40
  265. #define MASK_S_HDCP 0x20
  266. #define MASK_S_HDMI 0x10
  267. #define MASK_S_PHY_SCDT 0x08
  268. #define MASK_S_PHY_PLL 0x04
  269. #define MASK_S_TMDS 0x02
  270. #define MASK_S_DDC5V 0x01
  271. #define CSI_STATUS 0x0410
  272. #define MASK_S_WSYNC 0x0400
  273. #define MASK_S_TXACT 0x0200
  274. #define MASK_S_RXACT 0x0100
  275. #define MASK_S_HLT 0x0001
  276. #define VI_STATUS1 0x8522
  277. #define MASK_S_V_GBD 0x08
  278. #define MASK_S_DEEPCOLOR 0x0c
  279. #define MASK_S_V_422 0x02
  280. #define MASK_S_V_INTERLACE 0x01
  281. #define AU_STATUS0 0x8523
  282. #define MASK_S_A_SAMPLE 0x01
  283. #define VI_STATUS3 0x8528
  284. #define MASK_S_V_COLOR 0x1e
  285. #define MASK_LIMITED 0x01
  286. #define PHY_CTL0 0x8531
  287. #define MASK_PHY_SYSCLK_IND 0x02
  288. #define MASK_PHY_CTL 0x01
  289. #define PHY_CTL1 0x8532 /* Not in REF_01 */
  290. #define MASK_PHY_AUTO_RST1 0xf0
  291. #define MASK_PHY_AUTO_RST1_OFF 0x00
  292. #define SET_PHY_AUTO_RST1_US(us) ((((us) / 200) << 4) & \
  293. MASK_PHY_AUTO_RST1)
  294. #define MASK_FREQ_RANGE_MODE 0x0f
  295. #define SET_FREQ_RANGE_MODE_CYCLES(cycles) (((cycles) - 1) & \
  296. MASK_FREQ_RANGE_MODE)
  297. #define PHY_CTL2 0x8533 /* Not in REF_01 */
  298. #define MASK_PHY_AUTO_RST4 0x04
  299. #define MASK_PHY_AUTO_RST3 0x02
  300. #define MASK_PHY_AUTO_RST2 0x01
  301. #define MASK_PHY_AUTO_RSTn (MASK_PHY_AUTO_RST4 | \
  302. MASK_PHY_AUTO_RST3 | \
  303. MASK_PHY_AUTO_RST2)
  304. #define PHY_EN 0x8534
  305. #define MASK_ENABLE_PHY 0x01
  306. #define PHY_RST 0x8535
  307. #define MASK_RESET_CTRL 0x01 /* Reset active low */
  308. #define PHY_BIAS 0x8536 /* Not in REF_01 */
  309. #define PHY_CSQ 0x853F /* Not in REF_01 */
  310. #define MASK_CSQ_CNT 0x0f
  311. #define SET_CSQ_CNT_LEVEL(n) (n & MASK_CSQ_CNT)
  312. #define SYS_FREQ0 0x8540
  313. #define SYS_FREQ1 0x8541
  314. #define SYS_CLK 0x8542 /* Not in REF_01 */
  315. #define MASK_CLK_DIFF 0x0C
  316. #define MASK_CLK_DIV 0x03
  317. #define DDC_CTL 0x8543
  318. #define MASK_DDC_ACK_POL 0x08
  319. #define MASK_DDC_ACTION 0x04
  320. #define MASK_DDC5V_MODE 0x03
  321. #define MASK_DDC5V_MODE_0MS 0x00
  322. #define MASK_DDC5V_MODE_50MS 0x01
  323. #define MASK_DDC5V_MODE_100MS 0x02
  324. #define MASK_DDC5V_MODE_200MS 0x03
  325. #define HPD_CTL 0x8544
  326. #define MASK_HPD_CTL0 0x10
  327. #define MASK_HPD_OUT0 0x01
  328. #define ANA_CTL 0x8545
  329. #define MASK_APPL_PCSX 0x30
  330. #define MASK_APPL_PCSX_HIZ 0x00
  331. #define MASK_APPL_PCSX_L_FIX 0x10
  332. #define MASK_APPL_PCSX_H_FIX 0x20
  333. #define MASK_APPL_PCSX_NORMAL 0x30
  334. #define MASK_ANALOG_ON 0x01
  335. #define AVM_CTL 0x8546
  336. #define INIT_END 0x854A
  337. #define MASK_INIT_END 0x01
  338. #define HDMI_DET 0x8552 /* Not in REF_01 */
  339. #define MASK_HDMI_DET_MOD1 0x80
  340. #define MASK_HDMI_DET_MOD0 0x40
  341. #define MASK_HDMI_DET_V 0x30
  342. #define MASK_HDMI_DET_V_SYNC 0x00
  343. #define MASK_HDMI_DET_V_ASYNC_25MS 0x10
  344. #define MASK_HDMI_DET_V_ASYNC_50MS 0x20
  345. #define MASK_HDMI_DET_V_ASYNC_100MS 0x30
  346. #define MASK_HDMI_DET_NUM 0x0f
  347. #define HDCP_MODE 0x8560
  348. #define MASK_MODE_RST_TN 0x20
  349. #define MASK_LINE_REKEY 0x10
  350. #define MASK_AUTO_CLR 0x04
  351. #define HDCP_REG1 0x8563 /* Not in REF_01 */
  352. #define MASK_AUTH_UNAUTH_SEL 0x70
  353. #define MASK_AUTH_UNAUTH_SEL_12_FRAMES 0x70
  354. #define MASK_AUTH_UNAUTH_SEL_8_FRAMES 0x60
  355. #define MASK_AUTH_UNAUTH_SEL_4_FRAMES 0x50
  356. #define MASK_AUTH_UNAUTH_SEL_2_FRAMES 0x40
  357. #define MASK_AUTH_UNAUTH_SEL_64_FRAMES 0x30
  358. #define MASK_AUTH_UNAUTH_SEL_32_FRAMES 0x20
  359. #define MASK_AUTH_UNAUTH_SEL_16_FRAMES 0x10
  360. #define MASK_AUTH_UNAUTH_SEL_ONCE 0x00
  361. #define MASK_AUTH_UNAUTH 0x01
  362. #define MASK_AUTH_UNAUTH_AUTO 0x01
  363. #define HDCP_REG2 0x8564 /* Not in REF_01 */
  364. #define MASK_AUTO_P3_RESET 0x0F
  365. #define SET_AUTO_P3_RESET_FRAMES(n) (n & MASK_AUTO_P3_RESET)
  366. #define MASK_AUTO_P3_RESET_OFF 0x00
  367. #define VI_MODE 0x8570
  368. #define MASK_RGB_DVI 0x08 /* Not in REF_01 */
  369. #define VOUT_SET2 0x8573
  370. #define MASK_SEL422 0x80
  371. #define MASK_VOUT_422FIL_100 0x40
  372. #define MASK_VOUTCOLORMODE 0x03
  373. #define MASK_VOUTCOLORMODE_THROUGH 0x00
  374. #define MASK_VOUTCOLORMODE_AUTO 0x01
  375. #define MASK_VOUTCOLORMODE_MANUAL 0x03
  376. #define VOUT_SET3 0x8574
  377. #define MASK_VOUT_EXTCNT 0x08
  378. #define VI_REP 0x8576
  379. #define MASK_VOUT_COLOR_SEL 0xe0
  380. #define MASK_VOUT_COLOR_RGB_FULL 0x00
  381. #define MASK_VOUT_COLOR_RGB_LIMITED 0x20
  382. #define MASK_VOUT_COLOR_601_YCBCR_FULL 0x40
  383. #define MASK_VOUT_COLOR_601_YCBCR_LIMITED 0x60
  384. #define MASK_VOUT_COLOR_709_YCBCR_FULL 0x80
  385. #define MASK_VOUT_COLOR_709_YCBCR_LIMITED 0xa0
  386. #define MASK_VOUT_COLOR_FULL_TO_LIMITED 0xc0
  387. #define MASK_VOUT_COLOR_LIMITED_TO_FULL 0xe0
  388. #define MASK_IN_REP_HEN 0x10
  389. #define MASK_IN_REP 0x0f
  390. #define VI_MUTE 0x857F
  391. #define MASK_AUTO_MUTE 0xc0
  392. #define MASK_VI_MUTE 0x10
  393. #define DE_WIDTH_H_LO 0x8582 /* Not in REF_01 */
  394. #define DE_WIDTH_H_HI 0x8583 /* Not in REF_01 */
  395. #define DE_WIDTH_V_LO 0x8588 /* Not in REF_01 */
  396. #define DE_WIDTH_V_HI 0x8589 /* Not in REF_01 */
  397. #define H_SIZE_LO 0x858A /* Not in REF_01 */
  398. #define H_SIZE_HI 0x858B /* Not in REF_01 */
  399. #define V_SIZE_LO 0x858C /* Not in REF_01 */
  400. #define V_SIZE_HI 0x858D /* Not in REF_01 */
  401. #define FV_CNT_LO 0x85A1 /* Not in REF_01 */
  402. #define FV_CNT_HI 0x85A2 /* Not in REF_01 */
  403. #define FH_MIN0 0x85AA /* Not in REF_01 */
  404. #define FH_MIN1 0x85AB /* Not in REF_01 */
  405. #define FH_MAX0 0x85AC /* Not in REF_01 */
  406. #define FH_MAX1 0x85AD /* Not in REF_01 */
  407. #define HV_RST 0x85AF /* Not in REF_01 */
  408. #define MASK_H_PI_RST 0x20
  409. #define MASK_V_PI_RST 0x10
  410. #define EDID_MODE 0x85C7
  411. #define MASK_EDID_SPEED 0x40
  412. #define MASK_EDID_MODE 0x03
  413. #define MASK_EDID_MODE_DISABLE 0x00
  414. #define MASK_EDID_MODE_DDC2B 0x01
  415. #define MASK_EDID_MODE_E_DDC 0x02
  416. #define EDID_LEN1 0x85CA
  417. #define EDID_LEN2 0x85CB
  418. #define HDCP_REG3 0x85D1 /* Not in REF_01 */
  419. #define KEY_RD_CMD 0x01
  420. #define FORCE_MUTE 0x8600
  421. #define MASK_FORCE_AMUTE 0x10
  422. #define MASK_FORCE_DMUTE 0x01
  423. #define CMD_AUD 0x8601
  424. #define MASK_CMD_BUFINIT 0x04
  425. #define MASK_CMD_LOCKDET 0x02
  426. #define MASK_CMD_MUTE 0x01
  427. #define AUTO_CMD0 0x8602
  428. #define MASK_AUTO_MUTE7 0x80
  429. #define MASK_AUTO_MUTE6 0x40
  430. #define MASK_AUTO_MUTE5 0x20
  431. #define MASK_AUTO_MUTE4 0x10
  432. #define MASK_AUTO_MUTE3 0x08
  433. #define MASK_AUTO_MUTE2 0x04
  434. #define MASK_AUTO_MUTE1 0x02
  435. #define MASK_AUTO_MUTE0 0x01
  436. #define AUTO_CMD1 0x8603
  437. #define MASK_AUTO_MUTE10 0x04
  438. #define MASK_AUTO_MUTE9 0x02
  439. #define MASK_AUTO_MUTE8 0x01
  440. #define AUTO_CMD2 0x8604
  441. #define MASK_AUTO_PLAY3 0x08
  442. #define MASK_AUTO_PLAY2 0x04
  443. #define BUFINIT_START 0x8606
  444. #define SET_BUFINIT_START_MS(milliseconds) ((milliseconds) / 100)
  445. #define FS_MUTE 0x8607
  446. #define MASK_FS_ELSE_MUTE 0x80
  447. #define MASK_FS22_MUTE 0x40
  448. #define MASK_FS24_MUTE 0x20
  449. #define MASK_FS88_MUTE 0x10
  450. #define MASK_FS96_MUTE 0x08
  451. #define MASK_FS176_MUTE 0x04
  452. #define MASK_FS192_MUTE 0x02
  453. #define MASK_FS_NO_MUTE 0x01
  454. #define FS_IMODE 0x8620
  455. #define MASK_NLPCM_HMODE 0x40
  456. #define MASK_NLPCM_SMODE 0x20
  457. #define MASK_NLPCM_IMODE 0x10
  458. #define MASK_FS_HMODE 0x08
  459. #define MASK_FS_AMODE 0x04
  460. #define MASK_FS_SMODE 0x02
  461. #define MASK_FS_IMODE 0x01
  462. #define FS_SET 0x8621
  463. #define MASK_FS 0x0f
  464. #define LOCKDET_REF0 0x8630
  465. #define LOCKDET_REF1 0x8631
  466. #define LOCKDET_REF2 0x8632
  467. #define ACR_MODE 0x8640
  468. #define MASK_ACR_LOAD 0x10
  469. #define MASK_N_MODE 0x04
  470. #define MASK_CTS_MODE 0x01
  471. #define ACR_MDF0 0x8641
  472. #define MASK_ACR_L2MDF 0x70
  473. #define MASK_ACR_L2MDF_0_PPM 0x00
  474. #define MASK_ACR_L2MDF_61_PPM 0x10
  475. #define MASK_ACR_L2MDF_122_PPM 0x20
  476. #define MASK_ACR_L2MDF_244_PPM 0x30
  477. #define MASK_ACR_L2MDF_488_PPM 0x40
  478. #define MASK_ACR_L2MDF_976_PPM 0x50
  479. #define MASK_ACR_L2MDF_1976_PPM 0x60
  480. #define MASK_ACR_L2MDF_3906_PPM 0x70
  481. #define MASK_ACR_L1MDF 0x07
  482. #define MASK_ACR_L1MDF_0_PPM 0x00
  483. #define MASK_ACR_L1MDF_61_PPM 0x01
  484. #define MASK_ACR_L1MDF_122_PPM 0x02
  485. #define MASK_ACR_L1MDF_244_PPM 0x03
  486. #define MASK_ACR_L1MDF_488_PPM 0x04
  487. #define MASK_ACR_L1MDF_976_PPM 0x05
  488. #define MASK_ACR_L1MDF_1976_PPM 0x06
  489. #define MASK_ACR_L1MDF_3906_PPM 0x07
  490. #define ACR_MDF1 0x8642
  491. #define MASK_ACR_L3MDF 0x07
  492. #define MASK_ACR_L3MDF_0_PPM 0x00
  493. #define MASK_ACR_L3MDF_61_PPM 0x01
  494. #define MASK_ACR_L3MDF_122_PPM 0x02
  495. #define MASK_ACR_L3MDF_244_PPM 0x03
  496. #define MASK_ACR_L3MDF_488_PPM 0x04
  497. #define MASK_ACR_L3MDF_976_PPM 0x05
  498. #define MASK_ACR_L3MDF_1976_PPM 0x06
  499. #define MASK_ACR_L3MDF_3906_PPM 0x07
  500. #define SDO_MODE1 0x8652
  501. #define MASK_SDO_BIT_LENG 0x70
  502. #define MASK_SDO_FMT 0x03
  503. #define MASK_SDO_FMT_RIGHT 0x00
  504. #define MASK_SDO_FMT_LEFT 0x01
  505. #define MASK_SDO_FMT_I2S 0x02
  506. #define DIV_MODE 0x8665 /* Not in REF_01 */
  507. #define MASK_DIV_DLY 0xf0
  508. #define SET_DIV_DLY_MS(milliseconds) ((((milliseconds) / 100) << 4) & \
  509. MASK_DIV_DLY)
  510. #define MASK_DIV_MODE 0x01
  511. #define NCO_F0_MOD 0x8670
  512. #define MASK_NCO_F0_MOD 0x03
  513. #define MASK_NCO_F0_MOD_42MHZ 0x00
  514. #define MASK_NCO_F0_MOD_27MHZ 0x01
  515. #define PK_INT_MODE 0x8709
  516. #define MASK_ISRC2_INT_MODE 0x80
  517. #define MASK_ISRC_INT_MODE 0x40
  518. #define MASK_ACP_INT_MODE 0x20
  519. #define MASK_VS_INT_MODE 0x10
  520. #define MASK_SPD_INT_MODE 0x08
  521. #define MASK_MS_INT_MODE 0x04
  522. #define MASK_AUD_INT_MODE 0x02
  523. #define MASK_AVI_INT_MODE 0x01
  524. #define NO_PKT_LIMIT 0x870B
  525. #define MASK_NO_ACP_LIMIT 0xf0
  526. #define SET_NO_ACP_LIMIT_MS(milliseconds) ((((milliseconds) / 80) << 4) & \
  527. MASK_NO_ACP_LIMIT)
  528. #define MASK_NO_AVI_LIMIT 0x0f
  529. #define SET_NO_AVI_LIMIT_MS(milliseconds) (((milliseconds) / 80) & \
  530. MASK_NO_AVI_LIMIT)
  531. #define NO_PKT_CLR 0x870C
  532. #define MASK_NO_VS_CLR 0x40
  533. #define MASK_NO_SPD_CLR 0x20
  534. #define MASK_NO_ACP_CLR 0x10
  535. #define MASK_NO_AVI_CLR1 0x02
  536. #define MASK_NO_AVI_CLR0 0x01
  537. #define ERR_PK_LIMIT 0x870D
  538. #define NO_PKT_LIMIT2 0x870E
  539. #define PK_AVI_0HEAD 0x8710
  540. #define PK_AVI_1HEAD 0x8711
  541. #define PK_AVI_2HEAD 0x8712
  542. #define PK_AVI_0BYTE 0x8713
  543. #define PK_AVI_1BYTE 0x8714
  544. #define PK_AVI_2BYTE 0x8715
  545. #define PK_AVI_3BYTE 0x8716
  546. #define PK_AVI_4BYTE 0x8717
  547. #define PK_AVI_5BYTE 0x8718
  548. #define PK_AVI_6BYTE 0x8719
  549. #define PK_AVI_7BYTE 0x871A
  550. #define PK_AVI_8BYTE 0x871B
  551. #define PK_AVI_9BYTE 0x871C
  552. #define PK_AVI_10BYTE 0x871D
  553. #define PK_AVI_11BYTE 0x871E
  554. #define PK_AVI_12BYTE 0x871F
  555. #define PK_AVI_13BYTE 0x8720
  556. #define PK_AVI_14BYTE 0x8721
  557. #define PK_AVI_15BYTE 0x8722
  558. #define PK_AVI_16BYTE 0x8723
  559. #define BKSV 0x8800
  560. #define BCAPS 0x8840
  561. #define MASK_HDMI_RSVD 0x80
  562. #define MASK_REPEATER 0x40
  563. #define MASK_READY 0x20
  564. #define MASK_FASTI2C 0x10
  565. #define MASK_1_1_FEA 0x02
  566. #define MASK_FAST_REAU 0x01
  567. #define BSTATUS1 0x8842
  568. #define MASK_MAX_EXCED 0x08
  569. #define EDID_RAM 0x8C00
  570. #define NO_GDB_LIMIT 0x9007
  571. #endif