]> git.baikalelectronics.ru Git - kernel.git/commit
drm: add of_graph endpoint helper to find possible CRTCs
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 15 Jun 2014 10:07:12 +0000 (11:07 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 11 Jul 2014 14:38:28 +0000 (15:38 +0100)
commit19996f5d5b5fc8cfdf95796e8431a6e196f11b2b
tree5bbdc53757bc3a2e596160ff938c5be7a2855c58
parentc96b1f3a0e5c04e66ef7510b21a312ace9d78993
drm: add of_graph endpoint helper to find possible CRTCs

Add a helper to allow encoders to find their possible CRTCs from the
OF graph without having to re-implement this functionality.  We add a
device_node to drm_crtc which corresponds with the port node in the
DT description of the CRTC device.

We can then scan the DRM device list for CRTCs to find their index,
matching the appropriate CRTC using the port device_node, thus building
up the possible CRTC mask.

Reviewed-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/gpu/drm/Makefile
drivers/gpu/drm/drm_of.c [new file with mode: 0644]
include/drm/drm_crtc.h
include/drm/drm_of.h [new file with mode: 0644]