[RFC 0/2] Add DRM SoC framework

Thierry Reding thierry.reding at avionic-design.de
Fri Jul 6 07:00:58 PDT 2012

This series adds an initial framework that allows to register a graphics
complex as found on many SoCs with the DRM/KMS subsystem. Patch 1 adds
the actual framework and patch 2 implements a very rudimentary skeleton
driver on top of it. It's really just to show off how to use the DRM/SoC
API and of no use otherwise.

The reason for implementing this is that the approach currently used by
many SoC DRM drivers is to instantiate a dummy platform device for the
DRM driver to bind against, which is somewhat of a kludge. The proposal
in this series takes care of this implicitly and instantiates only what
is really needed to make the DRM core happy.

I fully realize that this may not be that much of an improvement over
using the drm_platform_init()/drm_platform_exit() functions, but I'm
still interested in what people think about it.


Thierry Reding (2):
  drm: Add SoC framework
  drm: Add SoC skeleton driver

 drivers/gpu/drm/Kconfig       |   6 ++
 drivers/gpu/drm/Makefile      |   3 +
 drivers/gpu/drm/drm_soc.c     | 151 ++++++++++++++++++++++++++++++++++++++
 drivers/gpu/drm/soc/Kconfig   |  13 ++++
 drivers/gpu/drm/soc/Makefile  |   6 ++
 drivers/gpu/drm/soc/soc-drv.c | 166 ++++++++++++++++++++++++++++++++++++++++++
 include/drm/drmP.h            |   5 ++
 7 files changed, 350 insertions(+)
 create mode 100644 drivers/gpu/drm/drm_soc.c
 create mode 100644 drivers/gpu/drm/soc/Kconfig
 create mode 100644 drivers/gpu/drm/soc/Makefile
 create mode 100644 drivers/gpu/drm/soc/soc-drv.c


More information about the dri-devel mailing list