Commit d324cc15 authored by Yuxi Sun's avatar Yuxi Sun

ENGR00220176 sabrelite ov5642: Fix ov5642 probe fail

Add ov5642 power down function in the board initial file
Signed-off-by: default avatarYuxi Sun <b36102@freescale.com>
parent 14076c9a
......@@ -575,6 +575,15 @@ static struct i2c_board_info mxc_i2c0_board_info[] __initdata = {
},
};
static void mx6q_csi0_cam_powerdown(int powerdown)
{
if (powerdown)
gpio_set_value(MX6Q_SABRELITE_CSI0_PWN, 1);
else
gpio_set_value(MX6Q_SABRELITE_CSI0_PWN, 0);
msleep(2);
}
static void mx6q_csi0_io_init(void)
{
......@@ -615,6 +624,7 @@ static struct fsl_mxc_camera_platform_data camera_data = {
.mclk_source = 0,
.csi = 0,
.io_init = mx6q_csi0_io_init,
.pwdn = mx6q_csi0_cam_powerdown,
};
static struct i2c_board_info mxc_i2c1_board_info[] __initdata = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment