xref: /linux/drivers/media/i2c/saa711x_regs.h (revision 3259081991a9398434f6f49468b960f136ac0158)
1459ee17cSMauro Carvalho Chehab /*
2459ee17cSMauro Carvalho Chehab  * SPDX-License-Identifier: GPL-2.0+
3459ee17cSMauro Carvalho Chehab  * saa711x - Philips SAA711x video decoder register specifications
4cb7a01acSMauro Carvalho Chehab  *
5*32590819SMauro Carvalho Chehab  * Copyright (c) 2006 Mauro Carvalho Chehab <mchehab@kernel.org>
6cb7a01acSMauro Carvalho Chehab  */
7cb7a01acSMauro Carvalho Chehab 
8cb7a01acSMauro Carvalho Chehab #define R_00_CHIP_VERSION                             0x00
9cb7a01acSMauro Carvalho Chehab /* Video Decoder */
10cb7a01acSMauro Carvalho Chehab 	/* Video Decoder - Frontend part */
11cb7a01acSMauro Carvalho Chehab #define R_01_INC_DELAY                                0x01
12cb7a01acSMauro Carvalho Chehab #define R_02_INPUT_CNTL_1                             0x02
13cb7a01acSMauro Carvalho Chehab #define R_03_INPUT_CNTL_2                             0x03
14cb7a01acSMauro Carvalho Chehab #define R_04_INPUT_CNTL_3                             0x04
15cb7a01acSMauro Carvalho Chehab #define R_05_INPUT_CNTL_4                             0x05
16cb7a01acSMauro Carvalho Chehab 	/* Video Decoder - Decoder part */
17cb7a01acSMauro Carvalho Chehab #define R_06_H_SYNC_START                             0x06
18cb7a01acSMauro Carvalho Chehab #define R_07_H_SYNC_STOP                              0x07
19cb7a01acSMauro Carvalho Chehab #define R_08_SYNC_CNTL                                0x08
20cb7a01acSMauro Carvalho Chehab #define R_09_LUMA_CNTL                                0x09
21cb7a01acSMauro Carvalho Chehab #define R_0A_LUMA_BRIGHT_CNTL                         0x0a
22cb7a01acSMauro Carvalho Chehab #define R_0B_LUMA_CONTRAST_CNTL                       0x0b
23cb7a01acSMauro Carvalho Chehab #define R_0C_CHROMA_SAT_CNTL                          0x0c
24cb7a01acSMauro Carvalho Chehab #define R_0D_CHROMA_HUE_CNTL                          0x0d
25cb7a01acSMauro Carvalho Chehab #define R_0E_CHROMA_CNTL_1                            0x0e
26cb7a01acSMauro Carvalho Chehab #define R_0F_CHROMA_GAIN_CNTL                         0x0f
27cb7a01acSMauro Carvalho Chehab #define R_10_CHROMA_CNTL_2                            0x10
28cb7a01acSMauro Carvalho Chehab #define R_11_MODE_DELAY_CNTL                          0x11
29cb7a01acSMauro Carvalho Chehab #define R_12_RT_SIGNAL_CNTL                           0x12
30cb7a01acSMauro Carvalho Chehab #define R_13_RT_X_PORT_OUT_CNTL                       0x13
31cb7a01acSMauro Carvalho Chehab #define R_14_ANAL_ADC_COMPAT_CNTL                     0x14
32cb7a01acSMauro Carvalho Chehab #define R_15_VGATE_START_FID_CHG                      0x15
33cb7a01acSMauro Carvalho Chehab #define R_16_VGATE_STOP                               0x16
34cb7a01acSMauro Carvalho Chehab #define R_17_MISC_VGATE_CONF_AND_MSB                  0x17
35cb7a01acSMauro Carvalho Chehab #define R_18_RAW_DATA_GAIN_CNTL                       0x18
36cb7a01acSMauro Carvalho Chehab #define R_19_RAW_DATA_OFF_CNTL                        0x19
37cb7a01acSMauro Carvalho Chehab #define R_1A_COLOR_KILL_LVL_CNTL                      0x1a
38cb7a01acSMauro Carvalho Chehab #define R_1B_MISC_TVVCRDET                            0x1b
39cb7a01acSMauro Carvalho Chehab #define R_1C_ENHAN_COMB_CTRL1                         0x1c
40cb7a01acSMauro Carvalho Chehab #define R_1D_ENHAN_COMB_CTRL2                         0x1d
41cb7a01acSMauro Carvalho Chehab #define R_1E_STATUS_BYTE_1_VD_DEC                     0x1e
42cb7a01acSMauro Carvalho Chehab #define R_1F_STATUS_BYTE_2_VD_DEC                     0x1f
43cb7a01acSMauro Carvalho Chehab 
44cb7a01acSMauro Carvalho Chehab /* Component processing and interrupt masking part */
45cb7a01acSMauro Carvalho Chehab #define R_23_INPUT_CNTL_5                             0x23
46cb7a01acSMauro Carvalho Chehab #define R_24_INPUT_CNTL_6                             0x24
47cb7a01acSMauro Carvalho Chehab #define R_25_INPUT_CNTL_7                             0x25
48cb7a01acSMauro Carvalho Chehab #define R_29_COMP_DELAY                               0x29
49cb7a01acSMauro Carvalho Chehab #define R_2A_COMP_BRIGHT_CNTL                         0x2a
50cb7a01acSMauro Carvalho Chehab #define R_2B_COMP_CONTRAST_CNTL                       0x2b
51cb7a01acSMauro Carvalho Chehab #define R_2C_COMP_SAT_CNTL                            0x2c
52cb7a01acSMauro Carvalho Chehab #define R_2D_INTERRUPT_MASK_1                         0x2d
53cb7a01acSMauro Carvalho Chehab #define R_2E_INTERRUPT_MASK_2                         0x2e
54cb7a01acSMauro Carvalho Chehab #define R_2F_INTERRUPT_MASK_3                         0x2f
55cb7a01acSMauro Carvalho Chehab 
56cb7a01acSMauro Carvalho Chehab /* Audio clock generator part */
57cb7a01acSMauro Carvalho Chehab #define R_30_AUD_MAST_CLK_CYCLES_PER_FIELD            0x30
58cb7a01acSMauro Carvalho Chehab #define R_34_AUD_MAST_CLK_NOMINAL_INC                 0x34
59cb7a01acSMauro Carvalho Chehab #define R_38_CLK_RATIO_AMXCLK_TO_ASCLK                0x38
60cb7a01acSMauro Carvalho Chehab #define R_39_CLK_RATIO_ASCLK_TO_ALRCLK                0x39
61cb7a01acSMauro Carvalho Chehab #define R_3A_AUD_CLK_GEN_BASIC_SETUP                  0x3a
62cb7a01acSMauro Carvalho Chehab 
63cb7a01acSMauro Carvalho Chehab /* General purpose VBI data slicer part */
64cb7a01acSMauro Carvalho Chehab #define R_40_SLICER_CNTL_1                            0x40
65cb7a01acSMauro Carvalho Chehab #define R_41_LCR_BASE                                 0x41
66cb7a01acSMauro Carvalho Chehab #define R_58_PROGRAM_FRAMING_CODE                     0x58
67cb7a01acSMauro Carvalho Chehab #define R_59_H_OFF_FOR_SLICER                         0x59
68cb7a01acSMauro Carvalho Chehab #define R_5A_V_OFF_FOR_SLICER                         0x5a
69cb7a01acSMauro Carvalho Chehab #define R_5B_FLD_OFF_AND_MSB_FOR_H_AND_V_OFF          0x5b
70cb7a01acSMauro Carvalho Chehab #define R_5D_DID                                      0x5d
71cb7a01acSMauro Carvalho Chehab #define R_5E_SDID                                     0x5e
72cb7a01acSMauro Carvalho Chehab #define R_60_SLICER_STATUS_BYTE_0                     0x60
73cb7a01acSMauro Carvalho Chehab #define R_61_SLICER_STATUS_BYTE_1                     0x61
74cb7a01acSMauro Carvalho Chehab #define R_62_SLICER_STATUS_BYTE_2                     0x62
75cb7a01acSMauro Carvalho Chehab 
76cb7a01acSMauro Carvalho Chehab /* X port, I port and the scaler part */
77cb7a01acSMauro Carvalho Chehab 	/* Task independent global settings */
78cb7a01acSMauro Carvalho Chehab #define R_80_GLOBAL_CNTL_1                            0x80
79cb7a01acSMauro Carvalho Chehab #define R_81_V_SYNC_FLD_ID_SRC_SEL_AND_RETIMED_V_F    0x81
80cb7a01acSMauro Carvalho Chehab #define R_83_X_PORT_I_O_ENA_AND_OUT_CLK               0x83
81cb7a01acSMauro Carvalho Chehab #define R_84_I_PORT_SIGNAL_DEF                        0x84
82cb7a01acSMauro Carvalho Chehab #define R_85_I_PORT_SIGNAL_POLAR                      0x85
83cb7a01acSMauro Carvalho Chehab #define R_86_I_PORT_FIFO_FLAG_CNTL_AND_ARBIT          0x86
84cb7a01acSMauro Carvalho Chehab #define R_87_I_PORT_I_O_ENA_OUT_CLK_AND_GATED         0x87
85cb7a01acSMauro Carvalho Chehab #define R_88_POWER_SAVE_ADC_PORT_CNTL                 0x88
86cb7a01acSMauro Carvalho Chehab #define R_8F_STATUS_INFO_SCALER                       0x8f
87cb7a01acSMauro Carvalho Chehab 	/* Task A definition */
88cb7a01acSMauro Carvalho Chehab 		/* Basic settings and acquisition window definition */
89cb7a01acSMauro Carvalho Chehab #define R_90_A_TASK_HANDLING_CNTL                     0x90
90cb7a01acSMauro Carvalho Chehab #define R_91_A_X_PORT_FORMATS_AND_CONF                0x91
91cb7a01acSMauro Carvalho Chehab #define R_92_A_X_PORT_INPUT_REFERENCE_SIGNAL          0x92
92cb7a01acSMauro Carvalho Chehab #define R_93_A_I_PORT_OUTPUT_FORMATS_AND_CONF         0x93
93cb7a01acSMauro Carvalho Chehab #define R_94_A_HORIZ_INPUT_WINDOW_START               0x94
94cb7a01acSMauro Carvalho Chehab #define R_95_A_HORIZ_INPUT_WINDOW_START_MSB           0x95
95cb7a01acSMauro Carvalho Chehab #define R_96_A_HORIZ_INPUT_WINDOW_LENGTH              0x96
96cb7a01acSMauro Carvalho Chehab #define R_97_A_HORIZ_INPUT_WINDOW_LENGTH_MSB          0x97
97cb7a01acSMauro Carvalho Chehab #define R_98_A_VERT_INPUT_WINDOW_START                0x98
98cb7a01acSMauro Carvalho Chehab #define R_99_A_VERT_INPUT_WINDOW_START_MSB            0x99
99cb7a01acSMauro Carvalho Chehab #define R_9A_A_VERT_INPUT_WINDOW_LENGTH               0x9a
100cb7a01acSMauro Carvalho Chehab #define R_9B_A_VERT_INPUT_WINDOW_LENGTH_MSB           0x9b
101cb7a01acSMauro Carvalho Chehab #define R_9C_A_HORIZ_OUTPUT_WINDOW_LENGTH             0x9c
102cb7a01acSMauro Carvalho Chehab #define R_9D_A_HORIZ_OUTPUT_WINDOW_LENGTH_MSB         0x9d
103cb7a01acSMauro Carvalho Chehab #define R_9E_A_VERT_OUTPUT_WINDOW_LENGTH              0x9e
104cb7a01acSMauro Carvalho Chehab #define R_9F_A_VERT_OUTPUT_WINDOW_LENGTH_MSB          0x9f
105cb7a01acSMauro Carvalho Chehab 		/* FIR filtering and prescaling */
106cb7a01acSMauro Carvalho Chehab #define R_A0_A_HORIZ_PRESCALING                       0xa0
107cb7a01acSMauro Carvalho Chehab #define R_A1_A_ACCUMULATION_LENGTH                    0xa1
108cb7a01acSMauro Carvalho Chehab #define R_A2_A_PRESCALER_DC_GAIN_AND_FIR_PREFILTER    0xa2
109cb7a01acSMauro Carvalho Chehab #define R_A4_A_LUMA_BRIGHTNESS_CNTL                   0xa4
110cb7a01acSMauro Carvalho Chehab #define R_A5_A_LUMA_CONTRAST_CNTL                     0xa5
111cb7a01acSMauro Carvalho Chehab #define R_A6_A_CHROMA_SATURATION_CNTL                 0xa6
112cb7a01acSMauro Carvalho Chehab 		/* Horizontal phase scaling */
113cb7a01acSMauro Carvalho Chehab #define R_A8_A_HORIZ_LUMA_SCALING_INC                 0xa8
114cb7a01acSMauro Carvalho Chehab #define R_A9_A_HORIZ_LUMA_SCALING_INC_MSB             0xa9
115cb7a01acSMauro Carvalho Chehab #define R_AA_A_HORIZ_LUMA_PHASE_OFF                   0xaa
116cb7a01acSMauro Carvalho Chehab #define R_AC_A_HORIZ_CHROMA_SCALING_INC               0xac
117cb7a01acSMauro Carvalho Chehab #define R_AD_A_HORIZ_CHROMA_SCALING_INC_MSB           0xad
118cb7a01acSMauro Carvalho Chehab #define R_AE_A_HORIZ_CHROMA_PHASE_OFF                 0xae
119cb7a01acSMauro Carvalho Chehab #define R_AF_A_HORIZ_CHROMA_PHASE_OFF_MSB             0xaf
120cb7a01acSMauro Carvalho Chehab 		/* Vertical scaling */
121cb7a01acSMauro Carvalho Chehab #define R_B0_A_VERT_LUMA_SCALING_INC                  0xb0
122cb7a01acSMauro Carvalho Chehab #define R_B1_A_VERT_LUMA_SCALING_INC_MSB              0xb1
123cb7a01acSMauro Carvalho Chehab #define R_B2_A_VERT_CHROMA_SCALING_INC                0xb2
124cb7a01acSMauro Carvalho Chehab #define R_B3_A_VERT_CHROMA_SCALING_INC_MSB            0xb3
125cb7a01acSMauro Carvalho Chehab #define R_B4_A_VERT_SCALING_MODE_CNTL                 0xb4
126cb7a01acSMauro Carvalho Chehab #define R_B8_A_VERT_CHROMA_PHASE_OFF_00               0xb8
127cb7a01acSMauro Carvalho Chehab #define R_B9_A_VERT_CHROMA_PHASE_OFF_01               0xb9
128cb7a01acSMauro Carvalho Chehab #define R_BA_A_VERT_CHROMA_PHASE_OFF_10               0xba
129cb7a01acSMauro Carvalho Chehab #define R_BB_A_VERT_CHROMA_PHASE_OFF_11               0xbb
130cb7a01acSMauro Carvalho Chehab #define R_BC_A_VERT_LUMA_PHASE_OFF_00                 0xbc
131cb7a01acSMauro Carvalho Chehab #define R_BD_A_VERT_LUMA_PHASE_OFF_01                 0xbd
132cb7a01acSMauro Carvalho Chehab #define R_BE_A_VERT_LUMA_PHASE_OFF_10                 0xbe
133cb7a01acSMauro Carvalho Chehab #define R_BF_A_VERT_LUMA_PHASE_OFF_11                 0xbf
134cb7a01acSMauro Carvalho Chehab 	/* Task B definition */
135cb7a01acSMauro Carvalho Chehab 		/* Basic settings and acquisition window definition */
136cb7a01acSMauro Carvalho Chehab #define R_C0_B_TASK_HANDLING_CNTL                     0xc0
137cb7a01acSMauro Carvalho Chehab #define R_C1_B_X_PORT_FORMATS_AND_CONF                0xc1
138cb7a01acSMauro Carvalho Chehab #define R_C2_B_INPUT_REFERENCE_SIGNAL_DEFINITION      0xc2
139cb7a01acSMauro Carvalho Chehab #define R_C3_B_I_PORT_FORMATS_AND_CONF                0xc3
140cb7a01acSMauro Carvalho Chehab #define R_C4_B_HORIZ_INPUT_WINDOW_START               0xc4
141cb7a01acSMauro Carvalho Chehab #define R_C5_B_HORIZ_INPUT_WINDOW_START_MSB           0xc5
142cb7a01acSMauro Carvalho Chehab #define R_C6_B_HORIZ_INPUT_WINDOW_LENGTH              0xc6
143cb7a01acSMauro Carvalho Chehab #define R_C7_B_HORIZ_INPUT_WINDOW_LENGTH_MSB          0xc7
144cb7a01acSMauro Carvalho Chehab #define R_C8_B_VERT_INPUT_WINDOW_START                0xc8
145cb7a01acSMauro Carvalho Chehab #define R_C9_B_VERT_INPUT_WINDOW_START_MSB            0xc9
146cb7a01acSMauro Carvalho Chehab #define R_CA_B_VERT_INPUT_WINDOW_LENGTH               0xca
147cb7a01acSMauro Carvalho Chehab #define R_CB_B_VERT_INPUT_WINDOW_LENGTH_MSB           0xcb
148cb7a01acSMauro Carvalho Chehab #define R_CC_B_HORIZ_OUTPUT_WINDOW_LENGTH             0xcc
149cb7a01acSMauro Carvalho Chehab #define R_CD_B_HORIZ_OUTPUT_WINDOW_LENGTH_MSB         0xcd
150cb7a01acSMauro Carvalho Chehab #define R_CE_B_VERT_OUTPUT_WINDOW_LENGTH              0xce
151cb7a01acSMauro Carvalho Chehab #define R_CF_B_VERT_OUTPUT_WINDOW_LENGTH_MSB          0xcf
152cb7a01acSMauro Carvalho Chehab 		/* FIR filtering and prescaling */
153cb7a01acSMauro Carvalho Chehab #define R_D0_B_HORIZ_PRESCALING                       0xd0
154cb7a01acSMauro Carvalho Chehab #define R_D1_B_ACCUMULATION_LENGTH                    0xd1
155cb7a01acSMauro Carvalho Chehab #define R_D2_B_PRESCALER_DC_GAIN_AND_FIR_PREFILTER    0xd2
156cb7a01acSMauro Carvalho Chehab #define R_D4_B_LUMA_BRIGHTNESS_CNTL                   0xd4
157cb7a01acSMauro Carvalho Chehab #define R_D5_B_LUMA_CONTRAST_CNTL                     0xd5
158cb7a01acSMauro Carvalho Chehab #define R_D6_B_CHROMA_SATURATION_CNTL                 0xd6
159cb7a01acSMauro Carvalho Chehab 		/* Horizontal phase scaling */
160cb7a01acSMauro Carvalho Chehab #define R_D8_B_HORIZ_LUMA_SCALING_INC                 0xd8
161cb7a01acSMauro Carvalho Chehab #define R_D9_B_HORIZ_LUMA_SCALING_INC_MSB             0xd9
162cb7a01acSMauro Carvalho Chehab #define R_DA_B_HORIZ_LUMA_PHASE_OFF                   0xda
163cb7a01acSMauro Carvalho Chehab #define R_DC_B_HORIZ_CHROMA_SCALING                   0xdc
164cb7a01acSMauro Carvalho Chehab #define R_DD_B_HORIZ_CHROMA_SCALING_MSB               0xdd
165cb7a01acSMauro Carvalho Chehab #define R_DE_B_HORIZ_PHASE_OFFSET_CRHOMA              0xde
166cb7a01acSMauro Carvalho Chehab 		/* Vertical scaling */
167cb7a01acSMauro Carvalho Chehab #define R_E0_B_VERT_LUMA_SCALING_INC                  0xe0
168cb7a01acSMauro Carvalho Chehab #define R_E1_B_VERT_LUMA_SCALING_INC_MSB              0xe1
169cb7a01acSMauro Carvalho Chehab #define R_E2_B_VERT_CHROMA_SCALING_INC                0xe2
170cb7a01acSMauro Carvalho Chehab #define R_E3_B_VERT_CHROMA_SCALING_INC_MSB            0xe3
171cb7a01acSMauro Carvalho Chehab #define R_E4_B_VERT_SCALING_MODE_CNTL                 0xe4
172cb7a01acSMauro Carvalho Chehab #define R_E8_B_VERT_CHROMA_PHASE_OFF_00               0xe8
173cb7a01acSMauro Carvalho Chehab #define R_E9_B_VERT_CHROMA_PHASE_OFF_01               0xe9
174cb7a01acSMauro Carvalho Chehab #define R_EA_B_VERT_CHROMA_PHASE_OFF_10               0xea
175cb7a01acSMauro Carvalho Chehab #define R_EB_B_VERT_CHROMA_PHASE_OFF_11               0xeb
176cb7a01acSMauro Carvalho Chehab #define R_EC_B_VERT_LUMA_PHASE_OFF_00                 0xec
177cb7a01acSMauro Carvalho Chehab #define R_ED_B_VERT_LUMA_PHASE_OFF_01                 0xed
178cb7a01acSMauro Carvalho Chehab #define R_EE_B_VERT_LUMA_PHASE_OFF_10                 0xee
179cb7a01acSMauro Carvalho Chehab #define R_EF_B_VERT_LUMA_PHASE_OFF_11                 0xef
180cb7a01acSMauro Carvalho Chehab 
181cb7a01acSMauro Carvalho Chehab /* second PLL (PLL2) and Pulsegenerator Programming */
182cb7a01acSMauro Carvalho Chehab #define R_F0_LFCO_PER_LINE                            0xf0
183cb7a01acSMauro Carvalho Chehab #define R_F1_P_I_PARAM_SELECT                         0xf1
184cb7a01acSMauro Carvalho Chehab #define R_F2_NOMINAL_PLL2_DTO                         0xf2
185cb7a01acSMauro Carvalho Chehab #define R_F3_PLL_INCREMENT                            0xf3
186cb7a01acSMauro Carvalho Chehab #define R_F4_PLL2_STATUS                              0xf4
187cb7a01acSMauro Carvalho Chehab #define R_F5_PULSGEN_LINE_LENGTH                      0xf5
188cb7a01acSMauro Carvalho Chehab #define R_F6_PULSE_A_POS_LSB_AND_PULSEGEN_CONFIG      0xf6
189cb7a01acSMauro Carvalho Chehab #define R_F7_PULSE_A_POS_MSB                          0xf7
190cb7a01acSMauro Carvalho Chehab #define R_F8_PULSE_B_POS                              0xf8
191cb7a01acSMauro Carvalho Chehab #define R_F9_PULSE_B_POS_MSB                          0xf9
192cb7a01acSMauro Carvalho Chehab #define R_FA_PULSE_C_POS                              0xfa
193cb7a01acSMauro Carvalho Chehab #define R_FB_PULSE_C_POS_MSB                          0xfb
194cb7a01acSMauro Carvalho Chehab #define R_FF_S_PLL_MAX_PHASE_ERR_THRESH_NUM_LINES     0xff
195cb7a01acSMauro Carvalho Chehab 
1968b77dfddSJon Arne Jørgensen /* SAA7113 bit-masks */
1972ccf12afSJon Arne Jørgensen #define SAA7113_R_08_HTC_OFFSET 3
1982ccf12afSJon Arne Jørgensen #define SAA7113_R_08_HTC_MASK (0x3 << SAA7113_R_08_HTC_OFFSET)
1998b77dfddSJon Arne Jørgensen #define SAA7113_R_08_FSEL 0x40
2008b77dfddSJon Arne Jørgensen #define SAA7113_R_08_AUFD 0x80
2018b77dfddSJon Arne Jørgensen 
2022ccf12afSJon Arne Jørgensen #define SAA7113_R_10_VRLN_OFFSET 3
2032ccf12afSJon Arne Jørgensen #define SAA7113_R_10_VRLN_MASK (0x1 << SAA7113_R_10_VRLN_OFFSET)
2042ccf12afSJon Arne Jørgensen #define SAA7113_R_10_OFTS_OFFSET 6
2052ccf12afSJon Arne Jørgensen #define SAA7113_R_10_OFTS_MASK (0x3 << SAA7113_R_10_OFTS_OFFSET)
2062ccf12afSJon Arne Jørgensen 
2072ccf12afSJon Arne Jørgensen #define SAA7113_R_12_RTS0_OFFSET 0
2082ccf12afSJon Arne Jørgensen #define SAA7113_R_12_RTS0_MASK (0xf << SAA7113_R_12_RTS0_OFFSET)
2092ccf12afSJon Arne Jørgensen #define SAA7113_R_12_RTS1_OFFSET 4
2102ccf12afSJon Arne Jørgensen #define SAA7113_R_12_RTS1_MASK (0xf << SAA7113_R_12_RTS1_OFFSET)
2112ccf12afSJon Arne Jørgensen 
2122ccf12afSJon Arne Jørgensen #define SAA7113_R_13_ADLSB_OFFSET 7
2132ccf12afSJon Arne Jørgensen #define SAA7113_R_13_ADLSB_MASK (0x1 << SAA7113_R_13_ADLSB_OFFSET)
2142ccf12afSJon Arne Jørgensen 
215cb7a01acSMauro Carvalho Chehab #if 0
216cb7a01acSMauro Carvalho Chehab /* Those structs will be used in the future for debug purposes */
217cb7a01acSMauro Carvalho Chehab struct saa711x_reg_descr {
218cb7a01acSMauro Carvalho Chehab 	u8 reg;
219cb7a01acSMauro Carvalho Chehab 	int count;
220cb7a01acSMauro Carvalho Chehab 	char *name;
221cb7a01acSMauro Carvalho Chehab };
222cb7a01acSMauro Carvalho Chehab 
223cb7a01acSMauro Carvalho Chehab struct saa711x_reg_descr saa711x_regs[] = {
224cb7a01acSMauro Carvalho Chehab 	/* REG COUNT NAME */
225cb7a01acSMauro Carvalho Chehab 	{R_00_CHIP_VERSION,1,
226cb7a01acSMauro Carvalho Chehab 	 "Chip version"},
227cb7a01acSMauro Carvalho Chehab 
228cb7a01acSMauro Carvalho Chehab 	/* Video Decoder: R_01_INC_DELAY to R_1F_STATUS_BYTE_2_VD_DEC */
229cb7a01acSMauro Carvalho Chehab 
230cb7a01acSMauro Carvalho Chehab 	/* Video Decoder - Frontend part: R_01_INC_DELAY to R_05_INPUT_CNTL_4 */
231cb7a01acSMauro Carvalho Chehab 	{R_01_INC_DELAY,1,
232cb7a01acSMauro Carvalho Chehab 	 "Increment delay"},
233cb7a01acSMauro Carvalho Chehab 	{R_02_INPUT_CNTL_1,1,
234cb7a01acSMauro Carvalho Chehab 	 "Analog input control 1"},
235cb7a01acSMauro Carvalho Chehab 	{R_03_INPUT_CNTL_2,1,
236cb7a01acSMauro Carvalho Chehab 	 "Analog input control 2"},
237cb7a01acSMauro Carvalho Chehab 	{R_04_INPUT_CNTL_3,1,
238cb7a01acSMauro Carvalho Chehab 	 "Analog input control 3"},
239cb7a01acSMauro Carvalho Chehab 	{R_05_INPUT_CNTL_4,1,
240cb7a01acSMauro Carvalho Chehab 	 "Analog input control 4"},
241cb7a01acSMauro Carvalho Chehab 
242cb7a01acSMauro Carvalho Chehab 	/* Video Decoder - Decoder part: R_06_H_SYNC_START to R_1F_STATUS_BYTE_2_VD_DEC */
243cb7a01acSMauro Carvalho Chehab 	{R_06_H_SYNC_START,1,
244cb7a01acSMauro Carvalho Chehab 	 "Horizontal sync start"},
245cb7a01acSMauro Carvalho Chehab 	{R_07_H_SYNC_STOP,1,
246cb7a01acSMauro Carvalho Chehab 	 "Horizontal sync stop"},
247cb7a01acSMauro Carvalho Chehab 	{R_08_SYNC_CNTL,1,
248cb7a01acSMauro Carvalho Chehab 	 "Sync control"},
249cb7a01acSMauro Carvalho Chehab 	{R_09_LUMA_CNTL,1,
250cb7a01acSMauro Carvalho Chehab 	 "Luminance control"},
251cb7a01acSMauro Carvalho Chehab 	{R_0A_LUMA_BRIGHT_CNTL,1,
252cb7a01acSMauro Carvalho Chehab 	 "Luminance brightness control"},
253cb7a01acSMauro Carvalho Chehab 	{R_0B_LUMA_CONTRAST_CNTL,1,
254cb7a01acSMauro Carvalho Chehab 	 "Luminance contrast control"},
255cb7a01acSMauro Carvalho Chehab 	{R_0C_CHROMA_SAT_CNTL,1,
256cb7a01acSMauro Carvalho Chehab 	 "Chrominance saturation control"},
257cb7a01acSMauro Carvalho Chehab 	{R_0D_CHROMA_HUE_CNTL,1,
258cb7a01acSMauro Carvalho Chehab 	 "Chrominance hue control"},
259cb7a01acSMauro Carvalho Chehab 	{R_0E_CHROMA_CNTL_1,1,
260cb7a01acSMauro Carvalho Chehab 	 "Chrominance control 1"},
261cb7a01acSMauro Carvalho Chehab 	{R_0F_CHROMA_GAIN_CNTL,1,
262cb7a01acSMauro Carvalho Chehab 	 "Chrominance gain control"},
263cb7a01acSMauro Carvalho Chehab 	{R_10_CHROMA_CNTL_2,1,
264cb7a01acSMauro Carvalho Chehab 	 "Chrominance control 2"},
265cb7a01acSMauro Carvalho Chehab 	{R_11_MODE_DELAY_CNTL,1,
266cb7a01acSMauro Carvalho Chehab 	 "Mode/delay control"},
267cb7a01acSMauro Carvalho Chehab 	{R_12_RT_SIGNAL_CNTL,1,
268cb7a01acSMauro Carvalho Chehab 	 "RT signal control"},
269cb7a01acSMauro Carvalho Chehab 	{R_13_RT_X_PORT_OUT_CNTL,1,
270cb7a01acSMauro Carvalho Chehab 	 "RT/X port output control"},
271cb7a01acSMauro Carvalho Chehab 	{R_14_ANAL_ADC_COMPAT_CNTL,1,
272cb7a01acSMauro Carvalho Chehab 	 "Analog/ADC/compatibility control"},
273cb7a01acSMauro Carvalho Chehab 	{R_15_VGATE_START_FID_CHG,  1,
274cb7a01acSMauro Carvalho Chehab 	 "VGATE start FID change"},
275cb7a01acSMauro Carvalho Chehab 	{R_16_VGATE_STOP,1,
276cb7a01acSMauro Carvalho Chehab 	 "VGATE stop"},
277cb7a01acSMauro Carvalho Chehab 	{R_17_MISC_VGATE_CONF_AND_MSB,  1,
278cb7a01acSMauro Carvalho Chehab 	 "Miscellaneous VGATE configuration and MSBs"},
279cb7a01acSMauro Carvalho Chehab 	{R_18_RAW_DATA_GAIN_CNTL,1,
280cb7a01acSMauro Carvalho Chehab 	 "Raw data gain control",},
281cb7a01acSMauro Carvalho Chehab 	{R_19_RAW_DATA_OFF_CNTL,1,
282cb7a01acSMauro Carvalho Chehab 	 "Raw data offset control",},
283cb7a01acSMauro Carvalho Chehab 	{R_1A_COLOR_KILL_LVL_CNTL,1,
284cb7a01acSMauro Carvalho Chehab 	 "Color Killer Level Control"},
285cb7a01acSMauro Carvalho Chehab 	{ R_1B_MISC_TVVCRDET, 1,
286cb7a01acSMauro Carvalho Chehab 	  "MISC /TVVCRDET"},
287cb7a01acSMauro Carvalho Chehab 	{ R_1C_ENHAN_COMB_CTRL1, 1,
288cb7a01acSMauro Carvalho Chehab 	 "Enhanced comb ctrl1"},
289cb7a01acSMauro Carvalho Chehab 	{ R_1D_ENHAN_COMB_CTRL2, 1,
290cb7a01acSMauro Carvalho Chehab 	 "Enhanced comb ctrl1"},
291cb7a01acSMauro Carvalho Chehab 	{R_1E_STATUS_BYTE_1_VD_DEC,1,
292cb7a01acSMauro Carvalho Chehab 	 "Status byte 1 video decoder"},
293cb7a01acSMauro Carvalho Chehab 	{R_1F_STATUS_BYTE_2_VD_DEC,1,
294cb7a01acSMauro Carvalho Chehab 	 "Status byte 2 video decoder"},
295cb7a01acSMauro Carvalho Chehab 
296cb7a01acSMauro Carvalho Chehab 	/* Component processing and interrupt masking part:  0x20h to R_2F_INTERRUPT_MASK_3 */
297cb7a01acSMauro Carvalho Chehab 	/* 0x20 to 0x22 - Reserved */
298cb7a01acSMauro Carvalho Chehab 	{R_23_INPUT_CNTL_5,1,
299cb7a01acSMauro Carvalho Chehab 	 "Analog input control 5"},
300cb7a01acSMauro Carvalho Chehab 	{R_24_INPUT_CNTL_6,1,
301cb7a01acSMauro Carvalho Chehab 	 "Analog input control 6"},
302cb7a01acSMauro Carvalho Chehab 	{R_25_INPUT_CNTL_7,1,
303cb7a01acSMauro Carvalho Chehab 	 "Analog input control 7"},
304cb7a01acSMauro Carvalho Chehab 	/* 0x26 to 0x28 - Reserved */
305cb7a01acSMauro Carvalho Chehab 	{R_29_COMP_DELAY,1,
306cb7a01acSMauro Carvalho Chehab 	 "Component delay"},
307cb7a01acSMauro Carvalho Chehab 	{R_2A_COMP_BRIGHT_CNTL,1,
308cb7a01acSMauro Carvalho Chehab 	 "Component brightness control"},
309cb7a01acSMauro Carvalho Chehab 	{R_2B_COMP_CONTRAST_CNTL,1,
310cb7a01acSMauro Carvalho Chehab 	 "Component contrast control"},
311cb7a01acSMauro Carvalho Chehab 	{R_2C_COMP_SAT_CNTL,1,
312cb7a01acSMauro Carvalho Chehab 	 "Component saturation control"},
313cb7a01acSMauro Carvalho Chehab 	{R_2D_INTERRUPT_MASK_1,1,
314cb7a01acSMauro Carvalho Chehab 	 "Interrupt mask 1"},
315cb7a01acSMauro Carvalho Chehab 	{R_2E_INTERRUPT_MASK_2,1,
316cb7a01acSMauro Carvalho Chehab 	 "Interrupt mask 2"},
317cb7a01acSMauro Carvalho Chehab 	{R_2F_INTERRUPT_MASK_3,1,
318cb7a01acSMauro Carvalho Chehab 	 "Interrupt mask 3"},
319cb7a01acSMauro Carvalho Chehab 
320cb7a01acSMauro Carvalho Chehab 	/* Audio clock generator part: R_30_AUD_MAST_CLK_CYCLES_PER_FIELD to 0x3f */
321cb7a01acSMauro Carvalho Chehab 	{R_30_AUD_MAST_CLK_CYCLES_PER_FIELD,3,
322cb7a01acSMauro Carvalho Chehab 	 "Audio master clock cycles per field"},
323cb7a01acSMauro Carvalho Chehab 	/* 0x33 - Reserved */
324cb7a01acSMauro Carvalho Chehab 	{R_34_AUD_MAST_CLK_NOMINAL_INC,3,
325cb7a01acSMauro Carvalho Chehab 	 "Audio master clock nominal increment"},
326cb7a01acSMauro Carvalho Chehab 	/* 0x37 - Reserved */
327cb7a01acSMauro Carvalho Chehab 	{R_38_CLK_RATIO_AMXCLK_TO_ASCLK,1,
328cb7a01acSMauro Carvalho Chehab 	 "Clock ratio AMXCLK to ASCLK"},
329cb7a01acSMauro Carvalho Chehab 	{R_39_CLK_RATIO_ASCLK_TO_ALRCLK,1,
330cb7a01acSMauro Carvalho Chehab 	 "Clock ratio ASCLK to ALRCLK"},
331cb7a01acSMauro Carvalho Chehab 	{R_3A_AUD_CLK_GEN_BASIC_SETUP,1,
332cb7a01acSMauro Carvalho Chehab 	 "Audio clock generator basic setup"},
333cb7a01acSMauro Carvalho Chehab 	/* 0x3b-0x3f - Reserved */
334cb7a01acSMauro Carvalho Chehab 
335cb7a01acSMauro Carvalho Chehab 	/* General purpose VBI data slicer part: R_40_SLICER_CNTL_1 to 0x7f */
336cb7a01acSMauro Carvalho Chehab 	{R_40_SLICER_CNTL_1,1,
337cb7a01acSMauro Carvalho Chehab 	 "Slicer control 1"},
338cb7a01acSMauro Carvalho Chehab 	{R_41_LCR,23,
339cb7a01acSMauro Carvalho Chehab 	 "R_41_LCR"},
340cb7a01acSMauro Carvalho Chehab 	{R_58_PROGRAM_FRAMING_CODE,1,
341cb7a01acSMauro Carvalho Chehab 	 "Programmable framing code"},
342cb7a01acSMauro Carvalho Chehab 	{R_59_H_OFF_FOR_SLICER,1,
343cb7a01acSMauro Carvalho Chehab 	 "Horizontal offset for slicer"},
344cb7a01acSMauro Carvalho Chehab 	{R_5A_V_OFF_FOR_SLICER,1,
345cb7a01acSMauro Carvalho Chehab 	 "Vertical offset for slicer"},
346cb7a01acSMauro Carvalho Chehab 	{R_5B_FLD_OFF_AND_MSB_FOR_H_AND_V_OFF,1,
347cb7a01acSMauro Carvalho Chehab 	 "Field offset and MSBs for horizontal and vertical offset"},
348cb7a01acSMauro Carvalho Chehab 	{R_5D_DID,1,
349cb7a01acSMauro Carvalho Chehab 	 "Header and data identification (R_5D_DID)"},
350cb7a01acSMauro Carvalho Chehab 	{R_5E_SDID,1,
351cb7a01acSMauro Carvalho Chehab 	 "Sliced data identification (R_5E_SDID) code"},
352cb7a01acSMauro Carvalho Chehab 	{R_60_SLICER_STATUS_BYTE_0,1,
353cb7a01acSMauro Carvalho Chehab 	 "Slicer status byte 0"},
354cb7a01acSMauro Carvalho Chehab 	{R_61_SLICER_STATUS_BYTE_1,1,
355cb7a01acSMauro Carvalho Chehab 	 "Slicer status byte 1"},
356cb7a01acSMauro Carvalho Chehab 	{R_62_SLICER_STATUS_BYTE_2,1,
357cb7a01acSMauro Carvalho Chehab 	 "Slicer status byte 2"},
358cb7a01acSMauro Carvalho Chehab 	/* 0x63-0x7f - Reserved */
359cb7a01acSMauro Carvalho Chehab 
360cb7a01acSMauro Carvalho Chehab 	/* X port, I port and the scaler part: R_80_GLOBAL_CNTL_1 to R_EF_B_VERT_LUMA_PHASE_OFF_11 */
361cb7a01acSMauro Carvalho Chehab 	/* Task independent global settings: R_80_GLOBAL_CNTL_1 to R_8F_STATUS_INFO_SCALER */
362cb7a01acSMauro Carvalho Chehab 	{R_80_GLOBAL_CNTL_1,1,
363cb7a01acSMauro Carvalho Chehab 	 "Global control 1"},
364cb7a01acSMauro Carvalho Chehab 	{R_81_V_SYNC_FLD_ID_SRC_SEL_AND_RETIMED_V_F,1,
365cb7a01acSMauro Carvalho Chehab 	 "Vertical sync and Field ID source selection, retimed V and F signals"},
366cb7a01acSMauro Carvalho Chehab 	/* 0x82 - Reserved */
367cb7a01acSMauro Carvalho Chehab 	{R_83_X_PORT_I_O_ENA_AND_OUT_CLK,1,
368cb7a01acSMauro Carvalho Chehab 	 "X port I/O enable and output clock"},
369cb7a01acSMauro Carvalho Chehab 	{R_84_I_PORT_SIGNAL_DEF,1,
370cb7a01acSMauro Carvalho Chehab 	 "I port signal definitions"},
371cb7a01acSMauro Carvalho Chehab 	{R_85_I_PORT_SIGNAL_POLAR,1,
372cb7a01acSMauro Carvalho Chehab 	 "I port signal polarities"},
373cb7a01acSMauro Carvalho Chehab 	{R_86_I_PORT_FIFO_FLAG_CNTL_AND_ARBIT,1,
374cb7a01acSMauro Carvalho Chehab 	 "I port FIFO flag control and arbitration"},
375cb7a01acSMauro Carvalho Chehab 	{R_87_I_PORT_I_O_ENA_OUT_CLK_AND_GATED,  1,
376cb7a01acSMauro Carvalho Chehab 	 "I port I/O enable output clock and gated"},
377cb7a01acSMauro Carvalho Chehab 	{R_88_POWER_SAVE_ADC_PORT_CNTL,1,
378cb7a01acSMauro Carvalho Chehab 	 "Power save/ADC port control"},
379cb7a01acSMauro Carvalho Chehab 	/* 089-0x8e - Reserved */
380cb7a01acSMauro Carvalho Chehab 	{R_8F_STATUS_INFO_SCALER,1,
381cb7a01acSMauro Carvalho Chehab 	 "Status information scaler part"},
382cb7a01acSMauro Carvalho Chehab 
383cb7a01acSMauro Carvalho Chehab 	/* Task A definition: R_90_A_TASK_HANDLING_CNTL to R_BF_A_VERT_LUMA_PHASE_OFF_11 */
384cb7a01acSMauro Carvalho Chehab 	/* Task A: Basic settings and acquisition window definition */
385cb7a01acSMauro Carvalho Chehab 	{R_90_A_TASK_HANDLING_CNTL,1,
386cb7a01acSMauro Carvalho Chehab 	 "Task A: Task handling control"},
387cb7a01acSMauro Carvalho Chehab 	{R_91_A_X_PORT_FORMATS_AND_CONF,1,
388cb7a01acSMauro Carvalho Chehab 	 "Task A: X port formats and configuration"},
389cb7a01acSMauro Carvalho Chehab 	{R_92_A_X_PORT_INPUT_REFERENCE_SIGNAL,1,
390cb7a01acSMauro Carvalho Chehab 	 "Task A: X port input reference signal definition"},
391cb7a01acSMauro Carvalho Chehab 	{R_93_A_I_PORT_OUTPUT_FORMATS_AND_CONF,1,
392cb7a01acSMauro Carvalho Chehab 	 "Task A: I port output formats and configuration"},
393cb7a01acSMauro Carvalho Chehab 	{R_94_A_HORIZ_INPUT_WINDOW_START,2,
394cb7a01acSMauro Carvalho Chehab 	 "Task A: Horizontal input window start"},
395cb7a01acSMauro Carvalho Chehab 	{R_96_A_HORIZ_INPUT_WINDOW_LENGTH,2,
396cb7a01acSMauro Carvalho Chehab 	 "Task A: Horizontal input window length"},
397cb7a01acSMauro Carvalho Chehab 	{R_98_A_VERT_INPUT_WINDOW_START,2,
398cb7a01acSMauro Carvalho Chehab 	 "Task A: Vertical input window start"},
399cb7a01acSMauro Carvalho Chehab 	{R_9A_A_VERT_INPUT_WINDOW_LENGTH,2,
400cb7a01acSMauro Carvalho Chehab 	 "Task A: Vertical input window length"},
401cb7a01acSMauro Carvalho Chehab 	{R_9C_A_HORIZ_OUTPUT_WINDOW_LENGTH,2,
402cb7a01acSMauro Carvalho Chehab 	 "Task A: Horizontal output window length"},
403cb7a01acSMauro Carvalho Chehab 	{R_9E_A_VERT_OUTPUT_WINDOW_LENGTH,2,
404cb7a01acSMauro Carvalho Chehab 	 "Task A: Vertical output window length"},
405cb7a01acSMauro Carvalho Chehab 
406cb7a01acSMauro Carvalho Chehab 	/* Task A: FIR filtering and prescaling */
407cb7a01acSMauro Carvalho Chehab 	{R_A0_A_HORIZ_PRESCALING,1,
408cb7a01acSMauro Carvalho Chehab 	 "Task A: Horizontal prescaling"},
409cb7a01acSMauro Carvalho Chehab 	{R_A1_A_ACCUMULATION_LENGTH,1,
410cb7a01acSMauro Carvalho Chehab 	 "Task A: Accumulation length"},
411cb7a01acSMauro Carvalho Chehab 	{R_A2_A_PRESCALER_DC_GAIN_AND_FIR_PREFILTER,1,
412cb7a01acSMauro Carvalho Chehab 	 "Task A: Prescaler DC gain and FIR prefilter"},
413cb7a01acSMauro Carvalho Chehab 	/* 0xa3 - Reserved */
414cb7a01acSMauro Carvalho Chehab 	{R_A4_A_LUMA_BRIGHTNESS_CNTL,1,
415cb7a01acSMauro Carvalho Chehab 	 "Task A: Luminance brightness control"},
416cb7a01acSMauro Carvalho Chehab 	{R_A5_A_LUMA_CONTRAST_CNTL,1,
417cb7a01acSMauro Carvalho Chehab 	 "Task A: Luminance contrast control"},
418cb7a01acSMauro Carvalho Chehab 	{R_A6_A_CHROMA_SATURATION_CNTL,1,
419cb7a01acSMauro Carvalho Chehab 	 "Task A: Chrominance saturation control"},
420cb7a01acSMauro Carvalho Chehab 	/* 0xa7 - Reserved */
421cb7a01acSMauro Carvalho Chehab 
422cb7a01acSMauro Carvalho Chehab 	/* Task A: Horizontal phase scaling */
423cb7a01acSMauro Carvalho Chehab 	{R_A8_A_HORIZ_LUMA_SCALING_INC,2,
424cb7a01acSMauro Carvalho Chehab 	 "Task A: Horizontal luminance scaling increment"},
425cb7a01acSMauro Carvalho Chehab 	{R_AA_A_HORIZ_LUMA_PHASE_OFF,1,
426cb7a01acSMauro Carvalho Chehab 	 "Task A: Horizontal luminance phase offset"},
427cb7a01acSMauro Carvalho Chehab 	/* 0xab - Reserved */
428cb7a01acSMauro Carvalho Chehab 	{R_AC_A_HORIZ_CHROMA_SCALING_INC,2,
429cb7a01acSMauro Carvalho Chehab 	 "Task A: Horizontal chrominance scaling increment"},
430cb7a01acSMauro Carvalho Chehab 	{R_AE_A_HORIZ_CHROMA_PHASE_OFF,1,
431cb7a01acSMauro Carvalho Chehab 	 "Task A: Horizontal chrominance phase offset"},
432cb7a01acSMauro Carvalho Chehab 	/* 0xaf - Reserved */
433cb7a01acSMauro Carvalho Chehab 
434cb7a01acSMauro Carvalho Chehab 	/* Task A: Vertical scaling */
435cb7a01acSMauro Carvalho Chehab 	{R_B0_A_VERT_LUMA_SCALING_INC,2,
436cb7a01acSMauro Carvalho Chehab 	 "Task A: Vertical luminance scaling increment"},
437cb7a01acSMauro Carvalho Chehab 	{R_B2_A_VERT_CHROMA_SCALING_INC,2,
438cb7a01acSMauro Carvalho Chehab 	 "Task A: Vertical chrominance scaling increment"},
439cb7a01acSMauro Carvalho Chehab 	{R_B4_A_VERT_SCALING_MODE_CNTL,1,
440cb7a01acSMauro Carvalho Chehab 	 "Task A: Vertical scaling mode control"},
441cb7a01acSMauro Carvalho Chehab 	/* 0xb5-0xb7 - Reserved */
442cb7a01acSMauro Carvalho Chehab 	{R_B8_A_VERT_CHROMA_PHASE_OFF_00,1,
443cb7a01acSMauro Carvalho Chehab 	 "Task A: Vertical chrominance phase offset '00'"},
444cb7a01acSMauro Carvalho Chehab 	{R_B9_A_VERT_CHROMA_PHASE_OFF_01,1,
445cb7a01acSMauro Carvalho Chehab 	 "Task A: Vertical chrominance phase offset '01'"},
446cb7a01acSMauro Carvalho Chehab 	{R_BA_A_VERT_CHROMA_PHASE_OFF_10,1,
447cb7a01acSMauro Carvalho Chehab 	 "Task A: Vertical chrominance phase offset '10'"},
448cb7a01acSMauro Carvalho Chehab 	{R_BB_A_VERT_CHROMA_PHASE_OFF_11,1,
449cb7a01acSMauro Carvalho Chehab 	 "Task A: Vertical chrominance phase offset '11'"},
450cb7a01acSMauro Carvalho Chehab 	{R_BC_A_VERT_LUMA_PHASE_OFF_00,1,
451cb7a01acSMauro Carvalho Chehab 	 "Task A: Vertical luminance phase offset '00'"},
452cb7a01acSMauro Carvalho Chehab 	{R_BD_A_VERT_LUMA_PHASE_OFF_01,1,
453cb7a01acSMauro Carvalho Chehab 	 "Task A: Vertical luminance phase offset '01'"},
454cb7a01acSMauro Carvalho Chehab 	{R_BE_A_VERT_LUMA_PHASE_OFF_10,1,
455cb7a01acSMauro Carvalho Chehab 	 "Task A: Vertical luminance phase offset '10'"},
456cb7a01acSMauro Carvalho Chehab 	{R_BF_A_VERT_LUMA_PHASE_OFF_11,1,
457cb7a01acSMauro Carvalho Chehab 	 "Task A: Vertical luminance phase offset '11'"},
458cb7a01acSMauro Carvalho Chehab 
459cb7a01acSMauro Carvalho Chehab 	/* Task B definition: R_C0_B_TASK_HANDLING_CNTL to R_EF_B_VERT_LUMA_PHASE_OFF_11 */
460cb7a01acSMauro Carvalho Chehab 	/* Task B: Basic settings and acquisition window definition */
461cb7a01acSMauro Carvalho Chehab 	{R_C0_B_TASK_HANDLING_CNTL,1,
462cb7a01acSMauro Carvalho Chehab 	 "Task B: Task handling control"},
463cb7a01acSMauro Carvalho Chehab 	{R_C1_B_X_PORT_FORMATS_AND_CONF,1,
464cb7a01acSMauro Carvalho Chehab 	 "Task B: X port formats and configuration"},
465cb7a01acSMauro Carvalho Chehab 	{R_C2_B_INPUT_REFERENCE_SIGNAL_DEFINITION,1,
466cb7a01acSMauro Carvalho Chehab 	 "Task B: Input reference signal definition"},
467cb7a01acSMauro Carvalho Chehab 	{R_C3_B_I_PORT_FORMATS_AND_CONF,1,
468cb7a01acSMauro Carvalho Chehab 	 "Task B: I port formats and configuration"},
469cb7a01acSMauro Carvalho Chehab 	{R_C4_B_HORIZ_INPUT_WINDOW_START,2,
470cb7a01acSMauro Carvalho Chehab 	 "Task B: Horizontal input window start"},
471cb7a01acSMauro Carvalho Chehab 	{R_C6_B_HORIZ_INPUT_WINDOW_LENGTH,2,
472cb7a01acSMauro Carvalho Chehab 	 "Task B: Horizontal input window length"},
473cb7a01acSMauro Carvalho Chehab 	{R_C8_B_VERT_INPUT_WINDOW_START,2,
474cb7a01acSMauro Carvalho Chehab 	 "Task B: Vertical input window start"},
475cb7a01acSMauro Carvalho Chehab 	{R_CA_B_VERT_INPUT_WINDOW_LENGTH,2,
476cb7a01acSMauro Carvalho Chehab 	 "Task B: Vertical input window length"},
477cb7a01acSMauro Carvalho Chehab 	{R_CC_B_HORIZ_OUTPUT_WINDOW_LENGTH,2,
478cb7a01acSMauro Carvalho Chehab 	 "Task B: Horizontal output window length"},
479cb7a01acSMauro Carvalho Chehab 	{R_CE_B_VERT_OUTPUT_WINDOW_LENGTH,2,
480cb7a01acSMauro Carvalho Chehab 	 "Task B: Vertical output window length"},
481cb7a01acSMauro Carvalho Chehab 
482cb7a01acSMauro Carvalho Chehab 	/* Task B: FIR filtering and prescaling */
483cb7a01acSMauro Carvalho Chehab 	{R_D0_B_HORIZ_PRESCALING,1,
484cb7a01acSMauro Carvalho Chehab 	 "Task B: Horizontal prescaling"},
485cb7a01acSMauro Carvalho Chehab 	{R_D1_B_ACCUMULATION_LENGTH,1,
486cb7a01acSMauro Carvalho Chehab 	 "Task B: Accumulation length"},
487cb7a01acSMauro Carvalho Chehab 	{R_D2_B_PRESCALER_DC_GAIN_AND_FIR_PREFILTER,1,
488cb7a01acSMauro Carvalho Chehab 	 "Task B: Prescaler DC gain and FIR prefilter"},
489cb7a01acSMauro Carvalho Chehab 	/* 0xd3 - Reserved */
490cb7a01acSMauro Carvalho Chehab 	{R_D4_B_LUMA_BRIGHTNESS_CNTL,1,
491cb7a01acSMauro Carvalho Chehab 	 "Task B: Luminance brightness control"},
492cb7a01acSMauro Carvalho Chehab 	{R_D5_B_LUMA_CONTRAST_CNTL,1,
493cb7a01acSMauro Carvalho Chehab 	 "Task B: Luminance contrast control"},
494cb7a01acSMauro Carvalho Chehab 	{R_D6_B_CHROMA_SATURATION_CNTL,1,
495cb7a01acSMauro Carvalho Chehab 	 "Task B: Chrominance saturation control"},
496cb7a01acSMauro Carvalho Chehab 	/* 0xd7 - Reserved */
497cb7a01acSMauro Carvalho Chehab 
498cb7a01acSMauro Carvalho Chehab 	/* Task B: Horizontal phase scaling */
499cb7a01acSMauro Carvalho Chehab 	{R_D8_B_HORIZ_LUMA_SCALING_INC,2,
500cb7a01acSMauro Carvalho Chehab 	 "Task B: Horizontal luminance scaling increment"},
501cb7a01acSMauro Carvalho Chehab 	{R_DA_B_HORIZ_LUMA_PHASE_OFF,1,
502cb7a01acSMauro Carvalho Chehab 	 "Task B: Horizontal luminance phase offset"},
503cb7a01acSMauro Carvalho Chehab 	/* 0xdb - Reserved */
504cb7a01acSMauro Carvalho Chehab 	{R_DC_B_HORIZ_CHROMA_SCALING,2,
505cb7a01acSMauro Carvalho Chehab 	 "Task B: Horizontal chrominance scaling"},
506cb7a01acSMauro Carvalho Chehab 	{R_DE_B_HORIZ_PHASE_OFFSET_CRHOMA,1,
507cb7a01acSMauro Carvalho Chehab 	 "Task B: Horizontal Phase Offset Chroma"},
508cb7a01acSMauro Carvalho Chehab 	/* 0xdf - Reserved */
509cb7a01acSMauro Carvalho Chehab 
510cb7a01acSMauro Carvalho Chehab 	/* Task B: Vertical scaling */
511cb7a01acSMauro Carvalho Chehab 	{R_E0_B_VERT_LUMA_SCALING_INC,2,
512cb7a01acSMauro Carvalho Chehab 	 "Task B: Vertical luminance scaling increment"},
513cb7a01acSMauro Carvalho Chehab 	{R_E2_B_VERT_CHROMA_SCALING_INC,2,
514cb7a01acSMauro Carvalho Chehab 	 "Task B: Vertical chrominance scaling increment"},
515cb7a01acSMauro Carvalho Chehab 	{R_E4_B_VERT_SCALING_MODE_CNTL,1,
516cb7a01acSMauro Carvalho Chehab 	 "Task B: Vertical scaling mode control"},
517cb7a01acSMauro Carvalho Chehab 	/* 0xe5-0xe7 - Reserved */
518cb7a01acSMauro Carvalho Chehab 	{R_E8_B_VERT_CHROMA_PHASE_OFF_00,1,
519cb7a01acSMauro Carvalho Chehab 	 "Task B: Vertical chrominance phase offset '00'"},
520cb7a01acSMauro Carvalho Chehab 	{R_E9_B_VERT_CHROMA_PHASE_OFF_01,1,
521cb7a01acSMauro Carvalho Chehab 	 "Task B: Vertical chrominance phase offset '01'"},
522cb7a01acSMauro Carvalho Chehab 	{R_EA_B_VERT_CHROMA_PHASE_OFF_10,1,
523cb7a01acSMauro Carvalho Chehab 	 "Task B: Vertical chrominance phase offset '10'"},
524cb7a01acSMauro Carvalho Chehab 	{R_EB_B_VERT_CHROMA_PHASE_OFF_11,1,
525cb7a01acSMauro Carvalho Chehab 	 "Task B: Vertical chrominance phase offset '11'"},
526cb7a01acSMauro Carvalho Chehab 	{R_EC_B_VERT_LUMA_PHASE_OFF_00,1,
527cb7a01acSMauro Carvalho Chehab 	 "Task B: Vertical luminance phase offset '00'"},
528cb7a01acSMauro Carvalho Chehab 	{R_ED_B_VERT_LUMA_PHASE_OFF_01,1,
529cb7a01acSMauro Carvalho Chehab 	 "Task B: Vertical luminance phase offset '01'"},
530cb7a01acSMauro Carvalho Chehab 	{R_EE_B_VERT_LUMA_PHASE_OFF_10,1,
531cb7a01acSMauro Carvalho Chehab 	 "Task B: Vertical luminance phase offset '10'"},
532cb7a01acSMauro Carvalho Chehab 	{R_EF_B_VERT_LUMA_PHASE_OFF_11,1,
533cb7a01acSMauro Carvalho Chehab 	 "Task B: Vertical luminance phase offset '11'"},
534cb7a01acSMauro Carvalho Chehab 
535cb7a01acSMauro Carvalho Chehab 	/* second PLL (PLL2) and Pulsegenerator Programming */
536cb7a01acSMauro Carvalho Chehab 	{ R_F0_LFCO_PER_LINE, 1,
537cb7a01acSMauro Carvalho Chehab 	  "LFCO's per line"},
538cb7a01acSMauro Carvalho Chehab 	{ R_F1_P_I_PARAM_SELECT,1,
539cb7a01acSMauro Carvalho Chehab 	  "P-/I- Param. Select., PLL Mode, PLL H-Src., LFCO's per line"},
540cb7a01acSMauro Carvalho Chehab 	{ R_F2_NOMINAL_PLL2_DTO,1,
541cb7a01acSMauro Carvalho Chehab 	 "Nominal PLL2 DTO"},
542cb7a01acSMauro Carvalho Chehab 	{R_F3_PLL_INCREMENT,1,
543cb7a01acSMauro Carvalho Chehab 	 "PLL2 Increment"},
544cb7a01acSMauro Carvalho Chehab 	{R_F4_PLL2_STATUS,1,
545cb7a01acSMauro Carvalho Chehab 	 "PLL2 Status"},
546cb7a01acSMauro Carvalho Chehab 	{R_F5_PULSGEN_LINE_LENGTH,1,
547cb7a01acSMauro Carvalho Chehab 	 "Pulsgen. line length"},
548cb7a01acSMauro Carvalho Chehab 	{R_F6_PULSE_A_POS_LSB_AND_PULSEGEN_CONFIG,1,
549cb7a01acSMauro Carvalho Chehab 	 "Pulse A Position, Pulsgen Resync., Pulsgen. H-Src., Pulsgen. line length"},
550cb7a01acSMauro Carvalho Chehab 	{R_F7_PULSE_A_POS_MSB,1,
551cb7a01acSMauro Carvalho Chehab 	 "Pulse A Position"},
552cb7a01acSMauro Carvalho Chehab 	{R_F8_PULSE_B_POS,2,
553cb7a01acSMauro Carvalho Chehab 	 "Pulse B Position"},
554cb7a01acSMauro Carvalho Chehab 	{R_FA_PULSE_C_POS,2,
555cb7a01acSMauro Carvalho Chehab 	 "Pulse C Position"},
556cb7a01acSMauro Carvalho Chehab 	/* 0xfc to 0xfe - Reserved */
557cb7a01acSMauro Carvalho Chehab 	{R_FF_S_PLL_MAX_PHASE_ERR_THRESH_NUM_LINES,1,
558cb7a01acSMauro Carvalho Chehab 	 "S_PLL max. phase, error threshold, PLL2 no. of lines, threshold"},
559cb7a01acSMauro Carvalho Chehab };
560cb7a01acSMauro Carvalho Chehab #endif
561