From: Andrzej Hajda Date: Wed, 21 Aug 2013 14:22:02 +0000 (+0200) Subject: drm/exynos: fimd: get signal polarities from device tree X-Git-Tag: firefly_0821_release~176^2~5263^2~14^2~9 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b063f4af849e5f3a8a422dc10138814f58c73641;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Kyungmin Park Signed-off-by: Inki Dae --- 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) 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) {