diff options
author | Robby Cai <R63905@freescale.com> | 2013-03-14 16:37:09 +0800 |
---|---|---|
committer | Robby Cai <R63905@freescale.com> | 2013-03-21 14:00:05 +0800 |
commit | 24ef6f52c717b9f2288d1c66ec6efd284935e23e (patch) | |
tree | 06bb1dd87919843c7b8b0c1339d83bd5cd049a5b /drivers | |
parent | 4bd475ba0603e10cdcab7e55f89599f7016cad25 (diff) |
ENGR00252064-1 csi/v4l: need power on sensor for its initialization
Need power on the sensor for its initialization, otherwise the sensor can
not work properly.
Signed-off-by: Sheng Nan <b38800@freescale.com>
Signed-off-by: Robby Cai <R63905@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/video/mxc/capture/csi_v4l2_capture.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/video/mxc/capture/csi_v4l2_capture.c b/drivers/media/video/mxc/capture/csi_v4l2_capture.c index 5c9c69c18e79..4a60c65ba9ff 100644 --- a/drivers/media/video/mxc/capture/csi_v4l2_capture.c +++ b/drivers/media/video/mxc/capture/csi_v4l2_capture.c @@ -1737,7 +1737,9 @@ static int csi_v4l2_master_attach(struct v4l2_int_device *slave) } csi_enable_mclk(CSI_MCLK_I2C, true, true); + vidioc_int_s_power(cam->sensor, 1); vidioc_int_dev_init(slave); + vidioc_int_s_power(cam->sensor, 0); csi_enable_mclk(CSI_MCLK_I2C, false, false); cam_fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; vidioc_int_g_fmt_cap(cam->sensor, &cam_fmt); |