} else {
gpio_set_value(camera_power, (((~camera_ioflag)&RK29_CAM_POWERACTIVE_MASK)>>RK29_CAM_POWERACTIVE_BITPOS));
//printk("\n%s..%s..PowerPin=%d ..PinLevel = %x \n",__FUNCTION__,dev_name(dev), camera_power, (((~camera_ioflag)&RK29_CAM_POWERACTIVE_MASK)>>RK29_CAM_POWERACTIVE_BITPOS));
+ msleep(100);
}
}
#define CONFIG_SENSOR_Mirror 0
#define CONFIG_SENSOR_Flip 0
-#define CONFIG_SENSOR_I2C_SPEED 250000 /* Hz */
+#define CONFIG_SENSOR_I2C_SPEED 100000 /* Hz */
#define CONFIG_SENSOR_TR 1
#define CONFIG_SENSOR_DEBUG 1
sensor_read(client,0x3002,®_val);
sensor_write(client, 0x3002, reg_val&0x1f);
+ msleep(100);
return 0;
}
#define CONFIG_SENSOR_Focus 0
#endif
-#define CONFIG_SENSOR_I2C_SPEED 200000 /* Hz */
+#define CONFIG_SENSOR_I2C_SPEED 100000 /* Hz */
#define CONFIG_SENSOR_TR 1
#define CONFIG_SENSOR_DEBUG 1
/* 800X600 SVGA*/
static struct reginfo sensor_svga[] =
{
+#if 0
{0x3000,0xf8},
{0x3001,0x48},
{0x3002,0x5c},
{0x3002,0x5c},
{0x3503,0x00},
{0x3000,0x00},
+#else
+ {0x3800 ,0x1 },
+ {0x3801 ,0x50},
+ {0x3802 ,0x0 },
+ {0x3803 ,0x8 },
+ {0x3804 ,0x5 },
+ {0x3805 ,0x0 },
+ {0x3806 ,0x3 },
+ {0x3807 ,0xc0},
+ {0x3808 ,0x3 },
+ {0x3809 ,0x20},
+ {0x380a ,0x2 },
+ {0x380b ,0x58},
+ {0x380c ,0xc },
+ {0x380d ,0x80},
+ {0x380e ,0x3 },
+ {0x380f ,0xe8},
+ {0x5001 ,0x7f},
+ {0x5680 ,0x0 },
+ {0x5681 ,0x0 },
+ {0x5682 ,0x5 },
+ {0x5683 ,0x0 },
+ {0x5684 ,0x0 },
+ {0x5685 ,0x0 },
+ {0x5686 ,0x3 },
+ {0x5687 ,0xc0},
+ {0x5687 ,0xc0},
+ {0x3815 ,0x02},
+ {0x3503 ,0x00},
+#endif
{0x0000 ,0x00}
};
sensor_write(client,0x3019,0X00); // STROBE,SDA
SENSOR_DG("\n%s..%s exit \n",SENSOR_NAME_STRING(),__FUNCTION__);
+ msleep(100);
return 0;
}
static struct reginfo sensor_power_down_sequence[]=