drm/rockchip: cdn-dp: Compliant with eDP receiver enhanced frame capability

On an eDP connection, the eDP sink must operate only in Enhanced Framing Mode.
The Source must send only Enhanced Framing on the main link, and must only
write a '0' to DPCD 00101h: LANE_COUNT_SET Bit 7: ENHANCED_FRAME_EN bit.

Independent of method used, DP1.2-compliant eDP Receivers shall indicate any
eDP protocol differentiation method they support through the Receiver
Capability Field of DPCD (DPCD:0000Dh).

Change-Id: Ia57f3242c16e2ace0c13076992c2c14eda9e7ca7
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
This commit is contained in:
Wyon Bi
2019-03-27 17:14:46 +08:00
committed by Tao Huang
parent 1b6221e375
commit db9eaf1a4e

View File

@@ -69,7 +69,13 @@ static int cdn_dp_set_pattern(struct cdn_dp_device *dp, uint8_t dp_train_pat)
return ret;
}
if (drm_dp_enhanced_frame_cap(dp->dpcd))
if (drm_dp_enhanced_frame_cap(dp->dpcd) ||
/*
* A setting of 1 indicates that this is an eDP device that uses
* only Enhanced Framing, independently of the setting by the
* source of ENHANCED_FRAME_EN
*/
dp->dpcd[DP_EDP_CONFIGURATION_CAP] & DP_FRAMING_CHANGE_CAP)
ret = cdn_dp_reg_write(dp, DPTX_ENHNCD, 1);
else
ret = cdn_dp_reg_write(dp, DPTX_ENHNCD, 0);