.id_table = ov5642_id,
};
-extern void gpio_sensor_active(unsigned int csi_index);
-extern void gpio_sensor_inactive(unsigned int csi);
-
static s32 ov5642_write_reg(u16 reg, u8 val)
{
u8 au8Buf[3] = {0};
struct sensor *sensor = s->priv;
if (on && !sensor->on) {
- gpio_sensor_active(ov5642_data.csi);
if (io_regulator)
if (regulator_enable(io_regulator) != 0)
return -EIO;
regulator_disable(io_regulator);
if (gpo_regulator)
regulator_disable(gpo_regulator);
- gpio_sensor_inactive(ov5642_data.csi);
}
sensor->on = on;
u32 tgt_fps; /* target frames per secound */
enum ov5642_frame_rate frame_rate;
- gpio_sensor_active(ov5642_data.csi);
ov5642_data.on = true;
/* mclk */
*/
static int ioctl_dev_exit(struct v4l2_int_device *s)
{
- gpio_sensor_inactive(ov5642_data.csi);
-
return 0;
}