camera: temp version for ces
authorddl <ddl@rockchip.com>
Sun, 2 Jan 2011 14:49:06 +0000 (22:49 +0800)
committerddl <ddl@rockchip.com>
Sun, 2 Jan 2011 14:49:06 +0000 (22:49 +0800)
arch/arm/mach-rk29/board-rk29sdk.c
drivers/media/video/ov2659.c
drivers/media/video/ov5642.c

index 2edc6e2a5a726d7f6c94494cab716ff4d75c3955..f4f484771b39312c83f1316eccf0f6f8fcb20091 100755 (executable)
@@ -732,6 +732,7 @@ static int rk29_sensor_power(struct device *dev, int on)
                } 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);
                }
        }
 
index e6eb011eba9c373700b1cbf7f5f6933719b82a82..bf39146dc68748e571989db0f17dacfd1d108a9d 100755 (executable)
@@ -54,7 +54,7 @@ o* Driver for MT9M001 CMOS Image Sensor from Micron
 #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
@@ -1475,6 +1475,7 @@ static int sensor_deactivate(struct v4l2_subdev *sd)
        sensor_read(client,0x3002,&reg_val);
        sensor_write(client, 0x3002, reg_val&0x1f);
 
+       msleep(100);
        return 0;
 }
 
index a2636e8bf0403e262cebca4e26ab932c1f74aa3d..8b7319700a03abbde384d49b07cb0c55d601eb4c 100755 (executable)
@@ -60,7 +60,7 @@
 #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
@@ -2254,6 +2254,7 @@ static struct reginfo sensor_sxga[] =
 /* 800X600 SVGA*/
 static struct reginfo sensor_svga[] =
 {
+#if 0
        {0x3000,0xf8},
        {0x3001,0x48},
        {0x3002,0x5c},
@@ -2317,6 +2318,36 @@ static struct reginfo sensor_svga[] =
        {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}
 };
 
@@ -3799,6 +3830,7 @@ static int sensor_deactivate(struct v4l2_subdev *sd)
        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[]=