disp: msm: sde: move boolean flags in catalog to a bitmap

Move all the individual boolean flags from HW catalog into a
"features" bitmap. These flags are used to specify support of
various target specific features.

Change-Id: I2334b3b873f3737f91bbae4ef576408247710156
Signed-off-by: Steve Cohen <quic_cohens@quicinc.com>
此提交包含在:
Steve Cohen
2021-02-09 18:52:33 -05:00
提交者 Jeykumar Sankaran
父節點 5f25adc693
當前提交 7f0c843da4
共有 13 個檔案被更改,包括 479 行新增502 行删除

查看文件

@@ -465,7 +465,8 @@ int sde_wb_connector_set_info_blob(struct drm_connector *connector,
}
sde_kms = to_sde_kms(priv->kms);
sde_kms_info_add_keyint(info, "has_cwb_dither", sde_kms->catalog->has_cwb_dither);
sde_kms_info_add_keyint(info, "has_cwb_dither", test_bit(SDE_FEATURE_CWB_DITHER,
sde_kms->catalog->features));
} else {
SDE_ERROR("invalid params %pK\n", wb_dev->drm_dev);
return -EINVAL;
@@ -507,7 +508,7 @@ static void sde_wb_connector_install_dither_property(struct sde_wb_device *wb_de
sde_kms = to_sde_kms(priv->kms);
catalog = sde_kms->catalog;
if (!catalog->has_cwb_dither)
if (!test_bit(SDE_FEATURE_CWB_DITHER, catalog->features))
return;
version = SDE_COLOR_PROCESS_MAJOR(