Commit 1bd493e3 authored by Tony Cheng's avatar Tony Cheng Committed by Alex Deucher

drm/amd/display: Expose configure_encoder for link_encoder

Signed-off-by: default avatarTony Cheng <tony.cheng@amd.com>
Reviewed-by: default avatarCharlene Liu <Charlene.Liu@amd.com>
Acked-by: default avatarHarry Wentland <harry.wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 8e8539c2
...@@ -445,12 +445,11 @@ static uint8_t get_frontend_source( ...@@ -445,12 +445,11 @@ static uint8_t get_frontend_source(
} }
} }
static void configure_encoder( void configure_encoder(
struct dcn10_link_encoder *enc10, struct dcn10_link_encoder *enc10,
const struct dc_link_settings *link_settings) const struct dc_link_settings *link_settings)
{ {
/* set number of lanes */ /* set number of lanes */
REG_SET(DP_CONFIG, 0, REG_SET(DP_CONFIG, 0,
DP_UDI_LANES, link_settings->lane_count - LANE_COUNT_ONE); DP_UDI_LANES, link_settings->lane_count - LANE_COUNT_ONE);
......
...@@ -271,6 +271,10 @@ void dcn10_link_encoder_setup( ...@@ -271,6 +271,10 @@ void dcn10_link_encoder_setup(
struct link_encoder *enc, struct link_encoder *enc,
enum signal_type signal); enum signal_type signal);
void configure_encoder(
struct dcn10_link_encoder *enc10,
const struct dc_link_settings *link_settings);
/* enables TMDS PHY output */ /* enables TMDS PHY output */
/* TODO: still need depth or just pass in adjusted pixel clock? */ /* TODO: still need depth or just pass in adjusted pixel clock? */
void dcn10_link_encoder_enable_tmds_output( void dcn10_link_encoder_enable_tmds_output(
......
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