drm: Add panel support
authorThierry Reding <treding@nvidia.com>
Fri, 25 Apr 2014 07:51:31 +0000 (16:51 +0900)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:47:37 +0000 (11:47 +0900)
commitf1eea733ab065fe76820f53b8fd3202b4ee5aae9
tree4879d034c040f5914749feaf77024217c4ce1811
parent6e7b0179d332d16f3463d5e847a7b9053c8d7dc5
drm: Add panel support

Add a very simple framework to register and lookup panels. Panel drivers
can initialize a DRM panel and register it with the framework, allowing
them to be retrieved and used by display drivers. Currently only support
for DPMS and obtaining panel modes is provided. However it should be
sufficient to enable a large number of panels. The framework should also
be easily extensible to support more sophisticated kinds of panels such
as DSI.

The framework hasn't been tied into the DRM core, even though it should
be easily possible to do so if that's what we want. In the current
implementation, display drivers can simple make use of it to retrieve a
panel, obtain its modes and control its DPMS mode.

Note that this is currently only tested on systems that boot from a
device tree. No glue code has been written yet for systems that use
platform data, but it should be easy to add.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/Kconfig
drivers/gpu/drm/Makefile
drivers/gpu/drm/drm_panel.c [new file with mode: 0644]
drivers/gpu/drm/panel/Kconfig [new file with mode: 0644]
include/drm/drm_panel.h [new file with mode: 0644]