]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drm/exynos: dpi: Add support for panel prepare and unprepare routines
authorAjay Kumar <ajaykumar.rs@samsung.com>
Thu, 31 Jul 2014 17:42:05 +0000 (23:12 +0530)
committerThierry Reding <treding@nvidia.com>
Wed, 6 Aug 2014 14:44:11 +0000 (16:44 +0200)
Modify exynos_dpi driver to support the new panel calls:
prepare and unprepare.

Signed-off-by: Ajay Kumar <ajaykumar.rs@samsung.com>
Acked-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/exynos/exynos_drm_dpi.c

index 482127f633c573fe84db8faffbe7cf5210df7ac3..f8531533fbf391cb9da92f338708f89d0edf4279 100644 (file)
@@ -125,14 +125,18 @@ static int exynos_dpi_create_connector(struct exynos_drm_display *display,
 
 static void exynos_dpi_poweron(struct exynos_dpi *ctx)
 {
-       if (ctx->panel)
+       if (ctx->panel) {
+               drm_panel_prepare(ctx->panel);
                drm_panel_enable(ctx->panel);
+       }
 }
 
 static void exynos_dpi_poweroff(struct exynos_dpi *ctx)
 {
-       if (ctx->panel)
+       if (ctx->panel) {
                drm_panel_disable(ctx->panel);
+               drm_panel_unprepare(ctx->panel);
+       }
 }
 
 static void exynos_dpi_dpms(struct exynos_drm_display *display, int mode)