Browse Source

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: Jeykumar Sankaran <[email protected]>
Jeykumar Sankaran 5 years ago
parent
commit
b09250d7ed
2 changed files with 8 additions and 0 deletions
  1. 5 0
      msm/sde/sde_hw_catalog.c
  2. 3 0
      msm/sde/sde_hw_catalog.h

+ 5 - 0
msm/sde/sde_hw_catalog.c

@@ -202,6 +202,7 @@ enum sde_prop {
 	SEC_SID_MASK,
 	SEC_SID_MASK,
 	BASE_LAYER,
 	BASE_LAYER,
 	TRUSTED_VM_ENV,
 	TRUSTED_VM_ENV,
+	MAX_TRUSTED_VM_DISPLAYS,
 	SDE_PROP_MAX,
 	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},
 	{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},
 	{BASE_LAYER, "qcom,sde-mixer-stage-base-layer", false, PROP_TYPE_BOOL},
 	{TRUSTED_VM_ENV, "qcom,sde-trusted-vm-env", 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[] = {
 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);
 			 QSEED_HW_VERSION, 0);
 	cfg->trusted_vm_env = PROP_VALUE_ACCESS(props->values, TRUSTED_VM_ENV,
 	cfg->trusted_vm_env = PROP_VALUE_ACCESS(props->values, TRUSTED_VM_ENV,
 			 0);
 			 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)
 static int sde_top_parse_dt(struct device_node *np, struct sde_mdss_cfg *cfg)

+ 3 - 0
msm/sde/sde_hw_catalog.h

@@ -1364,6 +1364,8 @@ struct sde_perf_cfg {
  *
  *
  * @trusted_vm_env	set to true, if the driver is executing in
  * @trusted_vm_env	set to true, if the driver is executing in
  *			the trusted VM. false, otherwise.
  *			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.
  * @max_sspp_linewidth max source pipe line width support.
  * @vig_sspp_linewidth max vig 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
  * @scaling_linewidth max vig source pipe linewidth for scaling usecases
@@ -1438,6 +1440,7 @@ struct sde_perf_cfg {
 struct sde_mdss_cfg {
 struct sde_mdss_cfg {
 	u32 hwversion;
 	u32 hwversion;
 	bool trusted_vm_env;
 	bool trusted_vm_env;
+	u32 max_trusted_vm_displays;
 
 
 	u32 max_sspp_linewidth;
 	u32 max_sspp_linewidth;
 	u32 vig_sspp_linewidth;
 	u32 vig_sspp_linewidth;