]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drm: Add panel support
authorThierry Reding <treding@nvidia.com>
Fri, 30 Aug 2013 11:36:43 +0000 (13:36 +0200)
committerThierry Reding <treding@nvidia.com>
Wed, 16 Oct 2013 18:03:03 +0000 (20:03 +0200)
commitc4a17124346bc2207abdaabf2e12acf36e19b72f
treecda978c854a14e09ffb34e8bd50c8f59986434a5
parentf3b28c3a21a4a39a182fb9da7bbbc05242cf3358
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>
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]