aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrzej Hajda <a.hajda@samsung.com>2013-08-21 10:22:02 -0400
committerInki Dae <inki.dae@samsung.com>2013-09-05 00:43:44 -0400
commitb063f4af849e5f3a8a422dc10138814f58c73641 (patch)
tree40d73a41b10e6c752bfb45057df9db820b0d07df
parent111e6055d4e0d35c6a4b6cd37d7bb00a88eaffb4 (diff)
drm/exynos: fimd: get signal polarities from device tree
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> Signed-off-by: Inki Dae <inki.dae@samsung.com>
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_fimd.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c
index a183ea7dbd55..6afcaf164549 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)
915 DRM_ERROR("failed: of_get_videomode() : %d\n", ret); 915 DRM_ERROR("failed: of_get_videomode() : %d\n", ret);
916 return ret; 916 return ret;
917 } 917 }
918
919 if (vm->flags & DISPLAY_FLAGS_VSYNC_LOW)
920 pdata->vidcon1 |= VIDCON1_INV_VSYNC;
921 if (vm->flags & DISPLAY_FLAGS_HSYNC_LOW)
922 pdata->vidcon1 |= VIDCON1_INV_HSYNC;
923 if (vm->flags & DISPLAY_FLAGS_DE_LOW)
924 pdata->vidcon1 |= VIDCON1_INV_VDEN;
925 if (vm->flags & DISPLAY_FLAGS_PIXDATA_NEGEDGE)
926 pdata->vidcon1 |= VIDCON1_INV_VCLK;
918 } else { 927 } else {
919 pdata = dev->platform_data; 928 pdata = dev->platform_data;
920 if (!pdata) { 929 if (!pdata) {