[PATCH 8/8] media: imx: imx-mipi-csis: Add RGB/BGR888
Jacopo Mondi
jacopo at jmondi.org
Mon Feb 14 10:43:18 PST 2022
Add support for the RGB888_1X24 and BGR888_1X24 image formats.
Signed-off-by: Jacopo Mondi <jacopo at jmondi.org>
---
drivers/media/platform/imx/imx-mipi-csis.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/drivers/media/platform/imx/imx-mipi-csis.c b/drivers/media/platform/imx/imx-mipi-csis.c
index 9e0a478dba75..0d5870b3010a 100644
--- a/drivers/media/platform/imx/imx-mipi-csis.c
+++ b/drivers/media/platform/imx/imx-mipi-csis.c
@@ -366,6 +366,16 @@ static const struct csis_pix_format mipi_csis_formats[] = {
.data_type = MIPI_CSI2_DATA_TYPE_RGB565,
.width = 16,
},
+ {
+ .code = MEDIA_BUS_FMT_RGB888_1X24,
+ .data_type = MIPI_CSI2_DATA_TYPE_RGB888,
+ .width = 24,
+ },
+ {
+ .code = MEDIA_BUS_FMT_BGR888_1X24,
+ .data_type = MIPI_CSI2_DATA_TYPE_RGB888,
+ .width = 24,
+ },
/* RAW (Bayer and greyscale) formats. */
{
.code = MEDIA_BUS_FMT_SBGGR8_1X8,
--
2.35.0
More information about the linux-arm-kernel
mailing list