Skip to content

Commit 215bed5

Browse files
Allen Lialexdeucher
authored andcommitted
drm/amd/display: Read DPCD to obtain eDP capability information.
[Why & How] Extend to read eDP general capability 2 in detect_edp_sink_caps(). Reviewed-by: Robin Chen <robin.chen@amd.com> Reviewed-by: Wenjing Liu <wenjing.liu@amd.com> Signed-off-by: Allen Li <wei-guang.li@amd.com> Signed-off-by: Wayne Lin <wayne.lin@amd.com> Tested-by: Dan Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 68f3c04 commit 215bed5

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

drivers/gpu/drm/amd/display/dc/dc_dp_types.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1284,6 +1284,7 @@ struct dpcd_caps {
12841284
union dp_receive_port0_cap receive_port0_cap;
12851285
/* Indicates the number of SST links supported by MSO (Multi-Stream Output) */
12861286
uint8_t mso_cap_sst_links_supported;
1287+
uint8_t dp_edp_general_cap_2;
12871288
};
12881289

12891290
union dpcd_sink_ext_caps {

drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_capability.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2195,6 +2195,12 @@ void detect_edp_sink_caps(struct dc_link *link)
21952195
DP_EDP_MSO_LINK_CAPABILITIES,
21962196
(uint8_t *)&link->dpcd_caps.mso_cap_sst_links_supported,
21972197
sizeof(link->dpcd_caps.mso_cap_sst_links_supported));
2198+
/*
2199+
* Read eDP general capability 2
2200+
*/
2201+
core_link_read_dpcd(link, DP_EDP_GENERAL_CAP_2,
2202+
(uint8_t *)&link->dpcd_caps.dp_edp_general_cap_2,
2203+
sizeof(link->dpcd_caps.dp_edp_general_cap_2));
21982204
}
21992205

22002206
bool dp_get_max_link_enc_cap(const struct dc_link *link, struct dc_link_settings *max_link_enc_cap)

0 commit comments

Comments
 (0)