mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-15 23:41:35 -04:00
drm/msm/dpu: get rid of DPU_MDP_AUDIO_SELECT
Continue migration to the MDSS-revision based checks and replace DPU_MDP_AUDIO_SELECT feature bit with the core_major_ver == 4 || core_major_ver == 5 check. Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Patchwork: https://patchwork.freedesktop.org/patch/655399/ Link: https://lore.kernel.org/r/20250522-dpu-drop-features-v5-20-3b2085a07884@oss.qualcomm.com
This commit is contained in:
committed by
Dmitry Baryshkov
parent
bd88789bbd
commit
ff63c4a486
@@ -23,7 +23,6 @@ static const struct dpu_caps sdm845_dpu_caps = {
|
||||
static const struct dpu_mdp_cfg sdm845_mdp = {
|
||||
.name = "top_0",
|
||||
.base = 0x0, .len = 0x45c,
|
||||
.features = BIT(DPU_MDP_AUDIO_SELECT),
|
||||
.clk_ctrls = {
|
||||
[DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 },
|
||||
[DPU_CLK_CTRL_VIG1] = { .reg_off = 0x2b4, .bit_off = 0 },
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
static const struct dpu_mdp_cfg sdm670_mdp = {
|
||||
.name = "top_0",
|
||||
.base = 0x0, .len = 0x45c,
|
||||
.features = BIT(DPU_MDP_AUDIO_SELECT),
|
||||
.clk_ctrls = {
|
||||
[DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 },
|
||||
[DPU_CLK_CTRL_VIG1] = { .reg_off = 0x2b4, .bit_off = 0 },
|
||||
|
||||
@@ -23,7 +23,6 @@ static const struct dpu_caps sm8150_dpu_caps = {
|
||||
static const struct dpu_mdp_cfg sm8150_mdp = {
|
||||
.name = "top_0",
|
||||
.base = 0x0, .len = 0x45c,
|
||||
.features = BIT(DPU_MDP_AUDIO_SELECT),
|
||||
.clk_ctrls = {
|
||||
[DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 },
|
||||
[DPU_CLK_CTRL_VIG1] = { .reg_off = 0x2b4, .bit_off = 0 },
|
||||
|
||||
@@ -23,7 +23,6 @@ static const struct dpu_caps sc8180x_dpu_caps = {
|
||||
static const struct dpu_mdp_cfg sc8180x_mdp = {
|
||||
.name = "top_0",
|
||||
.base = 0x0, .len = 0x45c,
|
||||
.features = BIT(DPU_MDP_AUDIO_SELECT),
|
||||
.clk_ctrls = {
|
||||
[DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 },
|
||||
[DPU_CLK_CTRL_VIG1] = { .reg_off = 0x2b4, .bit_off = 0 },
|
||||
|
||||
@@ -23,7 +23,6 @@ static const struct dpu_caps sm7150_dpu_caps = {
|
||||
static const struct dpu_mdp_cfg sm7150_mdp = {
|
||||
.name = "top_0",
|
||||
.base = 0x0, .len = 0x45c,
|
||||
.features = BIT(DPU_MDP_AUDIO_SELECT),
|
||||
.clk_ctrls = {
|
||||
[DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 },
|
||||
[DPU_CLK_CTRL_VIG1] = { .reg_off = 0x2b4, .bit_off = 0 },
|
||||
|
||||
@@ -38,7 +38,6 @@
|
||||
enum {
|
||||
DPU_MDP_PANIC_PER_PIPE = 0x1,
|
||||
DPU_MDP_10BIT_SUPPORT,
|
||||
DPU_MDP_AUDIO_SELECT,
|
||||
DPU_MDP_MAX
|
||||
};
|
||||
|
||||
|
||||
@@ -280,7 +280,8 @@ static void _setup_mdp_ops(struct dpu_hw_mdp_ops *ops,
|
||||
if (mdss_rev->core_major_ver >= 5)
|
||||
ops->dp_phy_intf_sel = dpu_hw_dp_phy_intf_sel;
|
||||
|
||||
if (cap & BIT(DPU_MDP_AUDIO_SELECT))
|
||||
if (mdss_rev->core_major_ver == 4 ||
|
||||
mdss_rev->core_major_ver == 5)
|
||||
ops->intf_audio_select = dpu_hw_intf_audio_select;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user