summaryrefslogtreecommitdiff
path: root/drivers/media/video/mxc/capture
diff options
context:
space:
mode:
authorLiu Ying <b17645@freescale.com>2010-07-30 10:46:37 +0800
committerAlan Tull <r80115@freescale.com>2010-09-25 09:49:38 -0500
commit08631fe7020d6d42fbe63ef0f9ef02a2548eed03 (patch)
tree921a212e1832f2f07502eba5542bad5431c1a427 /drivers/media/video/mxc/capture
parenta215a8695c701044b938df2298d65b1ef7e55577 (diff)
ENGR00125693-2 OV3640:Set gpo regulator's voltage to be 2.8V
Set gpo regulator's voltage to be 2.8V. Signed-off-by: Liu Ying <b17645@freescale.com>
Diffstat (limited to 'drivers/media/video/mxc/capture')
-rw-r--r--drivers/media/video/mxc/capture/ov3640.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/media/video/mxc/capture/ov3640.c b/drivers/media/video/mxc/capture/ov3640.c
index e6d869d259b0..b7b552a5c9ae 100644
--- a/drivers/media/video/mxc/capture/ov3640.c
+++ b/drivers/media/video/mxc/capture/ov3640.c
@@ -26,7 +26,7 @@
#define OV3640_VOLTAGE_ANALOG 2800000
#define OV3640_VOLTAGE_DIGITAL_CORE 1500000
#define OV3640_VOLTAGE_DIGITAL_IO 1800000
-
+#define OV3640_VOLTAGE_DIGITAL_GPO 2800000
/* Check these values! */
#define MIN_FPS 15
@@ -1317,12 +1317,15 @@ static int ov3640_probe(struct i2c_client *client,
gpo_regulator = regulator_get(&client->dev,
plat_data->gpo_regulator);
if (!IS_ERR(gpo_regulator)) {
+ regulator_set_voltage(gpo_regulator,
+ OV3640_VOLTAGE_DIGITAL_GPO,
+ OV3640_VOLTAGE_DIGITAL_GPO);
if (regulator_enable(gpo_regulator) != 0) {
- pr_err("%s:gpo3 enable error\n", __func__);
+ pr_err("%s:gpo enable error\n", __func__);
goto err4;
} else {
dev_dbg(&client->dev,
- "%s:gpo3 enable ok\n", __func__);
+ "%s:gpo enable ok\n", __func__);
}
} else
gpo_regulator = NULL;