; Vimicro VC34X PC Camera registers setting file
;
;                     Version: 09/21/2009 1.0.0.1
;
; Instruction
;     CHIP	wAddr	bData	: chip command
;     WAIT	wTime		: delay
;     SEN_W	wAddr	wData	: sensor command (word,word)
;     SEN_AND	wAddr	wData	: sensor command (word,word)
;     SEN_OR	wAddr	wData	: sensor command (word,word)
;


;===========================
;         OV7675
;===========================
[OV7675_WB_AUTO]
// AWB enable
SEN_OR	0x0013	0x0002


[OV7675_WB_MANUAL]
// AWB disable
SEN_AND	0x0013	0x00fd


[OV7675_WB_ENV_AUTO]
// AWB enable
SEN_OR	0x0013	0x0002
CHIP	0x8621	0x0000

[OV7675_WB_ENV_DAYLIGHT]
// AWB disable
SEN_AND	0x0013	0x00fd
SEN_W	0x0001	0x0050		// B gain
SEN_W	0x0002	0x0064		// R gain
SEN_W	0x006A	0x0040		// G gain
CHIP	0x8621	0x0001

[OV7675_WB_ENV_FLUORESCENT]
// AWB disable
SEN_AND	0x0013	0x00fd
SEN_W	0x0001	0x0072		// B gain
SEN_W	0x0002	0x0056		// R gain
SEN_W	0x006A	0x0040		// G gain
CHIP	0x8621	0x0002

[OV7675_WB_ENV_TUNGSTEN]
// AWB disable
SEN_AND	0x0013	0x00fd
SEN_W	0x0001	0x0082		// B gain
SEN_W	0x0002	0x0040		// R gain
SEN_W	0x006A	0x0040		// G gain
CHIP	0x8621	0x0003

;===========================
;         SIV100B
;===========================
[SIV100B_WB_AUTO]
// AWB enable
SEN_W	0x0065	0x00B0
SEN_W	0x0066	0x0040

SEN_W	0x008a	0x0080
SEN_W	0x008b	0x0080
SEN_W	0x008c	0x0080
SEN_W	0x008d	0x0080
SEN_W	0x0060	0x00c8
SEN_W	0x0065	0x00A0
SEN_W	0x0066	0x0040


[SIV100B_WB_MANUAL]
// AWB disable
SEN_W	0x0065	0x00B0
SEN_W	0x0066	0x0040

SEN_W	0x008a	0x0080
SEN_W	0x008b	0x0080
SEN_W	0x008c	0x0080
SEN_W	0x008d	0x0080
SEN_W	0x0060	0x0008


[SIV100B_WB_ENV_AUTO]
// AWB enable
SEN_W	0x0065	0x00B0
SEN_W	0x0066	0x0040

SEN_W	0x008a	0x0080
SEN_W	0x008b	0x0080
SEN_W	0x008c	0x0080
SEN_W	0x008d	0x0080
SEN_W	0x0060	0x00c8


[SIV100B_WB_ENV_DAYLIGHT]
// AWB disable
SEN_W	0x0065	0x00B0
SEN_W	0x0066	0x0040

SEN_W	0x0060	0x0008
SEN_W	0x007a	0x00d2
SEN_W	0x007b	0x0090
SEN_W	0x0060	0x00c8
//WAIT 0x0100


[SIV100B_WB_ENV_FLUORESCENT]
// AWB disable
SEN_W	0x0065	0x00B0
SEN_W	0x0066	0x0040

SEN_W	0x0060	0x0008
SEN_W	0x007a	0x008a
SEN_W	0x007b	0x00d2
SEN_W	0x0060	0x00c8
//WAIT 0x0100


[SIV100B_WB_ENV_TUNGSTEN]
// AWB disable
SEN_W	0x0065	0x00B0
SEN_W	0x0066	0x0040

SEN_W	0x0060	0x0008
SEN_W	0x007a	0x00b6
SEN_W	0x007b	0x00c3
SEN_W	0x0060	0x00c8
//WAIT 0x0100


;===========================
;         S5K6AA
;===========================
[S5K6AA_WB_AUTO]
// AWB enable
SEN_OR	0x0400	0x0008


[S5K6AA_WB_MANUAL]
// AWB disable
SEN_AND	0x0400	0x00F7


[S5K6AA_WB_ENV_AUTO]
// AWB enable
SEN_OR	0x0400	0x0008
SEN_W 0X0E7E  0x0010


[S5K6AA_WB_ENV_DAYLIGHT]
// AWB disable
SEN_AND	0x0400	0x00F7
SEN_W	0x03d0	0x0110
SEN_W	0x03d2	0x0001
SEN_W	0x03d4	0x0100
SEN_W	0x03d6	0x0001
SEN_W	0x03d8	0x0148
SEN_W	0x03da	0x0001
SEN_W 0X0E7E  0x0004
WAIT 0x0040
SEN_OR	0x0400	0x0008

[S5K6AA_WB_ENV_FLUORESCENT]//?a?// AWB disable
SEN_AND	0x0400	0x00F7
SEN_W	0x03d0	0x0090
SEN_W	0x03d2	0x0001
SEN_W	0x03d4	0x00b0
SEN_W	0x03d6	0x0001
SEN_W	0x03d8	0x0200
SEN_W	0x03da	0x0001
SEN_W 0X0E7E  0x0004
WAIT 0x0040
SEN_OR	0x0400	0x0008

[S5K6AA_WB_ENV_TUNGSTEN]//¢D?K?O
// AWB disable
SEN_AND	0x0400	0x00F7
SEN_W	0x03d0	0x0084
SEN_W	0x03d2	0x0001
SEN_W	0x03d4	0x007A
SEN_W	0x03d6	0x0001
SEN_W	0x03d8	0x0100
SEN_W	0x03da	0x0001
SEN_W 0X0E7E  0x0004
WAIT 0x0040
SEN_OR	0x0400	0x0008
;===========================
;         MI1330
; 
;===========================
[MI1330_WB_AUTO]
// AWB enable
SEN_W	0x098C	0xA102		// enable AWB
SEN_OR	0x0990	0x0004
SEN_W	0x098C	0xA11F		// enable AWB (preview state)
SEN_W	0x0990	0x0001
SEN_W	0x098C	0xA115		// enable AWB (capture state)
SEN_OR	0x0990	0x0020


[MI1330_WB_MANUAL]
// AWB disable
SEN_W	0x098C	0xA102		// disable AWB
SEN_AND	0x0990	0xFFFB
SEN_W	0x098C	0xA11F		// disable AWB (preview state)
SEN_W	0x0990	0x0000
SEN_W	0x098C	0xA115		// enable AWB (capture state)
SEN_AND	0x0990	0xFFDF


[MI1330_WB_ENV_AUTO]
// AWB enable
SEN_W	0x098C	0xA102		// enable AWB
SEN_OR	0x0990	0x0004
SEN_W	0x098C	0xA11F		// enable AWB (preview state)
SEN_W	0x0990	0x0001
SEN_W	0x098C	0xA115		// enable AWB (capture state)
SEN_OR	0x0990	0x0020

//
SEN_W	0x098C	0xA34A		// AWB R min
SEN_W	0x0990	0x0059
SEN_W	0x098C	0xA34B		// AWB R max
SEN_W	0x0990	0x00A6
SEN_W	0x098C	0xA34C		// AWB B min
SEN_W	0x0990	0x0059
SEN_W	0x098C	0xA34D		// AWB B max
SEN_W	0x0990	0x00A6


[MI1330_WB_ENV_DAYLIGHT]
// AWB disable
//SEN_W	0x098C	0xA102		// disable AWB
//SEN_AND	0x0990	0xFFFB
//SEN_W	0x098C	0xA11F		// disable AWB (preview state)
//SEN_W	0x0990	0x0000
//SEN_W	0x098C	0xA115		// enable AWB (capture state)
//SEN_AND	0x0990	0xFFDF

// CCM position
SEN_W	0x098C	0xA353
SEN_W	0x0990	0x0064

// R,B gain
SEN_W	0x098C	0xA34A		// AWB R min
SEN_W	0x0990	0x00ff
SEN_W	0x098C	0xA34B		// AWB R max
SEN_W	0x0990	0x00ff
SEN_W	0x098C	0xA34C		// AWB B min
SEN_W	0x0990	0x007F
SEN_W	0x098C	0xA34D		// AWB B max
SEN_W	0x0990	0x007F

SEN_W	0x098C	0xA34E		// R gain
SEN_W	0x0990	0x00ff
SEN_W	0x098C	0xA34F		// G gain
SEN_W	0x0990	0x0080
SEN_W	0x098C	0xA350		// B gain
SEN_W	0x0990	0x0020

SEN_W	0x098C	0xA34A		// AWB R min
SEN_W	0x0990	0x0059
SEN_W	0x098C	0xA34B		// AWB R max
SEN_W	0x0990	0x00A6
SEN_W	0x098C	0xA34C		// AWB B min
SEN_W	0x0990	0x0059
SEN_W	0x098C	0xA34D		// AWB B max
SEN_W	0x0990	0x00A6


[MI1330_WB_ENV_FLUORESCENT]
// AWB disable
//SEN_W	0x098C	0xA102		// disable AWB
//SEN_AND	0x0990	0xFFFB
//SEN_W	0x098C	0xA11F		// disable AWB (preview state)
//SEN_W	0x0990	0x0000
//SEN_W	0x098C	0xA115		// enable AWB (capture state)
//SEN_AND	0x0990	0xFFDF

// CCM position
SEN_W	0x098C	0xA353
SEN_W	0x0990	0x001C

//R,B gain
SEN_W	0x098C	0xA34A		// AWB R min
SEN_W	0x0990	0x00fB
SEN_W	0x098C	0xA34B		// AWB R max
SEN_W	0x0990	0x00fB
SEN_W	0x098C	0xA34C		// AWB B min
SEN_W	0x0990	0x00e0
SEN_W	0x098C	0xA34D		// AWB B max
SEN_W	0x0990	0x00e0

SEN_W	0x098C	0xA34E		// R gain
SEN_W	0x0990	0x00fB
SEN_W	0x098C	0xA34F		// G gain
SEN_W	0x0990	0x0080
SEN_W	0x098C	0xA350		// B gain
SEN_W	0x0990	0x00e0

SEN_W	0x098C	0xA34A		// AWB R min
SEN_W	0x0990	0x0059
SEN_W	0x098C	0xA34B		// AWB R max
SEN_W	0x0990	0x00A6
SEN_W	0x098C	0xA34C		// AWB B min
SEN_W	0x0990	0x0059
SEN_W	0x098C	0xA34D		// AWB B max
SEN_W	0x0990	0x00A6

[MI1330_WB_ENV_TUNGSTEN]
// AWB disable
//SEN_W	0x098C	0xA102		// disable AWB
//SEN_AND	0x0990	0xFFFB
//SEN_W	0x098C	0xA11F		// disable AWB (preview state)
//SEN_W	0x0990	0x0000
//SEN_W	0x098C	0xA115		// enable AWB (capture state)
//SEN_AND	0x0990	0xFFDF

// CCM position
SEN_W	0x098C	0xA353
SEN_W	0x0990	0x0000

// R,B gain
SEN_W	0x098C	0xA34A		// AWB R min
SEN_W	0x0990	0x00dF
SEN_W	0x098C	0xA34B		// AWB R max
SEN_W	0x0990	0x00dF
SEN_W	0x098C	0xA34C		// AWB B min
SEN_W	0x0990	0x00f3
SEN_W	0x098C	0xA34D		// AWB B max
SEN_W	0x0990	0x00f3

SEN_W	0x098C	0xA34E		// R gain
SEN_W	0x0990	0x00dF
SEN_W	0x098C	0xA34F		// G gain
SEN_W	0x0990	0x0080
SEN_W	0x098C	0xA350		// B gain
SEN_W	0x0990	0x00f3

SEN_W	0x098C	0xA34A		// AWB R min
SEN_W	0x0990	0x0059
SEN_W	0x098C	0xA34B		// AWB R max
SEN_W	0x0990	0x00A6
SEN_W	0x098C	0xA34C		// AWB B min
SEN_W	0x0990	0x0059
SEN_W	0x098C	0xA34D		// AWB B max
SEN_W	0x0990	0x00A6
