diff options
author | Ajay Kumar <ajaykumar.rs@samsung.com> | 2014-07-31 13:42:05 -0400 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2014-08-06 10:44:11 -0400 |
commit | 39bbde9cc0bb0891b470a6ce919d09843f5473e2 (patch) | |
tree | ea907bf7e58b4f772fb05cb23eedf65d486fb143 | |
parent | c0e1d1706a1dabd9811602bda3b6b265050a9566 (diff) |
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: Ajay Kumar <ajaykumar.rs@samsung.com>
Acked-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_dpi.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_dpi.c b/drivers/gpu/drm/exynos/exynos_drm_dpi.c index 482127f633c5..f8531533fbf3 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_dpi.c +++ b/drivers/gpu/drm/exynos/exynos_drm_dpi.c | |||
@@ -125,14 +125,18 @@ static int exynos_dpi_create_connector(struct exynos_drm_display *display, | |||
125 | 125 | ||
126 | static void exynos_dpi_poweron(struct exynos_dpi *ctx) | 126 | static void exynos_dpi_poweron(struct exynos_dpi *ctx) |
127 | { | 127 | { |
128 | if (ctx->panel) | 128 | if (ctx->panel) { |
129 | drm_panel_prepare(ctx->panel); | ||
129 | drm_panel_enable(ctx->panel); | 130 | drm_panel_enable(ctx->panel); |
131 | } | ||
130 | } | 132 | } |
131 | 133 | ||
132 | static void exynos_dpi_poweroff(struct exynos_dpi *ctx) | 134 | static void exynos_dpi_poweroff(struct exynos_dpi *ctx) |
133 | { | 135 | { |
134 | if (ctx->panel) | 136 | if (ctx->panel) { |
135 | drm_panel_disable(ctx->panel); | 137 | drm_panel_disable(ctx->panel); |
138 | drm_panel_unprepare(ctx->panel); | ||
139 | } | ||
136 | } | 140 | } |
137 | 141 | ||
138 | static void exynos_dpi_dpms(struct exynos_drm_display *display, int mode) | 142 | static void exynos_dpi_dpms(struct exynos_drm_display *display, int mode) |