2 #if defined(CONFIG_MACH_RK30_PHONE_PAD)
5 static struct reginfo sensor_init_data[] =
10 {0xfe , 0x00}, // set page0
12 {0xd2 , 0x10}, // close AEC
13 {0x22 , 0x55}, // close AWB
21 {0x22 , 0x57}, // Open AWB
28 {0xe2 , 0x00}, //anti-flicker step [11:8]
29 {0xe3 , 0x64}, //anti-flicker step [7:0]
31 {0xe4 , 0x02}, //exp level 1 16.67fps
33 {0xe6 , 0x03}, //exp level 2 12.5fps
35 {0xe8 , 0x04}, //exp level 3 8.33fps
37 {0xea , 0x09}, //exp level 4 4.00fps
77 {0x26 , 0x02}, //0x03 20101016 zhj
197 //---------------------------------------------------------------
198 {0xfe , 0x01},// set page1
250 {0xfe , 0x00}, // set page0
252 //-----------Update the registers 2010/07/06-------------//
254 {0xfe , 0x00}, // set page0
256 {0x11 , 0x0d}, // fd,modified by mormo 2010/07/06
257 {0x1a , 0x2a}, // 1e,modified by mormo 2010/07/06
259 {0x1c , 0x49}, // c1,modified by mormo 2010/07/06
260 {0x1d , 0x9a}, // 08,modified by mormo 2010/07/06
261 {0x1e , 0x61}, // 60,modified by mormo 2010/07/06
265 {0x50 , 0x14}, // 10,modified by mormo 2010/07/06
280 {0xb1 , 0x40}, // YCPT
285 {0xd0 , 0xcb}, // AECT c9,modifed by mormo 2010/07/06
286 {0xd3 , 0x48}, // 80,modified by mormor 2010/07/06
293 {0xfe , 0x01},// set page1
317 //-----------Update the registers end---------//
320 {0xfe , 0x00}, // set page0
324 //-----------GAMMA Select(3)---------------//
343 /*GC0308_GAMMA_Select,
344 1: //smallest gamma curve
420 5: //largest gamma curve
438 //-----------GAMMA Select End--------------//
443 //-------------H_V_Switch(4)---------------//
444 {0x14 , 0x10}, //0x10
457 4: // IMAGE_HV_MIRROR
460 //-------------H_V_Select End--------------//
465 static struct reginfo sensor_sxga[] =
471 static struct reginfo sensor_svga[] =
477 static struct reginfo sensor_vga[] =
489 static struct reginfo sensor_cif[] =
495 static struct reginfo sensor_qvga[] =
501 static struct reginfo sensor_qcif[] =
510 /* init 640X480 VGA */
511 static struct reginfo sensor_init_data[] =
516 {0xfe , 0x00}, // set page0
518 {0xd2 , 0x10}, // close AEC
519 {0x22 , 0x55}, // close AWB
527 {0x22 , 0x57}, // Open AWB
534 {0xe2 , 0x00}, //anti-flicker step [11:8]
535 {0xe3 , 0x64}, //anti-flicker step [7:0]
537 {0xe4 , 0x02}, //exp level 1 16.67fps
539 {0xe6 , 0x03}, //exp level 2 12.5fps
541 {0xe8 , 0x04}, //exp level 3 8.33fps
543 {0xea , 0x09}, //exp level 4 4.00fps
583 {0x26 , 0x02}, //0x03 20101016 zhj
703 //---------------------------------------------------------------
704 {0xfe , 0x01},// set page1
756 {0xfe , 0x00}, // set page0
758 //-----------Update the registers 2010/07/06-------------//
760 {0xfe , 0x00}, // set page0
762 {0x11 , 0x0d}, // fd,modified by mormo 2010/07/06
763 {0x1a , 0x2a}, // 1e,modified by mormo 2010/07/06
765 {0x1c , 0x49}, // c1,modified by mormo 2010/07/06
766 {0x1d , 0x9a}, // 08,modified by mormo 2010/07/06
767 {0x1e , 0x61}, // 60,modified by mormo 2010/07/06
771 {0x50 , 0x14}, // 10,modified by mormo 2010/07/06
786 {0xb1 , 0x40}, // YCPT
791 {0xd0 , 0xcb}, // AECT c9,modifed by mormo 2010/07/06
792 {0xd3 , 0x48}, // 80,modified by mormor 2010/07/06
799 {0xfe , 0x01},// set page1
823 //-----------Update the registers end---------//
826 {0xfe , 0x00}, // set page0
830 //-----------GAMMA Select(3)---------------//
849 /*GC0308_GAMMA_Select,
850 1: //smallest gamma curve
926 5: //largest gamma curve
944 //-----------GAMMA Select End--------------//
949 //-------------H_V_Switch(4)---------------//
950 {0x14 , 0x10}, //0x10
963 4: // IMAGE_HV_MIRROR
966 //-------------H_V_Select End--------------//
971 static struct reginfo sensor_sxga[] =
977 static struct reginfo sensor_svga[] =
983 static struct reginfo sensor_vga[] =
995 static struct reginfo sensor_cif[] =
1001 static struct reginfo sensor_qvga[] =
1007 static struct reginfo sensor_qcif[] =