[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180905052113.21262-4-stefan@agner.ch>
Date: Tue, 4 Sep 2018 22:21:11 -0700
From: Stefan Agner <stefan@...er.ch>
To: linus.walleij@...aro.org, airlied@...ux.ie, robh+dt@...nel.org,
mark.rutland@....com, shawnguo@...nel.org, s.hauer@...gutronix.de,
p.zabel@...gutronix.de
Cc: kernel@...gutronix.de, fabio.estevam@....com, linux-imx@....com,
architt@...eaurora.org, a.hajda@...sung.com,
Laurent.pinchart@...asonboard.com, gustavo@...ovan.org,
maarten.lankhorst@...ux.intel.com, sean@...rly.run,
marcel.ziswiler@...adex.com, max.krummenacher@...adex.com,
dri-devel@...ts.freedesktop.org, devicetree@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
Stefan Agner <stefan@...er.ch>
Subject: [PATCH 4/6] drm/imx: support handling bridge timings bus flags
A bridge might require specific settings for the pixel data on
the bus. Copy the bus flags from the bridge timings if a bridge
is in use.
Signed-off-by: Stefan Agner <stefan@...er.ch>
---
drivers/gpu/drm/imx/parallel-display.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/gpu/drm/imx/parallel-display.c b/drivers/gpu/drm/imx/parallel-display.c
index aefd04e18f93..ee5840cdb9ab 100644
--- a/drivers/gpu/drm/imx/parallel-display.c
+++ b/drivers/gpu/drm/imx/parallel-display.c
@@ -239,6 +239,13 @@ static int imx_pd_bind(struct device *dev, struct device *master, void *data)
if (ret && ret != -ENODEV)
return ret;
+ if (imxpd->bridge) {
+ const struct drm_bridge_timings *btimings = imxpd->bridge->timings;
+
+ if (btimings)
+ imxpd->bus_flags = btimings->bus_flags;
+ }
+
imxpd->dev = dev;
ret = imx_pd_register(drm, imxpd);
--
2.18.0
Powered by blists - more mailing lists