Commit 0477b086 authored by Lad Prabhakar's avatar Lad Prabhakar Committed by Hans Verkuil
Browse files
parent c6ed80fd
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -188,6 +188,10 @@ struct rzg2l_csi2_format {

static const struct rzg2l_csi2_format rzg2l_csi2_formats[] = {
	{ .code = MEDIA_BUS_FMT_UYVY8_1X16, .bpp = 16 },
	{ .code = MEDIA_BUS_FMT_SBGGR8_1X8, .bpp = 8, },
	{ .code = MEDIA_BUS_FMT_SGBRG8_1X8, .bpp = 8, },
	{ .code = MEDIA_BUS_FMT_SGRBG8_1X8, .bpp = 8, },
	{ .code = MEDIA_BUS_FMT_SRGGB8_1X8, .bpp = 8, },
};

static inline struct rzg2l_csi2 *sd_to_csi2(struct v4l2_subdev *sd)
+28 −0
Original line number Diff line number Diff line
@@ -18,6 +18,34 @@ static const struct rzg2l_cru_ip_format rzg2l_cru_ip_formats[] = {
		.bpp = 2,
		.icndmr = ICnDMR_YCMODE_UYVY,
	},
	{
		.code = MEDIA_BUS_FMT_SBGGR8_1X8,
		.format = V4L2_PIX_FMT_SBGGR8,
		.datatype = MIPI_CSI2_DT_RAW8,
		.bpp = 1,
		.icndmr = 0,
	},
	{
		.code = MEDIA_BUS_FMT_SGBRG8_1X8,
		.format = V4L2_PIX_FMT_SGBRG8,
		.datatype = MIPI_CSI2_DT_RAW8,
		.bpp = 1,
		.icndmr = 0,
	},
	{
		.code = MEDIA_BUS_FMT_SGRBG8_1X8,
		.format = V4L2_PIX_FMT_SGRBG8,
		.datatype = MIPI_CSI2_DT_RAW8,
		.bpp = 1,
		.icndmr = 0,
	},
	{
		.code = MEDIA_BUS_FMT_SRGGB8_1X8,
		.format = V4L2_PIX_FMT_SRGGB8,
		.datatype = MIPI_CSI2_DT_RAW8,
		.bpp = 1,
		.icndmr = 0,
	},
};

const struct rzg2l_cru_ip_format *rzg2l_cru_ip_code_to_fmt(unsigned int code)