mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-09 14:14:00 +08:00
media: stm32-dcmi: add support of 1X16 serial pixel formats variant
Add support of 1X16 serial pixel formats in order to support CSI-2 camera sensor exposing 1x16 pixel formats only. Signed-off-by: Hugues Fruchet <hugues.fruchet@st.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
parent
d0034926fa
commit
887e6ee3de
@ -1591,25 +1591,31 @@ static int dcmi_set_default_fmt(struct stm32_dcmi *dcmi)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* FIXME: For the time being we only support subdevices
|
||||
* which expose RGB & YUV "parallel form" mbus code (_2X8).
|
||||
* Nevertheless, this allows to support serial source subdevices
|
||||
* and serial to parallel bridges which conform to this.
|
||||
*/
|
||||
static const struct dcmi_format dcmi_formats[] = {
|
||||
{
|
||||
.fourcc = V4L2_PIX_FMT_RGB565,
|
||||
.mbus_code = MEDIA_BUS_FMT_RGB565_2X8_LE,
|
||||
.bpp = 2,
|
||||
}, {
|
||||
.fourcc = V4L2_PIX_FMT_RGB565,
|
||||
.mbus_code = MEDIA_BUS_FMT_RGB565_1X16,
|
||||
.bpp = 2,
|
||||
}, {
|
||||
.fourcc = V4L2_PIX_FMT_YUYV,
|
||||
.mbus_code = MEDIA_BUS_FMT_YUYV8_2X8,
|
||||
.bpp = 2,
|
||||
}, {
|
||||
.fourcc = V4L2_PIX_FMT_YUYV,
|
||||
.mbus_code = MEDIA_BUS_FMT_YUYV8_1X16,
|
||||
.bpp = 2,
|
||||
}, {
|
||||
.fourcc = V4L2_PIX_FMT_UYVY,
|
||||
.mbus_code = MEDIA_BUS_FMT_UYVY8_2X8,
|
||||
.bpp = 2,
|
||||
}, {
|
||||
.fourcc = V4L2_PIX_FMT_UYVY,
|
||||
.mbus_code = MEDIA_BUS_FMT_UYVY8_1X16,
|
||||
.bpp = 2,
|
||||
}, {
|
||||
.fourcc = V4L2_PIX_FMT_JPEG,
|
||||
.mbus_code = MEDIA_BUS_FMT_JPEG_1X8,
|
||||
|
Loading…
Reference in New Issue
Block a user