drm/amd/display: Add option to configure mapping policy for edp0 on dp1
[Why] We want flexibility to choose how pwrseq instance is mapped to eDP panel [How] Add configuration option to choose the pwrseq mapping policy. When enabled, allow fixed mapping between DIG inst to pwrseq inst. Reviewed-by: Anthony Koo <anthony.koo@amd.com> Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com> Signed-off-by: Lewis Huang <lewis.huang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
d1999b4017
commit
0d38f6009e
@@ -437,6 +437,7 @@ struct dc_config {
|
||||
bool usb4_bw_alloc_support;
|
||||
bool allow_0_dtb_clk;
|
||||
bool use_assr_psp_message;
|
||||
bool support_edp0_on_dp1;
|
||||
};
|
||||
|
||||
enum visual_confirm {
|
||||
|
||||
@@ -173,5 +173,12 @@ void dcn31_panel_cntl_construct(
|
||||
break;
|
||||
}
|
||||
|
||||
dcn31_panel_cntl->base.pwrseq_inst = pwrseq_inst;
|
||||
if (dcn31_panel_cntl->base.ctx->dc->config.support_edp0_on_dp1)
|
||||
//If supported, power sequencer mapping shall follow the DIG instance
|
||||
dcn31_panel_cntl->base.pwrseq_inst = pwrseq_inst;
|
||||
else
|
||||
/* If not supported, pwrseq will be assigned in order,
|
||||
* so first pwrseq will be assigned to first panel instance (legacy behavior)
|
||||
*/
|
||||
dcn31_panel_cntl->base.pwrseq_inst = dcn31_panel_cntl->base.inst;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user