media: imx: imx7-mipi-csis: Add MEDIA_BUS_FMT_UYVY10_2X10 support
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Thu, 12 Mar 2020 23:47:14 +0000 (00:47 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 14 Apr 2020 10:42:27 +0000 (12:42 +0200)
Add support for 10-bit YUV 4:2:2.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Rui Miguel Silva <rmfrfs@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/imx/imx7-mipi-csis.c

index de3e4d0..ebadb20 100644 (file)
@@ -270,6 +270,10 @@ static const struct csis_pix_format mipi_csis_formats[] = {
                .code = MEDIA_BUS_FMT_UYVY8_2X8,
                .fmt_reg = MIPI_CSIS_ISPCFG_FMT_YCBCR422_8BIT,
                .data_alignment = 8,
+       }, {
+               .code = MEDIA_BUS_FMT_UYVY10_2X10,
+               .fmt_reg = MIPI_CSIS_ISPCFG_FMT_YCBCR422_8BIT,
+               .data_alignment = 10,
        },
        /* RAW (Bayer and greyscale) formats. */
        {