camera 3066b: modify power control function, modify hi253 driver.
authorzyc <zyc@rock-chips.com>
Tue, 16 Oct 2012 07:11:13 +0000 (15:11 +0800)
committerzyc <zyc@rock-chips.com>
Tue, 16 Oct 2012 07:11:58 +0000 (15:11 +0800)
arch/arm/mach-rk30/board-rk3066b-m701-camera.c
drivers/media/video/hi253.c

index 865a3400e104388f096c8db66ddf847e57679824..19e4cff0fe4fe6b7bf6f1d456fc11d12ac1f8e77 100644 (file)
@@ -92,7 +92,7 @@
 
 #define CONFIG_SENSOR_11 RK29_CAM_SENSOR_OV2659                      /* front camera sensor 1 */
 #define CONFIG_SENSOR_IIC_ADDR_11          0x00
-#define CONFIG_SENSOR_IIC_ADAPTER_ID_11    3
+#define CONFIG_SENSOR_IIC_ADAPTER_ID_11    4
 #define CONFIG_SENSOR_ORIENTATION_11       270
 #define CONFIG_SENSOR_POWER_PIN_11         INVALID_GPIO
 #define CONFIG_SENSOR_RESET_PIN_11         INVALID_GPIO
 static void rk_cif_power(int on)
 {
     struct regulator *ldo_18,*ldo_28;
-       ldo_28 = regulator_get(NULL, "ldo7");   // vcc28_cif
-       ldo_18 = regulator_get(NULL, "ldo1");   // vcc18_cif
+       ldo_28 = regulator_get(NULL, "vmmc");   // vcc28_cif
+       ldo_18 = regulator_get(NULL, "vdig1");  // vcc18_cif
        if (ldo_28 == NULL || IS_ERR(ldo_28) || ldo_18 == NULL || IS_ERR(ldo_18)){
         printk("get cif ldo failed!\n");
                return;
index 0588114773ea31d659270e28109621dfe63319b7..128faf7899339bae3877dac923e889d49d1e3a4f 100755 (executable)
@@ -1191,7 +1191,7 @@ static struct reginfo sensor_sxga[] =
 };
 static struct reginfo sensor_xga[] =
 {
-       {0x01, 0xf8},
+       //{0x01, 0xf8},
        {END_REG, END_REG},
 };
 /* 800X600 SVGA,30fps*/