diff --git a/mxc_mipi_csi.c.orig b/mxc_mipi_csi.c index ed111e9..b620848 100644 --- a/mxc_mipi_csi.c.orig +++ b/mxc_mipi_csi.c @@ -318,6 +318,10 @@ static const struct csis_pix_format mipi_csis_formats[] = { .fmt_reg = MIPI_CSIS_ISPCFG_FMT_YCBCR422_8BIT, .data_alignment = 16, }, { + .code = MEDIA_BUS_FMT_UYVY8_2X8, + .fmt_reg = MIPI_CSIS_ISPCFG_FMT_YCBCR422_8BIT, + .data_alignment = 16, + } , { .code = MEDIA_BUS_FMT_SBGGR8_1X8, .fmt_reg = MIPI_CSIS_ISPCFG_FMT_RAW8, .data_alignment = 8, @@ -343,10 +347,15 @@ static inline struct csi_state static const struct csis_pix_format *find_csis_format(u32 code) { int i; - + printk(" \n Finding MIPI_CSI Format Code: %d, from formats arr: %ld \n", code, ARRAY_SIZE(mipi_csis_formats)); for (i = 0; i < ARRAY_SIZE(mipi_csis_formats); i++) + { if (code == mipi_csis_formats[i].code) + { return &mipi_csis_formats[i]; + } + } return NULL; }