Esempio n. 1
0
static int ov5670_csi_configure(struct v4l2_subdev *sd, int flag)
{
	static const int LANES = 2;
	
	if (offset_3 == 0) {
		return camera_sensor_csi(sd, ATOMISP_CAMERA_PORT_SECONDARY, LANES,
    	           ATOMISP_INPUT_FORMAT_RAW_10, atomisp_bayer_order_bggr, flag);		
	} else {
		return camera_sensor_csi(sd, ATOMISP_CAMERA_PORT_PRIMARY, LANES,
				   ATOMISP_INPUT_FORMAT_RAW_10, atomisp_bayer_order_bggr, flag);
	}
}
static int ov5648_csi_configure(struct v4l2_subdev *sd, int flag)
{
	static const int LANES = 2;
	return camera_sensor_csi(sd, ATOMISP_CAMERA_PORT_PRIMARY, LANES,
				 ATOMISP_INPUT_FORMAT_RAW_10,
				 atomisp_bayer_order_bggr, flag);
}
static int gc0310_csi_configure(struct v4l2_subdev *sd, int flag)
{
	return camera_sensor_csi(sd, ATOMISP_CAMERA_PORT_SECONDARY, 1,
		ATOMISP_INPUT_FORMAT_YUV422_8, atomisp_bayer_order_rggb, flag);


}
static int t4k35_csi_configure(struct v4l2_subdev *sd, int flag)
{
	static const int LANES = 4;
	return camera_sensor_csi(sd, ATOMISP_CAMERA_PORT_PRIMARY, LANES,
		//ATOMISP_INPUT_FORMAT_RAW_10, atomisp_bayer_order_rggb, flag);
		ATOMISP_INPUT_FORMAT_RAW_10, atomisp_bayer_order_grbg, flag);
		//ATOMISP_INPUT_FORMAT_RAW_10, atomisp_bayer_order_bggr, flag);
		//ATOMISP_INPUT_FORMAT_RAW_10, atomisp_bayer_order_gbrg, flag);
}
Esempio n. 5
0
static int mt9m114_csi_configure(struct v4l2_subdev *sd, int flag)
{
	/* Default from legacy platform w/o firmware config */
	int port = ATOMISP_CAMERA_PORT_PRIMARY;
	int lanes = 2;
	int format = ATOMISP_INPUT_FORMAT_RAW_10;
	int bayer = atomisp_bayer_order_grbg;

	struct i2c_client *client = v4l2_get_subdevdata(sd);
	if (client && ACPI_COMPANION(&client->dev)) {
		struct device *dev = &client->dev;
		port = gmin_get_var_int(dev, "CsiPort", port);
		lanes = gmin_get_var_int(dev, "CsiLanes", lanes);
		format = gmin_get_var_int(dev, "CsiFmt", format);
		bayer = gmin_get_var_int(dev, "CsiBayer", bayer);
	}

	return camera_sensor_csi(sd, port, lanes, format, bayer, flag);
}
static int gc0339_csi_configure(struct v4l2_subdev *sd, int flag)
{
	static const int LANES = 1;
	return camera_sensor_csi(sd, ATOMISP_CAMERA_PORT_SECONDARY, LANES,
		ATOMISP_INPUT_FORMAT_RAW_10, atomisp_bayer_order_rggb, flag);
}
static int ov2685f_csi_configure(struct v4l2_subdev *sd, int flag)
{
	const u32 csi_lane = 1;
	return camera_sensor_csi(sd, ATOMISP_CAMERA_PORT_SECONDARY, csi_lane,
		ATOMISP_INPUT_FORMAT_YUV422_8, atomisp_bayer_order_bggr, flag);
}
static int m10mo_csi_configure(struct v4l2_subdev *sd, int flag)
{
	static const int LANES = 4;
	return camera_sensor_csi(sd, ATOMISP_CAMERA_PORT_PRIMARY, LANES,
		input_format, 0, flag);
}
static int pixter_2_csi_configure(struct v4l2_subdev *sd, int flag)
{
	return camera_sensor_csi(sd, ATOMISP_CAMERA_PORT_TERTIARY,
			PIXTER_2_LANES, PIXTER_2_FORMAT, PIXTER_2_BAYER, flag);
}
static int gc2155_csi_configure(struct v4l2_subdev *sd, int flag)
{
	pr_info("%s: port: SECONDARY; MIPI lane num: 1\n", __func__);
	return camera_sensor_csi(sd, ATOMISP_CAMERA_PORT_SECONDARY, 1,
		ATOMISP_INPUT_FORMAT_RAW_10, atomisp_bayer_order_rggb, flag);
}
static int gc2235f_csi_configure(struct v4l2_subdev *sd, int flag)
{
	return camera_sensor_csi(sd, ATOMISP_CAMERA_PORT_SECONDARY, 1,
		ATOMISP_INPUT_FORMAT_RAW_8, atomisp_bayer_order_gbrg, flag);
}
Esempio n. 12
0
static int mt9m114_csi_configure(struct v4l2_subdev *sd, int flag)
{
	/* soc sensor, there is no raw bayer order (set to -1) */
	return camera_sensor_csi(sd, ATOMISP_CAMERA_PORT_SECONDARY, 1,
		ATOMISP_INPUT_FORMAT_YUV422_8, -1, flag);
}
static int mt9m114_csi_configure(struct v4l2_subdev *sd, int flag)
{
	return camera_sensor_csi(sd, ATOMISP_CAMERA_PORT_SECONDARY, 1,
		-1, 0, flag);
}
static int ov5670_csi_configure(struct v4l2_subdev *sd, int flag)
{
	return camera_sensor_csi(sd, ATOMISP_CAMERA_PORT_SECONDARY, 2,
		ATOMISP_INPUT_FORMAT_RAW_10, atomisp_bayer_order_bggr, flag);
}
static int ov7736_csi_configure(struct v4l2_subdev *sd, int flag)
{
    static const int LANES = 1;
	return camera_sensor_csi(sd, ATOMISP_CAMERA_PORT_SECONDARY, LANES,
		ATOMISP_INPUT_FORMAT_YUV422_8, -1, flag);
}
static int mt9v113_csi_configure(struct v4l2_subdev *sd, int flag)
{
	return camera_sensor_csi(sd, ATOMISP_CAMERA_PORT_SECONDARY, 1,
		ATOMISP_INPUT_FORMAT_YUV422_8, -1, flag);
}
static int hm2056_csi_configure(struct v4l2_subdev *sd, int flag)
{
	static const int LANES = 1;
	return camera_sensor_csi(sd, ATOMISP_CAMERA_PORT_PRIMARY, LANES,
		ATOMISP_INPUT_FORMAT_RAW_8, atomisp_bayer_order_gbrg, flag);
}