From: Jacopo Mondi Date: Mon, 21 Feb 2022 17:47:25 +0000 (+0100) Subject: media: imx: imx-mipi-csis: Add RGB565_1X16 X-Git-Tag: v6.1-rc5~1763^2~85^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6d8d3c0953eb508a0f65859bb562c256dfb2d055;p=platform%2Fkernel%2Flinux-starfive.git media: imx: imx-mipi-csis: Add RGB565_1X16 Add RGB565_1X16 to the enumeration of supported image formats. Signed-off-by: Jacopo Mondi Reviewed-by: Laurent Pinchart Acked-by: Rui Miguel Silva Acked-by: Sakari Ailus Signed-off-by: Hans Verkuil --- diff --git a/drivers/media/platform/imx/imx-mipi-csis.c b/drivers/media/platform/imx/imx-mipi-csis.c index 5873ff7..a1bfc76 100644 --- a/drivers/media/platform/imx/imx-mipi-csis.c +++ b/drivers/media/platform/imx/imx-mipi-csis.c @@ -360,6 +360,12 @@ static const struct csis_pix_format mipi_csis_formats[] = { .data_type = MIPI_CSI2_DATA_TYPE_YUV422_8, .width = 16, }, + /* RGB formats. */ + { + .code = MEDIA_BUS_FMT_RGB565_1X16, + .data_type = MIPI_CSI2_DATA_TYPE_RGB565, + .width = 16, + }, /* RAW (Bayer and greyscale) formats. */ { .code = MEDIA_BUS_FMT_SBGGR8_1X8,