drm/amd/display: Set link rate set if eDP ver >= 1.4.
authorDerek Lai <Derek.Lai@amd.com>
Tue, 11 Dec 2018 08:27:09 +0000 (16:27 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 14 Jan 2019 20:40:08 +0000 (15:40 -0500)
commitb03a599b3e1f520e79d3dbf487179bd0d70d4681
tree35640d1a7b0cf19d3ac5df3aed96376800d26f86
parent7eb9097541706a71dfda01e456cae2930f24b10a
drm/amd/display: Set link rate set if eDP ver >= 1.4.

[Why]
If eDP ver >= 1.4,
the Source device must use LINK_RATE_SET.

[How]
Get LINK_RATE_SET by reading DPCD 10h-1fh,
then write DPCD 00115h before link training.

Signed-off-by: Derek Lai <Derek.Lai@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
drivers/gpu/drm/amd/display/dc/dc.h
drivers/gpu/drm/amd/display/dc/dc_dp_types.h