OSDN Git Service

gpu: ipu-v3: csi: support RGB565 on parallel bus
authorJan Luebbe <jlu@pengutronix.de>
Thu, 3 May 2018 16:29:37 +0000 (18:29 +0200)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 16 Jul 2018 14:56:37 +0000 (16:56 +0200)
commit1e6a1495c66947b289de9ba92b569b62ce68a979
tree1c278cab16a8990e6946c8dd5071a55c42978771
parentd36d0e6309dd8137cf438cbb680e72eb63c81425
gpu: ipu-v3: csi: support RGB565 on parallel bus

The CSI_SENS_CONF_DATA_FMT_RGB565 configuration only works for MIPI
CSI-2 sources. On the parallel bus, we need to use bayer (generic) mode
instead. To handle this difference, we pass the mbus_type to
mbus_code_to_bus_cfg().

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
[p.zabel@pengutronix.de - renamed rc to ret for consistency]
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/gpu/ipu-v3/ipu-csi.c