drm: Add SCDC helpers
authorThierry Reding <treding@nvidia.com>
Mon, 13 Mar 2017 11:23:59 +0000 (16:53 +0530)
committerJani Nikula <jani.nikula@intel.com>
Tue, 21 Mar 2017 08:15:39 +0000 (10:15 +0200)
commit3ad33ae2bc800496e979b9f7920a57835740083d
treea7979c730fb76efef23e5df960c451b818becf1b
parent9aa1eca095579b8a8ea84d9bbd1fbdeff49cebd4
drm: Add SCDC helpers

SCDC is a mechanism defined in the HDMI 2.0 specification that allows
the source and sink devices to communicate.

This commit introduces helpers to access the SCDC and provides the
symbolic names for the various registers defined in the specification.

V2: Rebase.
V3: Added R-B from Jose.
V4: Rebase
V5: Addressed review comments from Ville
 - Handle the I2c return values in a better way (dp_dual_mode)
 - Make the macros for SCDC Major/Minor more readable, by adding
   a 'GET' in the macro names
V6: Rebase
V7: Rebase
V8: Rebase
V9: Rebase
V10: Rebase

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Shashank Sharma <shashank.sharma@intel.com>
Reviewed-by: Jose Abreu <joabreu@synopsys.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1489404244-16608-2-git-send-email-shashank.sharma@intel.com
Documentation/gpu/drm-kms-helpers.rst
drivers/gpu/drm/Makefile
drivers/gpu/drm/drm_scdc_helper.c [new file with mode: 0644]
include/drm/drm_scdc_helper.h [new file with mode: 0644]