diff options
author | Wenjing Liu <wenjing.liu@amd.com> | 2022-02-08 18:38:26 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-02-23 14:22:03 -0500 |
commit | c595fb05e392a5cd17c70c4fd996b8cc9735f20e (patch) | |
tree | 0119ebded4106d0555b30e3011aefb06b932c3fc /drivers/gpu/drm/amd/display/dc/dc_link.h | |
parent | dfd9be42344d9d3c1ff23778923210301ec5f372 (diff) |
drm/amd/display: add cable ID support for usb c connector
[how]
Call to DMUB to retrieve usb c cable ID data from PD firmware.
If cable id is retrieved from DMUB, skip reading cable ID from RX.
Reviewed-by: George Shen <George.Shen@amd.com>
Acked-by: Solomon Chiu <solomon.chiu@amd.com>
Signed-off-by: Wenjing Liu <wenjing.liu@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dc_link.h')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/dc_link.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dc_link.h b/drivers/gpu/drm/amd/display/dc/dc_link.h index 9ad3ee4079c3..ce6e8d013459 100644 --- a/drivers/gpu/drm/amd/display/dc/dc_link.h +++ b/drivers/gpu/drm/amd/display/dc/dc_link.h @@ -43,8 +43,8 @@ struct dc_link_status { struct dpcd_caps *dpcd_caps; }; -struct dp_receiver_status { - bool cable_id_updated; +struct dprx_states { + bool cable_id_written; }; /* DP MST stream allocation (payload bandwidth number) */ @@ -205,7 +205,7 @@ struct dc_link { struct link_mst_stream_allocation_table mst_stream_alloc_table; struct dc_link_status link_status; - struct dp_receiver_status dprx_status; + struct dprx_states dprx_states; struct link_trace link_trace; struct gpio *hpd_gpio; @@ -466,7 +466,7 @@ void dc_link_get_cur_link_res(const struct dc_link *link, void dc_get_cur_link_res_map(const struct dc *dc, uint32_t *map); /* restore link resource allocation state from a snapshot */ void dc_restore_link_res_map(const struct dc *dc, uint32_t *map); -void dc_link_dp_clear_rx_status(struct dc_link *link); +void dc_link_clear_dprx_states(struct dc_link *link); struct gpio *get_hpd_gpio(struct dc_bios *dcb, struct graphics_object_id link_id, struct gpio_service *gpio_service); |