Merge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc
[wrt350n-kernel.git] / drivers / media / video / cpia2 / cpia2_registers.h
blob3bbec514a967a86fcc2079718500557d4aa2738a
1 /****************************************************************************
3 * Filename: cpia2registers.h
5 * Copyright 2001, STMicrolectronics, Inc.
7 * Description:
8 * Definitions for the CPia2 register set
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24 ****************************************************************************/
26 #ifndef CPIA2_REGISTER_HEADER
27 #define CPIA2_REGISTER_HEADER
29 /***
30 * System register set (Bank 0)
31 ***/
32 #define CPIA2_SYSTEM_DEVICE_HI 0x00
33 #define CPIA2_SYSTEM_DEVICE_LO 0x01
35 #define CPIA2_SYSTEM_SYSTEM_CONTROL 0x02
36 #define CPIA2_SYSTEM_CONTROL_LOW_POWER 0x00
37 #define CPIA2_SYSTEM_CONTROL_HIGH_POWER 0x01
38 #define CPIA2_SYSTEM_CONTROL_SUSPEND 0x02
39 #define CPIA2_SYSTEM_CONTROL_V2W_ERR 0x10
40 #define CPIA2_SYSTEM_CONTROL_RB_ERR 0x10
41 #define CPIA2_SYSTEM_CONTROL_CLEAR_ERR 0x80
43 #define CPIA2_SYSTEM_INT_PACKET_CTRL 0x04
44 #define CPIA2_SYSTEM_INT_PACKET_CTRL_ENABLE_SW_XX 0x01
45 #define CPIA2_SYSTEM_INT_PACKET_CTRL_ENABLE_EOF 0x02
46 #define CPIA2_SYSTEM_INT_PACKET_CTRL_ENABLE_INT1 0x04
48 #define CPIA2_SYSTEM_CACHE_CTRL 0x05
49 #define CPIA2_SYSTEM_CACHE_CTRL_CACHE_RESET 0x01
50 #define CPIA2_SYSTEM_CACHE_CTRL_CACHE_FLUSH 0x02
52 #define CPIA2_SYSTEM_SERIAL_CTRL 0x06
53 #define CPIA2_SYSTEM_SERIAL_CTRL_NULL_CMD 0x00
54 #define CPIA2_SYSTEM_SERIAL_CTRL_START_CMD 0x01
55 #define CPIA2_SYSTEM_SERIAL_CTRL_STOP_CMD 0x02
56 #define CPIA2_SYSTEM_SERIAL_CTRL_WRITE_CMD 0x03
57 #define CPIA2_SYSTEM_SERIAL_CTRL_READ_ACK_CMD 0x04
58 #define CPIA2_SYSTEM_SERIAL_CTRL_READ_NACK_CMD 0x05
60 #define CPIA2_SYSTEM_SERIAL_DATA 0x07
62 #define CPIA2_SYSTEM_VP_SERIAL_ADDR 0x08
64 /***
65 * I2C addresses for various devices in CPiA2
66 ***/
67 #define CPIA2_SYSTEM_VP_SERIAL_ADDR_SENSOR 0x20
68 #define CPIA2_SYSTEM_VP_SERIAL_ADDR_VP 0x88
69 #define CPIA2_SYSTEM_VP_SERIAL_ADDR_676_VP 0x8A
71 #define CPIA2_SYSTEM_SPARE_REG1 0x09
72 #define CPIA2_SYSTEM_SPARE_REG2 0x0A
73 #define CPIA2_SYSTEM_SPARE_REG3 0x0B
75 #define CPIA2_SYSTEM_MC_PORT_0 0x0C
76 #define CPIA2_SYSTEM_MC_PORT_1 0x0D
77 #define CPIA2_SYSTEM_MC_PORT_2 0x0E
78 #define CPIA2_SYSTEM_MC_PORT_3 0x0F
80 #define CPIA2_SYSTEM_STATUS_PKT 0x20
81 #define CPIA2_SYSTEM_STATUS_PKT_END 0x27
83 #define CPIA2_SYSTEM_DESCRIP_VID_HI 0x30
84 #define CPIA2_SYSTEM_DESCRIP_VID_LO 0x31
85 #define CPIA2_SYSTEM_DESCRIP_PID_HI 0x32
86 #define CPIA2_SYSTEM_DESCRIP_PID_LO 0x33
88 #define CPIA2_SYSTEM_FW_VERSION_HI 0x34
89 #define CPIA2_SYSTEM_FW_VERSION_LO 0x35
91 #define CPIA2_SYSTEM_CACHE_START_INDEX 0x80
92 #define CPIA2_SYSTEM_CACHE_MAX_WRITES 0x10
94 /***
95 * VC register set (Bank 1)
96 ***/
97 #define CPIA2_VC_ASIC_ID 0x80
99 #define CPIA2_VC_ASIC_REV 0x81
101 #define CPIA2_VC_PW_CTRL 0x82
102 #define CPIA2_VC_PW_CTRL_COLDSTART 0x01
103 #define CPIA2_VC_PW_CTRL_CP_CLK_EN 0x02
104 #define CPIA2_VC_PW_CTRL_VP_RESET_N 0x04
105 #define CPIA2_VC_PW_CTRL_VC_CLK_EN 0x08
106 #define CPIA2_VC_PW_CTRL_VC_RESET_N 0x10
107 #define CPIA2_VC_PW_CTRL_GOTO_SUSPEND 0x20
108 #define CPIA2_VC_PW_CTRL_UDC_SUSPEND 0x40
109 #define CPIA2_VC_PW_CTRL_PWR_DOWN 0x80
111 #define CPIA2_VC_WAKEUP 0x83
112 #define CPIA2_VC_WAKEUP_SW_ENABLE 0x01
113 #define CPIA2_VC_WAKEUP_XX_ENABLE 0x02
114 #define CPIA2_VC_WAKEUP_SW_ATWAKEUP 0x04
115 #define CPIA2_VC_WAKEUP_XX_ATWAKEUP 0x08
117 #define CPIA2_VC_CLOCK_CTRL 0x84
118 #define CPIA2_VC_CLOCK_CTRL_TESTUP72 0x01
120 #define CPIA2_VC_INT_ENABLE 0x88
121 #define CPIA2_VC_INT_ENABLE_XX_IE 0x01
122 #define CPIA2_VC_INT_ENABLE_SW_IE 0x02
123 #define CPIA2_VC_INT_ENABLE_VC_IE 0x04
124 #define CPIA2_VC_INT_ENABLE_USBDATA_IE 0x08
125 #define CPIA2_VC_INT_ENABLE_USBSETUP_IE 0x10
126 #define CPIA2_VC_INT_ENABLE_USBCFG_IE 0x20
128 #define CPIA2_VC_INT_FLAG 0x89
129 #define CPIA2_VC_INT_ENABLE_XX_FLAG 0x01
130 #define CPIA2_VC_INT_ENABLE_SW_FLAG 0x02
131 #define CPIA2_VC_INT_ENABLE_VC_FLAG 0x04
132 #define CPIA2_VC_INT_ENABLE_USBDATA_FLAG 0x08
133 #define CPIA2_VC_INT_ENABLE_USBSETUP_FLAG 0x10
134 #define CPIA2_VC_INT_ENABLE_USBCFG_FLAG 0x20
135 #define CPIA2_VC_INT_ENABLE_SET_RESET_BIT 0x80
137 #define CPIA2_VC_INT_STATE 0x8A
138 #define CPIA2_VC_INT_STATE_XX_STATE 0x01
139 #define CPIA2_VC_INT_STATE_SW_STATE 0x02
141 #define CPIA2_VC_MP_DIR 0x90
142 #define CPIA2_VC_MP_DIR_INPUT 0x00
143 #define CPIA2_VC_MP_DIR_OUTPUT 0x01
145 #define CPIA2_VC_MP_DATA 0x91
147 #define CPIA2_VC_DP_CTRL 0x98
148 #define CPIA2_VC_DP_CTRL_MODE_0 0x00
149 #define CPIA2_VC_DP_CTRL_MODE_A 0x01
150 #define CPIA2_VC_DP_CTRL_MODE_B 0x02
151 #define CPIA2_VC_DP_CTRL_MODE_C 0x03
152 #define CPIA2_VC_DP_CTRL_FAKE_FST 0x04
154 #define CPIA2_VC_AD_CTRL 0x99
155 #define CPIA2_VC_AD_CTRL_SRC_0 0x00
156 #define CPIA2_VC_AD_CTRL_SRC_DIGI_A 0x01
157 #define CPIA2_VC_AD_CTRL_SRC_REG 0x02
158 #define CPIA2_VC_AD_CTRL_DST_USB 0x00
159 #define CPIA2_VC_AD_CTRL_DST_REG 0x04
161 #define CPIA2_VC_AD_TEST_IN 0x9B
163 #define CPIA2_VC_AD_TEST_OUT 0x9C
165 #define CPIA2_VC_AD_STATUS 0x9D
166 #define CPIA2_VC_AD_STATUS_EMPTY 0x01
167 #define CPIA2_VC_AD_STATUS_FULL 0x02
169 #define CPIA2_VC_DP_DATA 0x9E
171 #define CPIA2_VC_ST_CTRL 0xA0
172 #define CPIA2_VC_ST_CTRL_SRC_VC 0x00
173 #define CPIA2_VC_ST_CTRL_SRC_DP 0x01
174 #define CPIA2_VC_ST_CTRL_SRC_REG 0x02
176 #define CPIA2_VC_ST_CTRL_RAW_SELECT 0x04
178 #define CPIA2_VC_ST_CTRL_DST_USB 0x00
179 #define CPIA2_VC_ST_CTRL_DST_DP 0x08
180 #define CPIA2_VC_ST_CTRL_DST_REG 0x10
182 #define CPIA2_VC_ST_CTRL_FIFO_ENABLE 0x20
183 #define CPIA2_VC_ST_CTRL_EOF_DETECT 0x40
185 #define CPIA2_VC_ST_TEST 0xA1
186 #define CPIA2_VC_ST_TEST_MODE_MANUAL 0x00
187 #define CPIA2_VC_ST_TEST_MODE_INCREMENT 0x02
189 #define CPIA2_VC_ST_TEST_AUTO_FILL 0x08
191 #define CPIA2_VC_ST_TEST_REPEAT_FIFO 0x10
193 #define CPIA2_VC_ST_TEST_IN 0xA2
195 #define CPIA2_VC_ST_TEST_OUT 0xA3
197 #define CPIA2_VC_ST_STATUS 0xA4
198 #define CPIA2_VC_ST_STATUS_EMPTY 0x01
199 #define CPIA2_VC_ST_STATUS_FULL 0x02
201 #define CPIA2_VC_ST_FRAME_DETECT_1 0xA5
203 #define CPIA2_VC_ST_FRAME_DETECT_2 0xA6
205 #define CPIA2_VC_USB_CTRL 0xA8
206 #define CPIA2_VC_USB_CTRL_CMD_STALLED 0x01
207 #define CPIA2_VC_USB_CTRL_CMD_READY 0x02
208 #define CPIA2_VC_USB_CTRL_CMD_STATUS 0x04
209 #define CPIA2_VC_USB_CTRL_CMD_STATUS_DIR 0x08
210 #define CPIA2_VC_USB_CTRL_CMD_NO_CLASH 0x10
211 #define CPIA2_VC_USB_CTRL_CMD_MICRO_ACCESS 0x80
213 #define CPIA2_VC_USB_STRM 0xA9
214 #define CPIA2_VC_USB_STRM_ISO_ENABLE 0x01
215 #define CPIA2_VC_USB_STRM_BLK_ENABLE 0x02
216 #define CPIA2_VC_USB_STRM_INT_ENABLE 0x04
217 #define CPIA2_VC_USB_STRM_AUD_ENABLE 0x08
219 #define CPIA2_VC_USB_STATUS 0xAA
220 #define CPIA2_VC_USB_STATUS_CMD_IN_PROGRESS 0x01
221 #define CPIA2_VC_USB_STATUS_CMD_STATUS_STALL 0x02
222 #define CPIA2_VC_USB_STATUS_CMD_HANDSHAKE 0x04
223 #define CPIA2_VC_USB_STATUS_CMD_OVERRIDE 0x08
224 #define CPIA2_VC_USB_STATUS_CMD_FIFO_BUSY 0x10
225 #define CPIA2_VC_USB_STATUS_BULK_REPEAT_TXN 0x20
226 #define CPIA2_VC_USB_STATUS_CONFIG_DONE 0x40
227 #define CPIA2_VC_USB_STATUS_USB_SUSPEND 0x80
229 #define CPIA2_VC_USB_CMDW 0xAB
231 #define CPIA2_VC_USB_DATARW 0xAC
233 #define CPIA2_VC_USB_INFO 0xAD
235 #define CPIA2_VC_USB_CONFIG 0xAE
237 #define CPIA2_VC_USB_SETTINGS 0xAF
238 #define CPIA2_VC_USB_SETTINGS_CONFIG_MASK 0x03
239 #define CPIA2_VC_USB_SETTINGS_INTERFACE_MASK 0x0C
240 #define CPIA2_VC_USB_SETTINGS_ALTERNATE_MASK 0x70
242 #define CPIA2_VC_USB_ISOLIM 0xB0
244 #define CPIA2_VC_USB_ISOFAILS 0xB1
246 #define CPIA2_VC_USB_ISOMAXPKTHI 0xB2
248 #define CPIA2_VC_USB_ISOMAXPKTLO 0xB3
250 #define CPIA2_VC_V2W_CTRL 0xB8
251 #define CPIA2_VC_V2W_SELECT 0x01
253 #define CPIA2_VC_V2W_SCL 0xB9
255 #define CPIA2_VC_V2W_SDA 0xBA
257 #define CPIA2_VC_VC_CTRL 0xC0
258 #define CPIA2_VC_VC_CTRL_RUN 0x01
259 #define CPIA2_VC_VC_CTRL_SINGLESHOT 0x02
260 #define CPIA2_VC_VC_CTRL_IDLING 0x04
261 #define CPIA2_VC_VC_CTRL_INHIBIT_H_TABLES 0x10
262 #define CPIA2_VC_VC_CTRL_INHIBIT_Q_TABLES 0x20
263 #define CPIA2_VC_VC_CTRL_INHIBIT_PRIVATE 0x40
265 #define CPIA2_VC_VC_RESTART_IVAL_HI 0xC1
267 #define CPIA2_VC_VC_RESTART_IVAL_LO 0xC2
269 #define CPIA2_VC_VC_FORMAT 0xC3
270 #define CPIA2_VC_VC_FORMAT_UFIRST 0x01
271 #define CPIA2_VC_VC_FORMAT_MONO 0x02
272 #define CPIA2_VC_VC_FORMAT_DECIMATING 0x04
273 #define CPIA2_VC_VC_FORMAT_SHORTLINE 0x08
274 #define CPIA2_VC_VC_FORMAT_SELFTEST 0x10
276 #define CPIA2_VC_VC_CLOCKS 0xC4
277 #define CPIA2_VC_VC_CLOCKS_CLKDIV_MASK 0x03
278 #define CPIA2_VC_VC_672_CLOCKS_CIF_DIV_BY_3 0x04
279 #define CPIA2_VC_VC_672_CLOCKS_SCALING 0x08
280 #define CPIA2_VC_VC_CLOCKS_LOGDIV0 0x00
281 #define CPIA2_VC_VC_CLOCKS_LOGDIV1 0x01
282 #define CPIA2_VC_VC_CLOCKS_LOGDIV2 0x02
283 #define CPIA2_VC_VC_CLOCKS_LOGDIV3 0x03
284 #define CPIA2_VC_VC_676_CLOCKS_CIF_DIV_BY_3 0x08
285 #define CPIA2_VC_VC_676_CLOCKS_SCALING 0x10
287 #define CPIA2_VC_VC_IHSIZE_LO 0xC5
289 #define CPIA2_VC_VC_XLIM_HI 0xC6
291 #define CPIA2_VC_VC_XLIM_LO 0xC7
293 #define CPIA2_VC_VC_YLIM_HI 0xC8
295 #define CPIA2_VC_VC_YLIM_LO 0xC9
297 #define CPIA2_VC_VC_OHSIZE 0xCA
299 #define CPIA2_VC_VC_OVSIZE 0xCB
301 #define CPIA2_VC_VC_HCROP 0xCC
303 #define CPIA2_VC_VC_VCROP 0xCD
305 #define CPIA2_VC_VC_HPHASE 0xCE
307 #define CPIA2_VC_VC_VPHASE 0xCF
309 #define CPIA2_VC_VC_HISPAN 0xD0
311 #define CPIA2_VC_VC_VISPAN 0xD1
313 #define CPIA2_VC_VC_HICROP 0xD2
315 #define CPIA2_VC_VC_VICROP 0xD3
317 #define CPIA2_VC_VC_HFRACT 0xD4
318 #define CPIA2_VC_VC_HFRACT_DEN_MASK 0x0F
319 #define CPIA2_VC_VC_HFRACT_NUM_MASK 0xF0
321 #define CPIA2_VC_VC_VFRACT 0xD5
322 #define CPIA2_VC_VC_VFRACT_DEN_MASK 0x0F
323 #define CPIA2_VC_VC_VFRACT_NUM_MASK 0xF0
325 #define CPIA2_VC_VC_JPEG_OPT 0xD6
326 #define CPIA2_VC_VC_JPEG_OPT_DOUBLE_SQUEEZE 0x01
327 #define CPIA2_VC_VC_JPEG_OPT_NO_DC_AUTO_SQUEEZE 0x02
328 #define CPIA2_VC_VC_JPEG_OPT_AUTO_SQUEEZE 0x04
329 #define CPIA2_VC_VC_JPEG_OPT_DEFAULT (CPIA2_VC_VC_JPEG_OPT_DOUBLE_SQUEEZE|\
330 CPIA2_VC_VC_JPEG_OPT_AUTO_SQUEEZE)
333 #define CPIA2_VC_VC_CREEP_PERIOD 0xD7
334 #define CPIA2_VC_VC_USER_SQUEEZE 0xD8
335 #define CPIA2_VC_VC_TARGET_KB 0xD9
337 #define CPIA2_VC_VC_AUTO_SQUEEZE 0xE6
340 /***
341 * VP register set (Bank 2)
342 ***/
343 #define CPIA2_VP_DEVICEH 0
344 #define CPIA2_VP_DEVICEL 1
346 #define CPIA2_VP_SYSTEMSTATE 0x02
347 #define CPIA2_VP_SYSTEMSTATE_HK_ALIVE 0x01
349 #define CPIA2_VP_SYSTEMCTRL 0x03
350 #define CPIA2_VP_SYSTEMCTRL_REQ_CLEAR_ERROR 0x80
351 #define CPIA2_VP_SYSTEMCTRL_POWER_DOWN_PLL 0x20
352 #define CPIA2_VP_SYSTEMCTRL_REQ_SUSPEND_STATE 0x10
353 #define CPIA2_VP_SYSTEMCTRL_REQ_SERIAL_WAKEUP 0x08
354 #define CPIA2_VP_SYSTEMCTRL_REQ_AUTOLOAD 0x04
355 #define CPIA2_VP_SYSTEMCTRL_HK_CONTROL 0x02
356 #define CPIA2_VP_SYSTEMCTRL_POWER_CONTROL 0x01
358 #define CPIA2_VP_SENSOR_FLAGS 0x05
359 #define CPIA2_VP_SENSOR_FLAGS_404 0x01
360 #define CPIA2_VP_SENSOR_FLAGS_407 0x02
361 #define CPIA2_VP_SENSOR_FLAGS_409 0x04
362 #define CPIA2_VP_SENSOR_FLAGS_410 0x08
363 #define CPIA2_VP_SENSOR_FLAGS_500 0x10
365 #define CPIA2_VP_SENSOR_REV 0x06
367 #define CPIA2_VP_DEVICE_CONFIG 0x07
368 #define CPIA2_VP_DEVICE_CONFIG_SERIAL_BRIDGE 0x01
370 #define CPIA2_VP_GPIO_DIRECTION 0x08
371 #define CPIA2_VP_GPIO_READ 0xFF
372 #define CPIA2_VP_GPIO_WRITE 0x00
374 #define CPIA2_VP_GPIO_DATA 0x09
376 #define CPIA2_VP_RAM_ADDR_H 0x0A
377 #define CPIA2_VP_RAM_ADDR_L 0x0B
378 #define CPIA2_VP_RAM_DATA 0x0C
380 #define CPIA2_VP_PATCH_REV 0x0F
382 #define CPIA2_VP4_USER_MODE 0x10
383 #define CPIA2_VP5_USER_MODE 0x13
384 #define CPIA2_VP_USER_MODE_CIF 0x01
385 #define CPIA2_VP_USER_MODE_QCIFDS 0x02
386 #define CPIA2_VP_USER_MODE_QCIFPTC 0x04
387 #define CPIA2_VP_USER_MODE_QVGADS 0x08
388 #define CPIA2_VP_USER_MODE_QVGAPTC 0x10
389 #define CPIA2_VP_USER_MODE_VGA 0x20
391 #define CPIA2_VP4_FRAMERATE_REQUEST 0x11
392 #define CPIA2_VP5_FRAMERATE_REQUEST 0x14
393 #define CPIA2_VP_FRAMERATE_60 0x80
394 #define CPIA2_VP_FRAMERATE_50 0x40
395 #define CPIA2_VP_FRAMERATE_30 0x20
396 #define CPIA2_VP_FRAMERATE_25 0x10
397 #define CPIA2_VP_FRAMERATE_15 0x08
398 #define CPIA2_VP_FRAMERATE_12_5 0x04
399 #define CPIA2_VP_FRAMERATE_7_5 0x02
400 #define CPIA2_VP_FRAMERATE_6_25 0x01
402 #define CPIA2_VP4_USER_EFFECTS 0x12
403 #define CPIA2_VP5_USER_EFFECTS 0x15
404 #define CPIA2_VP_USER_EFFECTS_COLBARS 0x01
405 #define CPIA2_VP_USER_EFFECTS_COLBARS_GRAD 0x02
406 #define CPIA2_VP_USER_EFFECTS_MIRROR 0x04
407 #define CPIA2_VP_USER_EFFECTS_FLIP 0x40 // VP5 only
409 /* NOTE: CPIA2_VP_EXPOSURE_MODES shares the same register as VP5 User
410 * Effects */
411 #define CPIA2_VP_EXPOSURE_MODES 0x15
412 #define CPIA2_VP_EXPOSURE_MODES_INHIBIT_FLICKER 0x20
413 #define CPIA2_VP_EXPOSURE_MODES_COMPILE_EXP 0x10
415 #define CPIA2_VP4_EXPOSURE_TARGET 0x16 // VP4
416 #define CPIA2_VP5_EXPOSURE_TARGET 0x20 // VP5
418 #define CPIA2_VP_FLICKER_MODES 0x1B
419 #define CPIA2_VP_FLICKER_MODES_50HZ 0x80
420 #define CPIA2_VP_FLICKER_MODES_CUSTOM_FLT_FFREQ 0x40
421 #define CPIA2_VP_FLICKER_MODES_NEVER_FLICKER 0x20
422 #define CPIA2_VP_FLICKER_MODES_INHIBIT_RUB 0x10
423 #define CPIA2_VP_FLICKER_MODES_ADJUST_LINE_FREQ 0x08
424 #define CPIA2_VP_FLICKER_MODES_CUSTOM_INT_FFREQ 0x04
426 #define CPIA2_VP_UMISC 0x1D
427 #define CPIA2_VP_UMISC_FORCE_MONO 0x80
428 #define CPIA2_VP_UMISC_FORCE_ID_MASK 0x40
429 #define CPIA2_VP_UMISC_INHIBIT_AUTO_FGS 0x20
430 #define CPIA2_VP_UMISC_INHIBIT_AUTO_DIMS 0x08
431 #define CPIA2_VP_UMISC_OPT_FOR_SENSOR_DS 0x04
432 #define CPIA2_VP_UMISC_INHIBIT_AUTO_MODE_INT 0x02
434 #define CPIA2_VP5_ANTIFLKRSETUP 0x22 //34
436 #define CPIA2_VP_INTERPOLATION 0x24
437 #define CPIA2_VP_INTERPOLATION_EVEN_FIRST 0x40
438 #define CPIA2_VP_INTERPOLATION_HJOG 0x20
439 #define CPIA2_VP_INTERPOLATION_VJOG 0x10
441 #define CPIA2_VP_GAMMA 0x25
442 #define CPIA2_VP_DEFAULT_GAMMA 0x10
444 #define CPIA2_VP_YRANGE 0x26
446 #define CPIA2_VP_SATURATION 0x27
448 #define CPIA2_VP5_MYBLACK_LEVEL 0x3A //58
449 #define CPIA2_VP5_MCYRANGE 0x3B //59
450 #define CPIA2_VP5_MYCEILING 0x3C //60
451 #define CPIA2_VP5_MCUVSATURATION 0x3D //61
454 #define CPIA2_VP_REHASH_VALUES 0x60
457 /***
458 * Common sensor registers
459 ***/
460 #define CPIA2_SENSOR_DEVICE_H 0x00
461 #define CPIA2_SENSOR_DEVICE_L 0x01
463 #define CPIA2_SENSOR_DATA_FORMAT 0x16
464 #define CPIA2_SENSOR_DATA_FORMAT_HMIRROR 0x08
465 #define CPIA2_SENSOR_DATA_FORMAT_VMIRROR 0x10
467 #define CPIA2_SENSOR_CR1 0x76
468 #define CPIA2_SENSOR_CR1_STAND_BY 0x01
469 #define CPIA2_SENSOR_CR1_DOWN_RAMP_GEN 0x02
470 #define CPIA2_SENSOR_CR1_DOWN_COLUMN_ADC 0x04
471 #define CPIA2_SENSOR_CR1_DOWN_CAB_REGULATOR 0x08
472 #define CPIA2_SENSOR_CR1_DOWN_AUDIO_REGULATOR 0x10
473 #define CPIA2_SENSOR_CR1_DOWN_VRT_AMP 0x20
474 #define CPIA2_SENSOR_CR1_DOWN_BAND_GAP 0x40
476 #endif