summaryrefslogtreecommitdiff
path: root/drivers/staging/greybus/camera.c
diff options
context:
space:
mode:
authorEvgeniy Borisov <borisov_evgeniy@projectara.com>2016-06-23 12:39:18 +0300
committerGreg Kroah-Hartman <gregkh@google.com>2016-06-24 16:13:52 -0700
commitcaad3090ab37d47e21505b613ad611ad6d20358d (patch)
treebdebf4f3e35756e06dc085739767fa2d9b46be2d /drivers/staging/greybus/camera.c
parent9e138dd479cb1f924a3d78e13e6ba5668db73acc (diff)
greybus: camera: Add RAW data format
Add support for greybus RAW data format. Greybus RAW data formats starts from 0x80. Signed-off-by: Evgeniy Borisov <eborisov@mm-sol.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@linaro.org> Reviewed-by: Gjorgji Rosikopulos <grosikopulos@mm-sol.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/camera.c')
-rw-r--r--drivers/staging/greybus/camera.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/drivers/staging/greybus/camera.c b/drivers/staging/greybus/camera.c
index 0062f483fc2e..c47e4244a132 100644
--- a/drivers/staging/greybus/camera.c
+++ b/drivers/staging/greybus/camera.c
@@ -113,6 +113,38 @@ static const struct gb_camera_fmt_map mbus_to_gbus_format[] = {
.mbus_code = V4L2_MBUS_FMT_ARA_DEBUG_DATA_1X8,
.gb_format = 0x42,
},
+ {
+ .mbus_code = V4L2_MBUS_FMT_SBGGR10_1X10,
+ .gb_format = 0x80,
+ },
+ {
+ .mbus_code = V4L2_MBUS_FMT_SGBRG10_1X10,
+ .gb_format = 0x81,
+ },
+ {
+ .mbus_code = V4L2_MBUS_FMT_SGRBG10_1X10,
+ .gb_format = 0x82,
+ },
+ {
+ .mbus_code = V4L2_MBUS_FMT_SRGGB10_1X10,
+ .gb_format = 0x83,
+ },
+ {
+ .mbus_code = V4L2_MBUS_FMT_SBGGR12_1X12,
+ .gb_format = 0x84,
+ },
+ {
+ .mbus_code = V4L2_MBUS_FMT_SGBRG12_1X12,
+ .gb_format = 0x85,
+ },
+ {
+ .mbus_code = V4L2_MBUS_FMT_SGRBG12_1X12,
+ .gb_format = 0x86,
+ },
+ {
+ .mbus_code = V4L2_MBUS_FMT_SRGGB12_1X12,
+ .gb_format = 0x87,
+ },
};
#define ES2_APB_CDSI0_CPORT 16