From: Andrzej Hajda <a.hajda@samsung.com>
To: "open list:DRM DRIVERS FOR E..." <dri-devel@lists.freedesktop.org>
Cc: Andrzej Hajda <a.hajda@samsung.com>,
Inki Dae <inki.dae@samsung.com>,
Joonyoung Shim <jy0922.shim@samsung.com>,
Seung-Woo Kim <sw0312.kim@samsung.com>,
Kyungmin Park <kyungmin.park@samsung.com>,
David Airlie <airlied@linux.ie>,
"moderated list:ARM/S5P EXYNOS AR..."
<linux-samsung-soc@vger.kernel.org>,
t.figa@samsung.com, s.nawrocki@samsung.com
Subject: [PATCH 2/3] drm/exynos: fimd: get signal polarities from device tree
Date: Wed, 21 Aug 2013 16:22:02 +0200 [thread overview]
Message-ID: <1377094923-6919-3-git-send-email-a.hajda@samsung.com> (raw)
In-Reply-To: <1377094923-6919-1-git-send-email-a.hajda@samsung.com>
The patch adds code to get signal polarization setting
from device tree display-timings node.
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
drivers/gpu/drm/exynos/exynos_drm_fimd.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c
index a183ea7..6afcaf1 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.c
@@ -915,6 +915,15 @@ static int fimd_probe(struct platform_device *pdev)
DRM_ERROR("failed: of_get_videomode() : %d\n", ret);
return ret;
}
+
+ if (vm->flags & DISPLAY_FLAGS_VSYNC_LOW)
+ pdata->vidcon1 |= VIDCON1_INV_VSYNC;
+ if (vm->flags & DISPLAY_FLAGS_HSYNC_LOW)
+ pdata->vidcon1 |= VIDCON1_INV_HSYNC;
+ if (vm->flags & DISPLAY_FLAGS_DE_LOW)
+ pdata->vidcon1 |= VIDCON1_INV_VDEN;
+ if (vm->flags & DISPLAY_FLAGS_PIXDATA_NEGEDGE)
+ pdata->vidcon1 |= VIDCON1_INV_VCLK;
} else {
pdata = dev->platform_data;
if (!pdata) {
--
1.8.1.2
next prev parent reply other threads:[~2013-08-21 14:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-21 14:22 [PATCH 0/3] drm/exynos: fimd: get signal polarities from device tree Andrzej Hajda
2013-08-21 14:22 ` [PATCH 1/3] drm/exynos: fimd: replace struct fb_videomode with videomode Andrzej Hajda
2013-08-21 14:22 ` Andrzej Hajda [this message]
2013-08-21 14:22 ` [PATCH 3/3] drm/exynos: fimd: move platform data parsing to separate function Andrzej Hajda
2013-08-27 2:46 ` [PATCH 0/3] drm/exynos: fimd: get signal polarities from device tree Inki Dae
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1377094923-6919-3-git-send-email-a.hajda@samsung.com \
--to=a.hajda@samsung.com \
--cc=airlied@linux.ie \
--cc=dri-devel@lists.freedesktop.org \
--cc=inki.dae@samsung.com \
--cc=jy0922.shim@samsung.com \
--cc=kyungmin.park@samsung.com \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=s.nawrocki@samsung.com \
--cc=sw0312.kim@samsung.com \
--cc=t.figa@samsung.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox