[media] s5p-csis: Add support for raw Bayer pixel formats
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Wed, 29 Aug 2012 17:35:21 +0000 (14:35 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 21 Dec 2012 14:23:05 +0000 (12:23 -0200)
The MIPI CSIS device supports MIPI CSI-2 RAW8, RAW10, RAW12 data
types. Add related media bus pixel format definitions. This
doesn't cover all possible supported media bus pixel formats.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/s5p-fimc/mipi-csis.c

index 9528ee65a84351916f7fa06dfafc6b9f9072806b..36916d3f199aa941118e98f3f6bc660d942674d0 100644 (file)
@@ -220,6 +220,18 @@ static const struct csis_pix_format s5pcsis_formats[] = {
                .code = V4L2_MBUS_FMT_S5C_UYVY_JPEG_1X8,
                .fmt_reg = S5PCSIS_CFG_FMT_USER(1),
                .data_alignment = 32,
+       }, {
+               .code = V4L2_MBUS_FMT_SGRBG8_1X8,
+               .fmt_reg = S5PCSIS_CFG_FMT_RAW8,
+               .data_alignment = 24,
+       }, {
+               .code = V4L2_MBUS_FMT_SGRBG10_1X10,
+               .fmt_reg = S5PCSIS_CFG_FMT_RAW10,
+               .data_alignment = 24,
+       }, {
+               .code = V4L2_MBUS_FMT_SGRBG12_1X12,
+               .fmt_reg = S5PCSIS_CFG_FMT_RAW12,
+               .data_alignment = 24,
        }
 };