ths8200_regs.h 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. /*
  2. * ths8200 - Texas Instruments THS8200 video encoder driver
  3. *
  4. * Copyright 2013 Cisco Systems, Inc. and/or its affiliates.
  5. *
  6. * This program is free software; you may redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; version 2 of the License.
  9. *
  10. * This program is free software; you can redistribute it and/or
  11. * modify it under the terms of the GNU General Public License as
  12. * published by the Free Software Foundation version 2.
  13. *
  14. * This program is distributed .as is. WITHOUT ANY WARRANTY of any
  15. * kind, whether express or implied; without even the implied warranty
  16. * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. */
  19. #ifndef THS8200_REGS_H
  20. #define THS8200_REGS_H
  21. /* Register offset macros */
  22. #define THS8200_VERSION 0x02
  23. #define THS8200_CHIP_CTL 0x03
  24. #define THS8200_CSC_R11 0x04
  25. #define THS8200_CSC_R12 0x05
  26. #define THS8200_CSC_R21 0x06
  27. #define THS8200_CSC_R22 0x07
  28. #define THS8200_CSC_R31 0x08
  29. #define THS8200_CSC_R32 0x09
  30. #define THS8200_CSC_G11 0x0a
  31. #define THS8200_CSC_G12 0x0b
  32. #define THS8200_CSC_G21 0x0c
  33. #define THS8200_CSC_G22 0x0d
  34. #define THS8200_CSC_G31 0x0e
  35. #define THS8200_CSC_G32 0x0f
  36. #define THS8200_CSC_B11 0x10
  37. #define THS8200_CSC_B12 0x11
  38. #define THS8200_CSC_B21 0x12
  39. #define THS8200_CSC_B22 0x13
  40. #define THS8200_CSC_B31 0x14
  41. #define THS8200_CSC_B32 0x15
  42. #define THS8200_CSC_OFFS1 0x16
  43. #define THS8200_CSC_OFFS12 0x17
  44. #define THS8200_CSC_OFFS23 0x18
  45. #define THS8200_CSC_OFFS3 0x19
  46. #define THS8200_TST_CNTL1 0x1a
  47. #define THS8200_TST_CNTL2 0x1b
  48. #define THS8200_DATA_CNTL 0x1c
  49. #define THS8200_DTG1_Y_SYNC1_LSB 0x1d
  50. #define THS8200_DTG1_Y_SYNC2_LSB 0x1e
  51. #define THS8200_DTG1_Y_SYNC3_LSB 0x1f
  52. #define THS8200_DTG1_CBCR_SYNC1_LSB 0x20
  53. #define THS8200_DTG1_CBCR_SYNC2_LSB 0x21
  54. #define THS8200_DTG1_CBCR_SYNC3_LSB 0x22
  55. #define THS8200_DTG1_Y_SYNC_MSB 0x23
  56. #define THS8200_DTG1_CBCR_SYNC_MSB 0x24
  57. #define THS8200_DTG1_SPEC_A 0x25
  58. #define THS8200_DTG1_SPEC_B 0x26
  59. #define THS8200_DTG1_SPEC_C 0x27
  60. #define THS8200_DTG1_SPEC_D_LSB 0x28
  61. #define THS8200_DTG1_SPEC_D1 0x29
  62. #define THS8200_DTG1_SPEC_E_LSB 0x2a
  63. #define THS8200_DTG1_SPEC_DEH_MSB 0x2b
  64. #define THS8200_DTG1_SPEC_H_LSB 0x2c
  65. #define THS8200_DTG1_SPEC_I_MSB 0x2d
  66. #define THS8200_DTG1_SPEC_I_LSB 0x2e
  67. #define THS8200_DTG1_SPEC_K_LSB 0x2f
  68. #define THS8200_DTG1_SPEC_K_MSB 0x30
  69. #define THS8200_DTG1_SPEC_K1 0x31
  70. #define THS8200_DTG1_SPEC_G_LSB 0x32
  71. #define THS8200_DTG1_SPEC_G_MSB 0x33
  72. #define THS8200_DTG1_TOT_PIXELS_MSB 0x34
  73. #define THS8200_DTG1_TOT_PIXELS_LSB 0x35
  74. #define THS8200_DTG1_FLD_FLIP_LINECNT_MSB 0x36
  75. #define THS8200_DTG1_LINECNT_LSB 0x37
  76. #define THS8200_DTG1_MODE 0x38
  77. #define THS8200_DTG1_FRAME_FIELD_SZ_MSB 0x39
  78. #define THS8200_DTG1_FRAME_SZ_LSB 0x3a
  79. #define THS8200_DTG1_FIELD_SZ_LSB 0x3b
  80. #define THS8200_DTG1_VESA_CBAR_SIZE 0x3c
  81. #define THS8200_DAC_CNTL_MSB 0x3d
  82. #define THS8200_DAC1_CNTL_LSB 0x3e
  83. #define THS8200_DAC2_CNTL_LSB 0x3f
  84. #define THS8200_DAC3_CNTL_LSB 0x40
  85. #define THS8200_CSM_CLIP_GY_LOW 0x41
  86. #define THS8200_CSM_CLIP_BCB_LOW 0x42
  87. #define THS8200_CSM_CLIP_RCR_LOW 0x43
  88. #define THS8200_CSM_CLIP_GY_HIGH 0x44
  89. #define THS8200_CSM_CLIP_BCB_HIGH 0x45
  90. #define THS8200_CSM_CLIP_RCR_HIGH 0x46
  91. #define THS8200_CSM_SHIFT_GY 0x47
  92. #define THS8200_CSM_SHIFT_BCB 0x48
  93. #define THS8200_CSM_SHIFT_RCR 0x49
  94. #define THS8200_CSM_GY_CNTL_MULT_MSB 0x4a
  95. #define THS8200_CSM_MULT_BCB_RCR_MSB 0x4b
  96. #define THS8200_CSM_MULT_GY_LSB 0x4c
  97. #define THS8200_CSM_MULT_BCB_LSB 0x4d
  98. #define THS8200_CSM_MULT_RCR_LSB 0x4e
  99. #define THS8200_CSM_MULT_RCR_BCB_CNTL 0x4f
  100. #define THS8200_CSM_MULT_RCR_LSB 0x4e
  101. #define THS8200_DTG2_BP1_2_MSB 0x50
  102. #define THS8200_DTG2_BP3_4_MSB 0x51
  103. #define THS8200_DTG2_BP5_6_MSB 0x52
  104. #define THS8200_DTG2_BP7_8_MSB 0x53
  105. #define THS8200_DTG2_BP9_10_MSB 0x54
  106. #define THS8200_DTG2_BP11_12_MSB 0x55
  107. #define THS8200_DTG2_BP13_14_MSB 0x56
  108. #define THS8200_DTG2_BP15_16_MSB 0x57
  109. #define THS8200_DTG2_BP1_LSB 0x58
  110. #define THS8200_DTG2_BP2_LSB 0x59
  111. #define THS8200_DTG2_BP3_LSB 0x5a
  112. #define THS8200_DTG2_BP4_LSB 0x5b
  113. #define THS8200_DTG2_BP5_LSB 0x5c
  114. #define THS8200_DTG2_BP6_LSB 0x5d
  115. #define THS8200_DTG2_BP7_LSB 0x5e
  116. #define THS8200_DTG2_BP8_LSB 0x5f
  117. #define THS8200_DTG2_BP9_LSB 0x60
  118. #define THS8200_DTG2_BP10_LSB 0x61
  119. #define THS8200_DTG2_BP11_LSB 0x62
  120. #define THS8200_DTG2_BP12_LSB 0x63
  121. #define THS8200_DTG2_BP13_LSB 0x64
  122. #define THS8200_DTG2_BP14_LSB 0x65
  123. #define THS8200_DTG2_BP15_LSB 0x66
  124. #define THS8200_DTG2_BP16_LSB 0x67
  125. #define THS8200_DTG2_LINETYPE1 0x68
  126. #define THS8200_DTG2_LINETYPE2 0x69
  127. #define THS8200_DTG2_LINETYPE3 0x6a
  128. #define THS8200_DTG2_LINETYPE4 0x6b
  129. #define THS8200_DTG2_LINETYPE5 0x6c
  130. #define THS8200_DTG2_LINETYPE6 0x6d
  131. #define THS8200_DTG2_LINETYPE7 0x6e
  132. #define THS8200_DTG2_LINETYPE8 0x6f
  133. #define THS8200_DTG2_HLENGTH_LSB 0x70
  134. #define THS8200_DTG2_HLENGTH_LSB_HDLY_MSB 0x71
  135. #define THS8200_DTG2_HLENGTH_HDLY_LSB 0x72
  136. #define THS8200_DTG2_VLENGTH1_LSB 0x73
  137. #define THS8200_DTG2_VLENGTH1_MSB_VDLY1_MSB 0x74
  138. #define THS8200_DTG2_VDLY1_LSB 0x75
  139. #define THS8200_DTG2_VLENGTH2_LSB 0x76
  140. #define THS8200_DTG2_VLENGTH2_MSB_VDLY2_MSB 0x77
  141. #define THS8200_DTG2_VDLY2_LSB 0x78
  142. #define THS8200_DTG2_HS_IN_DLY_MSB 0x79
  143. #define THS8200_DTG2_HS_IN_DLY_LSB 0x7a
  144. #define THS8200_DTG2_VS_IN_DLY_MSB 0x7b
  145. #define THS8200_DTG2_VS_IN_DLY_LSB 0x7c
  146. #define THS8200_DTG2_PIXEL_CNT_MSB 0x7d
  147. #define THS8200_DTG2_PIXEL_CNT_LSB 0x7e
  148. #define THS8200_DTG2_LINE_CNT_MSB 0x7f
  149. #define THS8200_DTG2_LINE_CNT_LSB 0x80
  150. #define THS8200_DTG2_CNTL 0x82
  151. #define THS8200_CGMS_CNTL_HEADER 0x83
  152. #define THS8200_CGMS_PAYLOAD_MSB 0x84
  153. #define THS8200_CGMS_PAYLOAD_LSB 0x85
  154. #define THS8200_MISC_PPL_LSB 0x86
  155. #define THS8200_MISC_PPL_MSB 0x87
  156. #define THS8200_MISC_LPF_MSB 0x88
  157. #define THS8200_MISC_LPF_LSB 0x89
  158. #endif /* THS8200_REGS_H */