Commit dac76a01 authored by Dmitry Baryshkov's avatar Dmitry Baryshkov
Browse files

drm/msm/dpu: fetch DPU configuration from match data



In email discussion it was noted that there can be different SoC device
having slightly different SoC features, but sharing the same DPU hw
revision. Stop fetching catalog data using core_rev and use platform's
match data instead.

Signed-off-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/530891/
Link: https://lore.kernel.org/r/20230404130622.509628-42-dmitry.baryshkov@linaro.org


Signed-off-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
parent e5edf654
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -176,7 +176,7 @@ static const struct dpu_perf_cfg msm8998_perf_data = {
	.bw_inefficiency_factor = 120,
};

static const struct dpu_mdss_cfg msm8998_dpu_cfg = {
const struct dpu_mdss_cfg dpu_msm8998_cfg = {
	.caps = &msm8998_dpu_caps,
	.ubwc = &msm8998_ubwc_cfg,
	.mdp_count = ARRAY_SIZE(msm8998_mdp),
+1 −1
Original line number Diff line number Diff line
@@ -174,7 +174,7 @@ static const struct dpu_perf_cfg sdm845_perf_data = {
	.bw_inefficiency_factor = 120,
};

static const struct dpu_mdss_cfg sdm845_dpu_cfg = {
const struct dpu_mdss_cfg dpu_sdm845_cfg = {
	.caps = &sdm845_dpu_caps,
	.ubwc = &sdm845_ubwc_cfg,
	.mdp_count = ARRAY_SIZE(sdm845_mdp),
+1 −1
Original line number Diff line number Diff line
@@ -197,7 +197,7 @@ static const struct dpu_perf_cfg sm8150_perf_data = {
	.bw_inefficiency_factor = 120,
};

static const struct dpu_mdss_cfg sm8150_dpu_cfg = {
const struct dpu_mdss_cfg dpu_sm8150_cfg = {
	.caps = &sm8150_dpu_caps,
	.ubwc = &sm8150_ubwc_cfg,
	.mdp_count = ARRAY_SIZE(sm8150_mdp),
+1 −1
Original line number Diff line number Diff line
@@ -179,7 +179,7 @@ static const struct dpu_perf_cfg sc8180x_perf_data = {
	.bw_inefficiency_factor = 120,
};

static const struct dpu_mdss_cfg sc8180x_dpu_cfg = {
const struct dpu_mdss_cfg dpu_sc8180x_cfg = {
	.caps = &sc8180x_dpu_caps,
	.ubwc = &sc8180x_ubwc_cfg,
	.mdp_count = ARRAY_SIZE(sc8180x_mdp),
+1 −1
Original line number Diff line number Diff line
@@ -203,7 +203,7 @@ static const struct dpu_perf_cfg sm8250_perf_data = {
	.bw_inefficiency_factor = 120,
};

static const struct dpu_mdss_cfg sm8250_dpu_cfg = {
const struct dpu_mdss_cfg dpu_sm8250_cfg = {
	.caps = &sm8250_dpu_caps,
	.ubwc = &sm8250_ubwc_cfg,
	.mdp_count = ARRAY_SIZE(sm8250_mdp),
Loading