• Thierry Reding's avatar
    drm/dp: Add DisplayPort link helpers · 516c0f7c
    Thierry Reding authored
    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: default avatarAlex Deucher <alexander.deucher@amd.com>
    Reviewed-by: default avatarJani Nikula <jani.nikula@intel.com>
    Signed-off-by: default avatarThierry 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
    516c0f7c
drm_dp_helper.h 17.2 KB