Commit 11fffe45 authored by John Barberiz's avatar John Barberiz Committed by Alex Deucher

drm/amd/display: Add passive dongle support for HPD Rearch

Add HPD delay timer support to
1. Single/dual link DVI.
2. DP to HDMI passive dongle
3. DP to DVI passive dongle.
Signed-off-by: default avatarJohn Barberiz <jbarberi@amd.com>
Reviewed-by: default avatarTony Cheng <Tony.Cheng@amd.com>
Acked-by: default avatarHarry Wentland <harry.wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 88ac3dda
...@@ -2358,11 +2358,14 @@ void core_link_set_avmute(struct pipe_ctx *pipe_ctx, bool enable) ...@@ -2358,11 +2358,14 @@ void core_link_set_avmute(struct pipe_ctx *pipe_ctx, bool enable)
core_dc->hwss.set_avmute(pipe_ctx, enable); core_dc->hwss.set_avmute(pipe_ctx, enable);
} }
void dc_link_disable_hpd_filter(struct dc_link *link) void dc_link_enable_hpd_filter(struct dc_link *link, bool enable)
{ {
struct gpio *hpd; struct gpio *hpd;
if (!link->is_hpd_filter_disabled) { if (enable) {
link->is_hpd_filter_disabled = false;
program_hpd_filter(link);
} else {
link->is_hpd_filter_disabled = true; link->is_hpd_filter_disabled = true;
/* Obtain HPD handle */ /* Obtain HPD handle */
hpd = get_hpd_gpio(link->ctx->dc_bios, link->link_id, link->ctx->gpio_service); hpd = get_hpd_gpio(link->ctx->dc_bios, link->link_id, link->ctx->gpio_service);
......
...@@ -197,7 +197,7 @@ bool dc_link_dp_set_test_pattern( ...@@ -197,7 +197,7 @@ bool dc_link_dp_set_test_pattern(
const unsigned char *p_custom_pattern, const unsigned char *p_custom_pattern,
unsigned int cust_pattern_size); unsigned int cust_pattern_size);
void dc_link_disable_hpd_filter(struct dc_link *link); void dc_link_enable_hpd_filter(struct dc_link *link, bool enable);
/* /*
* DPCD access interfaces * DPCD access interfaces
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment