diff options
author | Inki Dae <inki.dae@samsung.com> | 2014-04-28 17:42:12 +0900 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2014-04-29 13:03:42 +0900 |
commit | 053f0d623b2d22026aa959ed04d12a5258b86a2d (patch) | |
tree | 162057938cfde58c4f9acfebde13df46d7ecba50 | |
parent | fbab103f8497067335da182ce706498a3043c5b3 (diff) | |
download | linux-3.10-053f0d623b2d22026aa959ed04d12a5258b86a2d.tar.gz linux-3.10-053f0d623b2d22026aa959ed04d12a5258b86a2d.tar.bz2 linux-3.10-053f0d623b2d22026aa959ed04d12a5258b86a2d.zip |
drm/exynos: fimd: update dt bindings
This patch removes wrong dt bindings and adds new ones.
Signed-off-by: Inki Dae <inki.dae@samsung.com>
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_fimd.c | 43 |
1 files changed, 4 insertions, 39 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c index a09e28b3d60..474b009c282 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.c @@ -863,35 +863,10 @@ out: return IRQ_HANDLED; } -static int fimd_get_platform_data(struct fimd_context *ctx, struct device *dev) -{ - struct videomode *vm; - int ret; - - vm = &ctx->panel.vm; - ret = of_get_videomode(dev->of_node, vm, OF_USE_NATIVE_MODE); - if (ret) { - DRM_ERROR("failed: of_get_videomode() : %d\n", ret); - return ret; - } - - if (vm->flags & DISPLAY_FLAGS_VSYNC_LOW) - ctx->vidcon1 |= VIDCON1_INV_VSYNC; - if (vm->flags & DISPLAY_FLAGS_HSYNC_LOW) - ctx->vidcon1 |= VIDCON1_INV_HSYNC; - if (vm->flags & DISPLAY_FLAGS_DE_LOW) - ctx->vidcon1 |= VIDCON1_INV_VDEN; - if (vm->flags & DISPLAY_FLAGS_PIXDATA_NEGEDGE) - ctx->vidcon1 |= VIDCON1_INV_VCLK; - - return 0; -} - static int fimd_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; struct fimd_context *ctx; - struct device_node *display_np; struct resource *res; int win; int ret = -EINVAL; @@ -906,20 +881,10 @@ static int fimd_probe(struct platform_device *pdev) ctx->dev = dev; ctx->suspended = true; - ret = fimd_get_platform_data(ctx, dev); - if (ret) - return ret; - - display_np = of_parse_phandle(dev->of_node, - "samsung,fimd-display", 0); - if (!display_np) - display_np = dev->of_node; - - /* FIXME */ - of_property_read_u32(display_np, "samsung,panel-width-mm", - &ctx->panel.width_mm); - of_property_read_u32(display_np, "samsung,panel-height-mm", - &ctx->panel.height_mm); + if (of_property_read_bool(dev->of_node, "samsung,invert-vden")) + ctx->vidcon1 |= VIDCON1_INV_VDEN; + if (of_property_read_bool(dev->of_node, "samsung,invert-vclk")) + ctx->vidcon1 |= VIDCON1_INV_VCLK; ctx->bus_clk = devm_clk_get(dev, "fimd"); if (IS_ERR(ctx->bus_clk)) { |