From: Philipp Zabel
Date: Thu, 11 Dec 2014 17:32:45 +0000 (+0100)
Subject: drm/panel: simple: Add display timing support
X-Git-Tag: Ubuntu-5.2.0-15.16~11489^2~13^2~3
X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=a5d3e625148073587955bb0c49dbbba231b3234a;p=mirror_ubuntu-eoan-kernel.git
drm/panel: simple: Add display timing support
The simple panel driver's ->get_modes() implementation calculates the
display mode list from the typical timings and the ->get_timings()
implementation returns the timings to the connected encoder for mode
validation and fixup.
Signed-off-by: Philipp Zabel
[treding@nvidia.com: select VIDEOMODE_HELPERS]
Signed-off-by: Thierry Reding
---
diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig
index d84583776d50..6d64c7bb908b 100644
--- a/drivers/gpu/drm/panel/Kconfig
+++ b/drivers/gpu/drm/panel/Kconfig
@@ -11,6 +11,7 @@ config DRM_PANEL_SIMPLE
tristate "support for simple panels"
depends on OF
depends on BACKLIGHT_CLASS_DEVICE
+ select VIDEOMODE_HELPERS
help
DRM panel driver for dumb panels that need at most a regulator and
a GPIO to be powered up. Optionally a backlight can be attached so
diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index d9491bc8f9a4..be2c4c85ea83 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -33,9 +33,14 @@
#include
#include
+#include