drm/dp: Add DisplayPort link helpers
authorThierry Reding <treding@nvidia.com>
Mon, 9 Dec 2013 10:47:55 +0000 (11:47 +0100)
committerThierry Reding <treding@nvidia.com>
Wed, 26 Feb 2014 16:21:34 +0000 (17:21 +0100)
commit516c0f7c0a608833cc01d3f5b2a357ee806b78a1
tree2ba87f3b5c08202f106c753cf138b2eba991a126
parent8d4adc6a5807ca51999421b4d6d4f193c95775ba
drm/dp: Add DisplayPort link helpers

Add a helper to probe a DP link (read out the supported DPCD revision,
maximum rate, link count and capabilities) as well as power up the DP
link and configure it accordingly.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
---
Changes in v5:
- export helpers

Changes in v4:
- fix a couple of typos in comments as pointed out by Alex Deucher

Changes in v3:
- split into drm_dp_link_power_up() and drm_dp_link_configure()
- do not change sink state for DPCD versions earlier than 1.1
- sleep for 1-2 ms after setting local sink to D0 state
- read and write consecutive registers where possible
- read DPCD revision when link is probed
- remove duplicate kerneldoc
drivers/gpu/drm/drm_dp_helper.c
include/drm/drm_dp_helper.h