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