static struct regulator *analog_regulator;
static struct regulator *gpo_regulator;
-extern void gpio_sensor_active(void);
-extern void gpio_sensor_inactive(void);
/* list of image formats supported by this sensor */
/*
pr_debug("In ov2640:ioctl_s_power\n");
if (on && !sensor->on) {
- gpio_sensor_active();
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();
}
sensor->on = on;
pr_debug("In ov2640:ioctl_dev_init\n");
- gpio_sensor_active();
ov2640_data.on = true;
tgt_xclk = ov2640_data.mclk;
{
pr_debug("In ov2640:ioctl_dev_exit\n");
- gpio_sensor_inactive();
-
return 0;
}
const struct i2c_device_id *id)
{
int retval;
- struct mxc_camera_platform_data *plat_data = client->dev.platform_data;
+ struct fsl_mxc_camera_platform_data *plat_data = client->dev.platform_data;
pr_debug("In ov2640_probe (RH_BT565)\n");
.id_table = ov3640_id,
};
-#if 0
-extern void gpio_sensor_active(unsigned int csi_index);
-extern void gpio_sensor_inactive(unsigned int csi);
-#else
-void gpio_sensor_active(unsigned int csi_index)
-{
- return;
-}
-void gpio_sensor_inactive(unsigned int csi)
-{
- return;
-}
-#endif
static s32 ov3640_write_reg(u16 reg, u8 val)
{
struct sensor *sensor = s->priv;
if (on && !sensor->on) {
- gpio_sensor_active(ov3640_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(ov3640_data.csi);
}
sensor->on = on;
u32 tgt_fps; /* target frames per secound */
enum ov3640_frame_rate frame_rate;
- gpio_sensor_active(ov3640_data.csi);
ov3640_data.on = true;
/* mclk */
*/
static int ioctl_dev_exit(struct v4l2_int_device *s)
{
- gpio_sensor_inactive(ov3640_data.csi);
-
return 0;
}
static struct regulator *core_regulator;
static struct regulator *analog_regulator;
static struct regulator *gpo_regulator;
-static struct mxc_camera_platform_data *camera_plat;
+static struct fsl_mxc_camera_platform_data *camera_plat;
static int ov5640_probe(struct i2c_client *adapter,
const struct i2c_device_id *device_id);
.id_table = ov5640_id,
};
-extern void gpio_sensor_active(unsigned int csi_index);
-extern void gpio_sensor_inactive(unsigned int csi);
static s32 ov5640_write_reg(u16 reg, u8 val)
{
struct sensor *sensor = s->priv;
if (on && !sensor->on) {
- gpio_sensor_active(ov5640_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(ov5640_data.csi);
}
sensor->on = on;
u32 tgt_fps; /* target frames per secound */
enum ov5640_frame_rate frame_rate;
- gpio_sensor_active(ov5640_data.csi);
ov5640_data.on = true;
/* mclk */
*/
static int ioctl_dev_exit(struct v4l2_int_device *s)
{
- gpio_sensor_inactive(ov5640_data.csi);
-
return 0;
}
const struct i2c_device_id *id)
{
int retval;
- struct mxc_camera_platform_data *plat_data = client->dev.platform_data;
+ struct fsl_mxc_camera_platform_data *plat_data = client->dev.platform_data;
/* Set initial values for the sensor struct. */
memset(&ov5640_data, 0, sizeof(ov5640_data));
static struct regulator *core_regulator;
static struct regulator *analog_regulator;
static struct regulator *gpo_regulator;
-static struct mxc_camera_platform_data *camera_plat;
+static struct fsl_mxc_camera_platform_data *camera_plat;
static int ov5642_probe(struct i2c_client *adapter,
const struct i2c_device_id *device_id);
.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)
{
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;
}
const struct i2c_device_id *id)
{
int retval;
- struct mxc_camera_platform_data *plat_data = client->dev.platform_data;
+ struct fsl_mxc_camera_platform_data *plat_data = client->dev.platform_data;
/* Set initial values for the sensor struct. */
memset(&ov5642_data, 0, sizeof(ov5642_data));