Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 39bbde9c authored by Ajay Kumar's avatar Ajay Kumar Committed by Thierry Reding
Browse files

drm/exynos: dpi: Add support for panel prepare and unprepare routines



Modify exynos_dpi driver to support the new panel calls:
prepare and unprepare.

Signed-off-by: default avatarAjay Kumar <ajaykumar.rs@samsung.com>
Acked-by: default avatarInki Dae <inki.dae@samsung.com>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent c0e1d170
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -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)