diff options
Diffstat (limited to 'drivers/media/video/wmt_v4l2/sensors/gc0328/gc0328.h')
-rwxr-xr-x | drivers/media/video/wmt_v4l2/sensors/gc0328/gc0328.h | 604 |
1 files changed, 604 insertions, 0 deletions
diff --git a/drivers/media/video/wmt_v4l2/sensors/gc0328/gc0328.h b/drivers/media/video/wmt_v4l2/sensors/gc0328/gc0328.h new file mode 100755 index 00000000..05e49ba5 --- /dev/null +++ b/drivers/media/video/wmt_v4l2/sensors/gc0328/gc0328.h @@ -0,0 +1,604 @@ +#ifndef GC0328_H
+#define GC0328_H
+
+
+// Scene Mode
+unsigned char gc0328_scene_mode_auto[] = {
+ 0xfa, 0x00,
+};
+
+unsigned char gc0328_scene_mode_night[] = {
+ 0xfa, 0x11,
+};
+
+
+// White Balance
+unsigned char gc0328_wb_auto [] = {
+ 0xfe, 0x00,
+ 0x77, 0x60,//57
+ 0x78, 0x40,//4
+ 0x79, 0x60,//45
+ 0x42, 0xfe,
+};
+
+unsigned char gc0328_wb_incandescent [] = {
+ //bai re guang
+ 0xfe, 0x00,
+ 0x42, 0xfd,
+ 0x77, 0x48,
+ 0x78, 0x40,
+ 0x79, 0x5c,
+};
+
+unsigned char gc0328_wb_fluorescent [] = {
+ //ri guang deng
+ 0xfe, 0x00,
+ 0x42, 0xfd,
+ 0x77, 0x40,
+ 0x78, 0x42,
+ 0x79, 0x50,
+};
+
+unsigned char gc0328_wb_daylight [] = {
+ //tai yang guang
+ 0xfe, 0x00,
+ 0x42, 0xfd,
+ 0x77, 0x74,
+ 0x78, 0x52,
+ 0x79, 0x40,
+};
+
+unsigned char gc0328_wb_cloudy [] = {
+ 0xfe, 0x00,
+ 0x42, 0xfd,
+ 0x77, 0x8c,
+ 0x78, 0x50,
+ 0x79, 0x40,
+};
+
+unsigned char gc0328_wb_tungsten [] = {
+ //wu si deng
+ 0xfe, 0x00,
+ 0x42, 0xfd,
+ 0x77, 0x40,
+ 0x78, 0x54,
+ 0x79, 0x70
+};
+
+
+// Exposure
+unsigned char gc0328_exposure_neg6[] = {
+ 0xfe, 0x00,
+ 0xd5, 0xe0,
+ 0xfe, 0x01,
+ 0x13, 0x35,
+ 0xfe, 0x00
+};
+
+unsigned char gc0328_exposure_neg3[] = {
+ 0xfe, 0x00,
+ 0xd5, 0xf0,
+ 0xfe, 0x01,
+ 0x13, 0x37,
+ 0xfe, 0x00
+};
+
+unsigned char gc0328_exposure_zero[] = {
+ 0xfe, 0x00,
+ 0xd5, 0x00,
+ 0xfe, 0x01,
+ 0x13, 0x38,
+ 0xfe, 0x00
+};
+
+unsigned char gc0328_exposure_pos3[] = {
+ 0xfe, 0x00,
+ 0xd5, 0x10,
+ 0xfe, 0x01,
+ 0x13, 0x55,
+ 0xfe, 0x00
+};
+
+unsigned char gc0328_exposure_pos6[] = {
+ 0xfe, 0x00,
+ 0xd5, 0x20,
+ 0xfe, 0x01,
+ 0x13, 0x65,
+ 0xfe, 0x00
+};
+
+
+// Color Effect
+unsigned char gc0328_colorfx_none[] = {
+
+ 0x43, 0x00
+};
+
+unsigned char gc0328_colorfx_bw[] = {
+
+ 0x43, 0x02,
+ 0xda, 0xd0,
+ 0xdb, 0x28
+};
+
+unsigned char gc0328_colorfx_sepia[] = {
+ 0x43, 0x02,
+ 0xda, 0xc0,
+ 0xdb, 0xc0
+};
+
+unsigned char gc0328_colorfx_negative[] = {
+
+ 0x43, 0x01
+};
+
+unsigned char gc0328_colorfx_emboss[] = {
+ 0x43, 0x02,
+ 0xda, 0x50,
+ 0xdb, 0xe0
+};
+
+unsigned char gc0328_colorfx_sketch[] = {
+ 0x43, 0x02,
+ 0xda, 0x00,
+ 0xdb, 0x00
+};
+
+unsigned char gc0328_colorfx_sky_blue[] = {
+ 0x43,0x02,
+ 0xda,0x50,
+ 0xdb,0xe0,
+};
+
+unsigned char gc0328_colorfx_grass_green[] = {
+ 0x43,0x02,
+ 0xda,0xc0,
+ 0xdb,0xc0,
+};
+
+unsigned char gc0328_colorfx_skin_whiten[] = {
+};
+
+unsigned char gc0328_colorfx_vivid[] = {
+};
+
+// Brightness
+unsigned char gc0328_brightness_neg4[] = {
+};
+
+unsigned char gc0328_brightness_neg3[] = {
+};
+
+unsigned char gc0328_brightness_neg2[] = {
+};
+
+unsigned char gc0328_brightness_neg1[] = {
+};
+
+unsigned char gc0328_brightness_zero[] = {
+};
+
+unsigned char gc0328_brightness_pos1[] = {
+};
+
+unsigned char gc0328_brightness_pos2[] = {
+};
+
+unsigned char gc0328_brightness_pos3[] = {
+};
+
+unsigned char gc0328_brightness_pos4[] = {
+};
+
+// Contrast
+unsigned char gc0328_contrast_neg4[] = {
+};
+
+unsigned char gc0328_contrast_neg3[] = {
+};
+
+unsigned char gc0328_contrast_neg2[] = {
+};
+
+unsigned char gc0328_contrast_neg1[] = {
+};
+
+unsigned char gc0328_contrast_zero[] = {
+};
+
+unsigned char gc0328_contrast_pos1[] = {
+};
+
+unsigned char gc0328_contrast_pos2[] = {
+};
+
+unsigned char gc0328_contrast_pos3[] = {
+};
+
+unsigned char gc0328_contrast_pos4[] = {
+};
+
+// Saturation
+unsigned char gc0328_saturation_neg4[] = {
+};
+
+unsigned char gc0328_saturation_neg3[] = {
+};
+
+unsigned char gc0328_saturation_neg2[] = {
+};
+
+unsigned char gc0328_saturation_neg1[] = {
+};
+
+unsigned char gc0328_saturation_zero[] = {
+};
+
+unsigned char gc0328_saturation_pos1[] = {
+};
+
+unsigned char gc0328_saturation_pos2[] = {
+};
+
+unsigned char gc0328_saturation_pos3[] = {
+};
+
+unsigned char gc0328_saturation_pos4[] = {
+};
+
+
+// Resolution
+
+// QCIF
+unsigned char gc0328_176x144[]={
+};
+
+unsigned char gc0328_320x240[]={
+
+};
+
+unsigned char gc0328_640x480[]={
+};
+
+
+// Initiliztion
+unsigned char gc0328_default_regs_init[] = {
+ 0xfe, 0x80,
+ 0xfe, 0x80,
+ 0xfc, 0x16,
+ 0xfc, 0x16,
+ 0xfc, 0x16,
+ 0xfc, 0x16,
+
+ //0x42, 0x02,
+ 0xfa, 0x11,
+ 0x4f, 0x00,
+ 0x03, 0x06,
+ 0x04, 0x24,
+ 0x4f, 0x01,
+
+ 0xfe, 0x01,
+ 0x4f, 0x00,
+ 0x4c, 0x01,
+ 0xfe, 0x00,
+ //////////////////////////////
+ //AWB
+ ////////////////////////////////
+0xfe, 0x01,
+ 0x51, 0x80,//20
+ 0x52, 0x12,// 16 //1f
+ 0x53, 0x80,//40
+ 0x54, 0x60,//9f
+ 0x55, 0x04,//01
+ 0x56, 0x0e,//00
+ 0x5b, 0x02,//02
+ 0x61, 0xdc,//R2G_stand0[7:0]
+ 0x62, 0xca,//B2G_stand0[7:0]
+
+ 0x70, 0xf5,
+ 0x71, 0x0a,
+ 0x72, 0x18,//y2c
+ 0x73, 0x30,//28 //20, 0x//AWB_C_inter
+ 0x74, 0x58,//40 //20, 0x// AWB_C_max
+ 0x7c, 0x71,//AWB speed,AWB margin
+ 0x7d, 0x00,//10 //AWB every N
+ 0x76, 0x8f,//move mode en,Move mode TH
+ 0x79, 0x00,//00
+
+
+
+ ////AWB////
+0x4f, 0x00,
+ 0x4d, 0x34,
+ 0x4e, 0x04,
+ 0x4e, 0x02,
+ 0x4e, 0x02,
+ 0x4d, 0x43,
+ 0x4e, 0x04,
+ 0x4e, 0x04,//D50
+ 0x4e, 0x02,// d65 add
+ 0x4e, 0x02,// d65 add
+ 0x4d, 0x53,
+ 0x4e, 0x08,//cwf
+ 0x4e, 0x04,
+ 0x4e, 0x02,//D65
+ 0x4e, 0x02,//D65
+ 0x4d, 0x63,
+ 0x4e, 0x10,//tl84
+ 0x4d, 0x72,
+ 0x4e, 0x20,
+ 0x4e, 0x20,
+ 0x4d, 0x82,
+ 0x4e, 0x20,//A
+ 0x4e, 0x20,
+ 0x4d, 0x92,
+ 0x4e, 0x20,//A
+ 0x4e, 0x20,
+ 0x4d, 0xa0,
+ 0x4e, 0x40,// H
+ 0x4e, 0x40,
+ 0x4e, 0x40,
+ 0x4f, 0x01,
+ 0x50, 0x84,//80//
+ 0xfe, 0x00,//page0
+
+ ////////////////////////////////////////////////
+ //////////// BLK //////////////////////
+ ////////////////////////////////////////////////
+ 0x27, 0xf7,
+ 0x28, 0x7F,
+ 0x29, 0x20,
+ 0x33, 0x20,
+ 0x34, 0x20,
+ 0x35, 0x20,
+ 0x36, 0x20,
+ 0x32, 0x08,
+
+ 0x47, 0x00,
+ 0x48, 0x00,
+
+ //////////////////////////////////////////////
+ ////////// page 0 ////////////////////////
+ //////////////////////////////////////////////
+ 0xfe, 0x00,
+ //0x05, 0x00,
+ //0x06, 0xde,
+ //0x07, 0x00,
+ //0x08, 0xa7,
+
+ 0x0d, 0x01,
+ 0x0e, 0xe8,
+ 0x0f, 0x02,
+ 0x10, 0x88,
+ 0x09, 0x00,
+ 0x0a, 0x00,
+ 0x0b, 0x00,
+ 0x0c, 0x00,
+ 0x16, 0x00,
+ 0x17, 0x14,
+ 0x18, 0x0e,
+ 0x19, 0x06,
+
+ 0x1b, 0x48,
+ 0x1f, 0xC8,
+ 0x20, 0x01,
+ 0x21, 0x78,
+ 0x22, 0xb0,
+ 0x23, 0x06,
+ 0x24, 0x16,
+ 0x26, 0x00,
+
+ 0x50, 0x01,
+
+ //global gain for range
+ 0x70, 0x45,
+
+ //////////////////////////////////////
+ //////////// block enable ///
+ //////////////////////////////////////
+ 0x40, 0x7f,
+ 0x41, 0x24,
+
+ 0x42, 0xff,
+
+ 0x45, 0x00,
+ 0x44, 0x02,
+ 0x46, 0x02, //0x03
+
+ 0x4b, 0x01,
+ 0x50, 0x01,
+
+ //DN & EEINTP
+ 0x7e, 0x0a,
+ 0x7f, 0x03,
+ 0x81, 0x15,
+ 0x82, 0x85,
+ 0x83, 0x02,
+ 0x84, 0xe5,
+ 0x90, 0xac,
+ 0x92, 0x02,
+ 0x94, 0x04,//02
+ 0x95, 0x76,//43
+
+
+ ///////YCP
+ 0xd1, 0x30,//38
+ 0xd2, 0x38,//38
+ 0xd3, 0x38,//38
+ 0xdd, 0x54,
+ 0xde, 0x38,
+ 0xe4, 0x88,
+ 0xe5, 0x40,
+ 0xd7, 0x0e,
+
+ //////////////////////////////
+ //////////////// GAMMA //////
+ //////////////////////////////
+ //rgb gamma
+ 0xBF, 0x0E,
+ 0xc0, 0x1C,
+ 0xc1, 0x34,
+ 0xc2, 0x48,
+ 0xc3, 0x5A,
+ 0xc4, 0x6B,
+ 0xc5, 0x7B,
+ 0xc6, 0x95,
+ 0xc7, 0xAB,
+ 0xc8, 0xBF,
+ 0xc9, 0xCE,
+ 0xcA, 0xD9,
+ 0xcB, 0xE4,
+ 0xcC, 0xEC,
+ 0xcD, 0xF7,
+ 0xcE, 0xFD,
+ 0xcF, 0xFF,
+
+ ///Y gamma
+ 0xfe, 0x00,
+ 0x63, 0x00,
+ 0x64, 0x05,
+ 0x65, 0x0b,
+ 0x66, 0x19,
+ 0x67, 0x2e,
+ 0x68, 0x40,
+ 0x69, 0x54,
+ 0x6a, 0x66,
+ 0x6b, 0x86,
+ 0x6c, 0xa7,
+ 0x6d, 0xc6,
+ 0x6e, 0xe4,
+ 0x6f, 0xff,
+
+
+
+ //////ASDE
+ 0xfe, 0x01,
+ 0x18, 0x02,
+
+ 0xfe, 0x00,
+
+ 0x98, 0x00,
+ 0x9b, 0x20,
+ 0x9c, 0x80,
+ 0xa4, 0x10,
+ 0xa8, 0xB0,
+ 0xaa, 0x40,
+ 0xa2, 0x23,
+ 0xad, 0x01,
+
+ ///////////////////////////////////////
+ ////////// AEC /////////////////////
+ ///////////////////////////////////////
+ 0xfe, 0x01,
+ 0x9c, 0x02,
+ 0x08, 0xa0,
+ 0x09, 0xe8,
+
+ 0x10, 0x08,
+
+ 0x11, 0x91,
+ 0x12, 0x10,
+ 0x13, 0x30,// 45
+ 0x15, 0xfc,
+ 0x21, 0xa0,//c0
+ 0x22, 0x40,//60
+ 0x23, 0x30,
+ 0x25, 0x00,
+ 0x24, 0x14,
+
+
+ //0x28, 0x0a,
+
+ 0xfe,0x00 ,
+ 0x05,0x00 ,
+ 0x06,0x80 , // hb
+ 0x07,0x00 ,
+ 0x08,0x60 ,//vb
+
+ 0xfe,0x01 ,
+ 0x29,0x00 , //anti-flicker step [11:8]
+ 0x2a,0x49 , //anti-flicker step [7:0]
+
+ 0x2b,0x02 , //exp level 0 20fps
+ 0x2c,0x48,
+ 0x2d,0x02 , //exp level 14 fps
+ 0x2e,0xda ,
+ 0x2f,0x03 , //exp level 2 10.00fps
+ 0x30,0xfe ,
+ 0x31,0x05 , //exp level 3 8fps
+ 0x32,0x6b ,
+ 0xfe,0x00 ,
+ //////////////////////////////////////
+ ////////////LSC//////////////////////
+ //////////////////////////////////////
+ 0xfe, 0x01,
+ 0xc0, 0x0f,
+ 0xc1, 0x0b,
+ 0xc2, 0x0b,
+ 0xc6, 0x04,
+ 0xc7, 0x00,
+ 0xc8, 0x00,
+ 0xba, 0x1e,
+ 0xbb, 0x1a,
+ 0xbc, 0x1b,
+ 0xb4, 0x1a,
+ 0xb5, 0x12,
+ 0xb6, 0x14,
+ 0xc3, 0x00,
+ 0xc4, 0x00,
+ 0xc5, 0x00,
+ 0xc9, 0x00,
+ 0xca, 0x00,
+ 0xcb, 0x00,
+ 0xbd, 0x0a,
+ 0xbe, 0x00,
+ 0xbf, 0x00,
+ 0xb7, 0x04,
+ 0xb8, 0x00,
+ 0xb9, 0x00,
+ 0xa8, 0x13,
+ 0xa9, 0x0b,
+ 0xaa, 0x0b,
+ 0xab, 0x20,
+ 0xac, 0x1c,
+ 0xad, 0x22,
+ 0xae, 0x0e,
+ 0xaf, 0x05,
+ 0xb0, 0x06,
+ 0xb1, 0x0d,
+ 0xb2, 0x0a,
+ 0xb3, 0x08,
+ 0xa4, 0x00,
+ 0xa5, 0x00,
+ 0xa6, 0x00,
+ 0xa7, 0x00,
+ 0xa1, 0x3c,
+ 0xa2, 0x50,
+ 0xfe, 0x00,
+
+ ///cct
+ #if 0
+ 0xB1, 0x02,
+ 0xB2, 0x02,
+ 0xB3, 0x07,
+ 0xB4, 0xf0,
+ 0xB5, 0x05,
+ 0xB6, 0xf0,
+
+ 0xf1, 0x07,
+
+ 0xf2, 0x01,
+ #endif
+0xB1,0x08 ,// 40
+ 0xB2,0x02 ,
+ 0xB3,0x03 ,//07
+ 0xB4,0xe0 ,
+ 0xB5,0x00 ,//
+ 0xB6,0xf0 ,
+ 0xB7,0x0a ,
+
+ 0xf1,0x07 ,
+ 0xf1,0x07 ,
+ 0xf2,0x01 ,
+};
+#endif
|