diff options
author | Liu Ying <b17645@freescale.com> | 2010-07-30 10:46:37 +0800 |
---|---|---|
committer | Liu Ying <b17645@freescale.com> | 2010-07-30 10:53:17 +0800 |
commit | 00d9ea3faa6472c1e4c5834591d0a6506689468e (patch) | |
tree | 85a8a81e3f88e117c468527268d061e35c0e0cb0 | |
parent | 0fdef292087b5686587c7cbd37a5c918b2a75e98 (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>
-rw-r--r-- | drivers/media/video/mxc/capture/ov3640.c | 9 |
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 0169e0553ada..899945b7d071 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; |