Commit 0d38f600 authored by Lewis Huang's avatar Lewis Huang Committed by Alex Deucher
Browse files

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: default avatarAnthony Koo <anthony.koo@amd.com>
Acked-by: default avatarHamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: default avatarLewis Huang <lewis.huang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent d1999b40
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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 {
+8 −1
Original line number Diff line number Diff line
@@ -173,5 +173,12 @@ void dcn31_panel_cntl_construct(
		break;
	}

	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;
}