mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 02:53:36 +02:00
drm/amd/display: read mso dpcd caps
[Why & How] Read if panel support multi-sst links Reviewed-by: Charlene Liu <charlene.liu@amd.com> Signed-off-by: Hansen Dsouza <Hansen.Dsouza@amd.com> Signed-off-by: Wayne Lin <wayne.lin@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
0dfcc2bf26
commit
fc215e83d0
|
|
@ -1220,6 +1220,8 @@ struct dpcd_caps {
|
|||
struct replay_info pr_info;
|
||||
uint16_t edp_oled_emission_rate;
|
||||
union dp_receive_port0_cap receive_port0_cap;
|
||||
/* Indicates the number of SST links supported by MSO (Multi-Stream Output) */
|
||||
uint8_t mso_cap_sst_links_supported;
|
||||
};
|
||||
|
||||
union dpcd_sink_ext_caps {
|
||||
|
|
|
|||
|
|
@ -2100,6 +2100,17 @@ void detect_edp_sink_caps(struct dc_link *link)
|
|||
core_link_read_dpcd(link, DP_SINK_EMISSION_RATE,
|
||||
(uint8_t *)&link->dpcd_caps.edp_oled_emission_rate,
|
||||
sizeof(link->dpcd_caps.edp_oled_emission_rate));
|
||||
|
||||
/*
|
||||
* Read Multi-SST (Single Stream Transport) capability
|
||||
* for eDP version 1.4 or higher.
|
||||
*/
|
||||
if (link->dpcd_caps.dpcd_rev.raw >= DP_EDP_14)
|
||||
core_link_read_dpcd(
|
||||
link,
|
||||
DP_EDP_MSO_LINK_CAPABILITIES,
|
||||
(uint8_t *)&link->dpcd_caps.mso_cap_sst_links_supported,
|
||||
sizeof(link->dpcd_caps.mso_cap_sst_links_supported));
|
||||
}
|
||||
|
||||
bool dp_get_max_link_enc_cap(const struct dc_link *link, struct dc_link_settings *max_link_enc_cap)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user