Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b09250d7 authored by Jeykumar Sankaran's avatar Jeykumar Sankaran Committed by Gerrit - the friendly Code Review server
Browse files

disp: msm: sde: parse property for max concurrent TUI displays



Add support in hw catalog to parse the maximum number of concurrent
TUI displays supported in SDE.

Change-Id: Ic1f4d93afc472c2fa073e1d292ebd1d27e40f4ec
Signed-off-by: default avatarJeykumar Sankaran <jsanka@codeaurora.org>
parent 53db6787
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -202,6 +202,7 @@ enum sde_prop {
	SEC_SID_MASK,
	BASE_LAYER,
	TRUSTED_VM_ENV,
	MAX_TRUSTED_VM_DISPLAYS,
	SDE_PROP_MAX,
};

@@ -574,6 +575,8 @@ static struct sde_prop_type sde_prop[] = {
	{SEC_SID_MASK, "qcom,sde-secure-sid-mask", false, PROP_TYPE_U32_ARRAY},
	{BASE_LAYER, "qcom,sde-mixer-stage-base-layer", false, PROP_TYPE_BOOL},
	{TRUSTED_VM_ENV, "qcom,sde-trusted-vm-env", false, PROP_TYPE_BOOL},
	{MAX_TRUSTED_VM_DISPLAYS, "qcom,sde-max-trusted-vm-displays", false,
			PROP_TYPE_U32},
};

static struct sde_prop_type sde_perf_prop[] = {
@@ -3752,6 +3755,8 @@ static void _sde_top_parse_dt_helper(struct sde_mdss_cfg *cfg,
			 QSEED_HW_VERSION, 0);
	cfg->trusted_vm_env = PROP_VALUE_ACCESS(props->values, TRUSTED_VM_ENV,
			 0);
	cfg->max_trusted_vm_displays = PROP_VALUE_ACCESS(props->values,
			MAX_TRUSTED_VM_DISPLAYS, 0);
}

static int sde_top_parse_dt(struct device_node *np, struct sde_mdss_cfg *cfg)
+3 −0
Original line number Diff line number Diff line
@@ -1364,6 +1364,8 @@ struct sde_perf_cfg {
 *
 * @trusted_vm_env	set to true, if the driver is executing in
 *			the trusted VM. false, otherwise.
 * @max_trusted_vm_displays	maximum number of concurrent trusted
 *				vm displays supported.
 * @max_sspp_linewidth max source pipe line width support.
 * @vig_sspp_linewidth max vig source pipe line width support.
 * @scaling_linewidth max vig source pipe linewidth for scaling usecases
@@ -1438,6 +1440,7 @@ struct sde_perf_cfg {
struct sde_mdss_cfg {
	u32 hwversion;
	bool trusted_vm_env;
	u32 max_trusted_vm_displays;

	u32 max_sspp_linewidth;
	u32 vig_sspp_linewidth;