[PATCH 40/72] imx-drm: parallel-display: Support RGB666 pixel fmt
Steve Longerbeam
slongerbeam at gmail.com
Fri Oct 31 15:54:23 PDT 2014
Add a clause to imx-pd driver to use 18-bit output if driver is told so.
Signed-off-by: Dmitry Eremin-Solenikov <dmitry_eremin at mentor.com>
Signed-off-by: Steve Longerbeam <steve_longerbeam at mentor.com>
---
drivers/staging/imx-drm/parallel-display.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/staging/imx-drm/parallel-display.c b/drivers/staging/imx-drm/parallel-display.c
index 015a454..5f7d4ee 100644
--- a/drivers/staging/imx-drm/parallel-display.c
+++ b/drivers/staging/imx-drm/parallel-display.c
@@ -230,6 +230,13 @@ static int imx_pd_bind(struct device *dev, struct device *master, void *data)
else if (!strcmp(fmt, "lvds666"))
imxpd->interface_pix_fmt =
v4l2_fourcc('L', 'V', 'D', '6');
+ else if (!strcmp(fmt, "rgb18"))
+ imxpd->interface_pix_fmt =
+ v4l2_fourcc('R', 'G', 'B', 'H');
+ else {
+ dev_err(dev, "Unsupported interface pix_fmt!\n");
+ return -EINVAL;
+ }
}
panel_node = of_parse_phandle(np, "fsl,panel", 0);
--
1.7.9.5
More information about the dri-devel
mailing list