mirror of
https://github.com/torvalds/linux.git
synced 2026-04-25 01:52:32 -04:00
drm/amd/display: enabling seamless boot sequence for dcn2
[Why] Seamless boot (building SW state inheriting BIOS-initialized timing) was enabled on DCN2, including fixes [How] Includes fixes for MPC, DPPCLK, and DIG FE mapping/OTG source select/ Pixel clock. This is part 2 of 2 for seamless boot NV10 Signed-off-by: Martin Leung <martin.leung@amd.com> Reviewed-by: Jun Lei <Jun.Lei@amd.com> Acked-by: Leo Li <sunpeng.li@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
39bdac36cc
commit
5ec43eda85
@@ -1061,7 +1061,8 @@ static bool dcn20_program_pix_clk(
|
||||
static const struct clock_source_funcs dcn20_clk_src_funcs = {
|
||||
.cs_power_down = dce110_clock_source_power_down,
|
||||
.program_pix_clk = dcn20_program_pix_clk,
|
||||
.get_pix_clk_dividers = dce112_get_pix_clk_dividers
|
||||
.get_pix_clk_dividers = dce112_get_pix_clk_dividers,
|
||||
.get_pixel_clk_frequency_100hz = get_pixel_clk_frequency_100hz
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
@@ -1602,6 +1602,17 @@ static void dig_connect_to_otg(
|
||||
REG_UPDATE(DIG_FE_CNTL, DIG_SOURCE_SELECT, tg_inst);
|
||||
}
|
||||
|
||||
static unsigned int dig_source_otg(
|
||||
struct stream_encoder *enc)
|
||||
{
|
||||
uint32_t tg_inst = 0;
|
||||
struct dce110_stream_encoder *enc110 = DCE110STRENC_FROM_STRENC(enc);
|
||||
|
||||
REG_GET(DIG_FE_CNTL, DIG_SOURCE_SELECT, &tg_inst);
|
||||
|
||||
return tg_inst;
|
||||
}
|
||||
|
||||
static const struct stream_encoder_funcs dce110_str_enc_funcs = {
|
||||
.dp_set_stream_attribute =
|
||||
dce110_stream_encoder_dp_set_stream_attribute,
|
||||
@@ -1637,6 +1648,7 @@ static const struct stream_encoder_funcs dce110_str_enc_funcs = {
|
||||
.set_avmute = dce110_stream_encoder_set_avmute,
|
||||
.dig_connect_to_otg = dig_connect_to_otg,
|
||||
.hdmi_reset_stream_attribute = dce110_reset_hdmi_stream_attribute,
|
||||
.dig_source_otg = dig_source_otg,
|
||||
};
|
||||
|
||||
void dce110_stream_encoder_construct(
|
||||
|
||||
Reference in New Issue
Block a user