gpu: ipu-csi: add 10/12-bit grayscale support to mbus_code_to_bus_cfg
The 10/12-bit config used for bayer formats is used for grayscale as well. Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
This commit is contained in:
parent
58a22fc445
commit
50b0f0aee8
|
@ -288,6 +288,7 @@ static int mbus_code_to_bus_cfg(struct ipu_csi_bus_config *cfg, u32 mbus_code)
|
||||||
case MEDIA_BUS_FMT_SGBRG10_1X10:
|
case MEDIA_BUS_FMT_SGBRG10_1X10:
|
||||||
case MEDIA_BUS_FMT_SGRBG10_1X10:
|
case MEDIA_BUS_FMT_SGRBG10_1X10:
|
||||||
case MEDIA_BUS_FMT_SRGGB10_1X10:
|
case MEDIA_BUS_FMT_SRGGB10_1X10:
|
||||||
|
case MEDIA_BUS_FMT_Y10_1X10:
|
||||||
cfg->data_fmt = CSI_SENS_CONF_DATA_FMT_BAYER;
|
cfg->data_fmt = CSI_SENS_CONF_DATA_FMT_BAYER;
|
||||||
cfg->mipi_dt = MIPI_DT_RAW10;
|
cfg->mipi_dt = MIPI_DT_RAW10;
|
||||||
cfg->data_width = IPU_CSI_DATA_WIDTH_10;
|
cfg->data_width = IPU_CSI_DATA_WIDTH_10;
|
||||||
|
@ -296,6 +297,7 @@ static int mbus_code_to_bus_cfg(struct ipu_csi_bus_config *cfg, u32 mbus_code)
|
||||||
case MEDIA_BUS_FMT_SGBRG12_1X12:
|
case MEDIA_BUS_FMT_SGBRG12_1X12:
|
||||||
case MEDIA_BUS_FMT_SGRBG12_1X12:
|
case MEDIA_BUS_FMT_SGRBG12_1X12:
|
||||||
case MEDIA_BUS_FMT_SRGGB12_1X12:
|
case MEDIA_BUS_FMT_SRGGB12_1X12:
|
||||||
|
case MEDIA_BUS_FMT_Y12_1X12:
|
||||||
cfg->data_fmt = CSI_SENS_CONF_DATA_FMT_BAYER;
|
cfg->data_fmt = CSI_SENS_CONF_DATA_FMT_BAYER;
|
||||||
cfg->mipi_dt = MIPI_DT_RAW12;
|
cfg->mipi_dt = MIPI_DT_RAW12;
|
||||||
cfg->data_width = IPU_CSI_DATA_WIDTH_12;
|
cfg->data_width = IPU_CSI_DATA_WIDTH_12;
|
||||||
|
|
Loading…
Reference in New Issue