Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit caad3090 authored by Evgeniy Borisov's avatar Evgeniy Borisov Committed by Greg Kroah-Hartman
Browse files

greybus: camera: Add RAW data format



Add support for greybus RAW data format.
Greybus RAW data formats starts from 0x80.

Signed-off-by: default avatarEvgeniy Borisov <eborisov@mm-sol.com>
Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@linaro.org>
Reviewed-by: default avatarGjorgji Rosikopulos <grosikopulos@mm-sol.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 9e138dd4
Loading
Loading
Loading
Loading
+32 −0
Original line number Diff line number Diff line
@@ -113,6 +113,38 @@ static const struct gb_camera_fmt_map mbus_to_gbus_format[] = {
		.mbus_code = V4L2_MBUS_FMT_ARA_DEBUG_DATA_1X8,
		.gb_format = 0x42,
	},
	{
		.mbus_code = V4L2_MBUS_FMT_SBGGR10_1X10,
		.gb_format = 0x80,
	},
	{
		.mbus_code = V4L2_MBUS_FMT_SGBRG10_1X10,
		.gb_format = 0x81,
	},
	{
		.mbus_code = V4L2_MBUS_FMT_SGRBG10_1X10,
		.gb_format = 0x82,
	},
	{
		.mbus_code = V4L2_MBUS_FMT_SRGGB10_1X10,
		.gb_format = 0x83,
	},
	{
		.mbus_code = V4L2_MBUS_FMT_SBGGR12_1X12,
		.gb_format = 0x84,
	},
	{
		.mbus_code = V4L2_MBUS_FMT_SGBRG12_1X12,
		.gb_format = 0x85,
	},
	{
		.mbus_code = V4L2_MBUS_FMT_SGRBG12_1X12,
		.gb_format = 0x86,
	},
	{
		.mbus_code = V4L2_MBUS_FMT_SRGGB12_1X12,
		.gb_format = 0x87,
	},
};

#define ES2_APB_CDSI0_CPORT		16