drm: Add helper for simple display pipeline
authorNoralf Trønnes <noralf@tronnes.org>
Fri, 10 Jun 2016 14:55:59 +0000 (16:55 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 10 Jun 2016 15:33:17 +0000 (17:33 +0200)
commit5b8090747a1186f8f6a1d3a7e49f792b13ab7b84
tree6af6eb3734ebd8ff14c84debaf90f801d8bfe092
parentc2a441fe8f7f62571e47ce3f4fa3d97edd092dd9
drm: Add helper for simple display pipeline

Provides helper functions for drivers that have a simple display
pipeline. Plane, crtc and encoder are collapsed into one entity.

Changes since v4:
- Remove drm_connector_register() call
- Forgot to assign pipe->connector

Changes since v3:
- (struct drm_simple_display_pipe *)->funcs should be const

Changes since v2:
- Drop Kconfig knob DRM_KMS_HELPER
- Expand documentation

Changes since v1:
- Add DOC header and add to gpu.tmpl
- Fix docs: @funcs is optional, "negative error code",
  "This hook is optional."
- Add checks to drm_simple_kms_plane_atomic_check()

Cc: jsarha@ti.com
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1465570559-14238-1-git-send-email-noralf@tronnes.org
Documentation/DocBook/gpu.tmpl
drivers/gpu/drm/Makefile
drivers/gpu/drm/drm_simple_kms_helper.c [new file with mode: 0644]
include/drm/drm_simple_kms_helper.h [new file with mode: 0644]