Commit 2a6387e2 authored by Dmitry Baryshkov's avatar Dmitry Baryshkov

drm/msm/dpu: correct indentation for CTL definitions

Shift dpu_ctl_cfg contents to correct the indentation of CTL blocks.
This is done in preparation to expanding the rest of hardware block
defines, so that all blocks have similar indentation.
Reviewed-by: default avatarMarijn Suijten <marijn.suijten@somainline.org>
Tested-by: default avatarMarijn Suijten <marijn.suijten@somainline.org>
Reviewed-by: default avatarAbhinav Kumar <quic_abhinavk@quicinc.com>
Signed-off-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/545374/
Link: https://lore.kernel.org/r/20230704022136.130522-10-dmitry.baryshkov@linaro.org
parent 038c06bd
...@@ -46,31 +46,27 @@ static const struct dpu_mdp_cfg msm8998_mdp = { ...@@ -46,31 +46,27 @@ static const struct dpu_mdp_cfg msm8998_mdp = {
static const struct dpu_ctl_cfg msm8998_ctl[] = { static const struct dpu_ctl_cfg msm8998_ctl[] = {
{ {
.name = "ctl_0", .id = CTL_0, .name = "ctl_0", .id = CTL_0,
.base = 0x1000, .len = 0x94, .base = 0x1000, .len = 0x94,
.features = BIT(DPU_CTL_SPLIT_DISPLAY), .features = BIT(DPU_CTL_SPLIT_DISPLAY),
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 9), .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 9),
}, }, {
{ .name = "ctl_1", .id = CTL_1,
.name = "ctl_1", .id = CTL_1, .base = 0x1200, .len = 0x94,
.base = 0x1200, .len = 0x94, .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 10),
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 10), }, {
}, .name = "ctl_2", .id = CTL_2,
{ .base = 0x1400, .len = 0x94,
.name = "ctl_2", .id = CTL_2, .features = BIT(DPU_CTL_SPLIT_DISPLAY),
.base = 0x1400, .len = 0x94, .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 11),
.features = BIT(DPU_CTL_SPLIT_DISPLAY), }, {
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 11), .name = "ctl_3", .id = CTL_3,
}, .base = 0x1600, .len = 0x94,
{ .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 12),
.name = "ctl_3", .id = CTL_3, }, {
.base = 0x1600, .len = 0x94, .name = "ctl_4", .id = CTL_4,
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 12), .base = 0x1800, .len = 0x94,
}, .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 13),
{
.name = "ctl_4", .id = CTL_4,
.base = 0x1800, .len = 0x94,
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 13),
}, },
}; };
......
...@@ -44,31 +44,27 @@ static const struct dpu_mdp_cfg sdm845_mdp = { ...@@ -44,31 +44,27 @@ static const struct dpu_mdp_cfg sdm845_mdp = {
static const struct dpu_ctl_cfg sdm845_ctl[] = { static const struct dpu_ctl_cfg sdm845_ctl[] = {
{ {
.name = "ctl_0", .id = CTL_0, .name = "ctl_0", .id = CTL_0,
.base = 0x1000, .len = 0xe4, .base = 0x1000, .len = 0xe4,
.features = BIT(DPU_CTL_SPLIT_DISPLAY), .features = BIT(DPU_CTL_SPLIT_DISPLAY),
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 9), .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 9),
}, }, {
{ .name = "ctl_1", .id = CTL_1,
.name = "ctl_1", .id = CTL_1, .base = 0x1200, .len = 0xe4,
.base = 0x1200, .len = 0xe4, .features = BIT(DPU_CTL_SPLIT_DISPLAY),
.features = BIT(DPU_CTL_SPLIT_DISPLAY), .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 10),
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 10), }, {
}, .name = "ctl_2", .id = CTL_2,
{ .base = 0x1400, .len = 0xe4,
.name = "ctl_2", .id = CTL_2, .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 11),
.base = 0x1400, .len = 0xe4, }, {
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 11), .name = "ctl_3", .id = CTL_3,
}, .base = 0x1600, .len = 0xe4,
{ .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 12),
.name = "ctl_3", .id = CTL_3, }, {
.base = 0x1600, .len = 0xe4, .name = "ctl_4", .id = CTL_4,
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 12), .base = 0x1800, .len = 0xe4,
}, .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 13),
{
.name = "ctl_4", .id = CTL_4,
.base = 0x1800, .len = 0xe4,
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 13),
}, },
}; };
......
...@@ -45,40 +45,35 @@ static const struct dpu_mdp_cfg sm8150_mdp = { ...@@ -45,40 +45,35 @@ static const struct dpu_mdp_cfg sm8150_mdp = {
/* FIXME: get rid of DPU_CTL_SPLIT_DISPLAY in favour of proper ACTIVE_CTL support */ /* FIXME: get rid of DPU_CTL_SPLIT_DISPLAY in favour of proper ACTIVE_CTL support */
static const struct dpu_ctl_cfg sm8150_ctl[] = { static const struct dpu_ctl_cfg sm8150_ctl[] = {
{ {
.name = "ctl_0", .id = CTL_0, .name = "ctl_0", .id = CTL_0,
.base = 0x1000, .len = 0x1e0, .base = 0x1000, .len = 0x1e0,
.features = BIT(DPU_CTL_ACTIVE_CFG) | BIT(DPU_CTL_SPLIT_DISPLAY), .features = BIT(DPU_CTL_ACTIVE_CFG) | BIT(DPU_CTL_SPLIT_DISPLAY),
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 9), .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 9),
}, }, {
{ .name = "ctl_1", .id = CTL_1,
.name = "ctl_1", .id = CTL_1, .base = 0x1200, .len = 0x1e0,
.base = 0x1200, .len = 0x1e0, .features = BIT(DPU_CTL_ACTIVE_CFG) | BIT(DPU_CTL_SPLIT_DISPLAY),
.features = BIT(DPU_CTL_ACTIVE_CFG) | BIT(DPU_CTL_SPLIT_DISPLAY), .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 10),
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 10), }, {
}, .name = "ctl_2", .id = CTL_2,
{ .base = 0x1400, .len = 0x1e0,
.name = "ctl_2", .id = CTL_2, .features = BIT(DPU_CTL_ACTIVE_CFG),
.base = 0x1400, .len = 0x1e0, .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 11),
.features = BIT(DPU_CTL_ACTIVE_CFG), }, {
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 11), .name = "ctl_3", .id = CTL_3,
}, .base = 0x1600, .len = 0x1e0,
{ .features = BIT(DPU_CTL_ACTIVE_CFG),
.name = "ctl_3", .id = CTL_3, .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 12),
.base = 0x1600, .len = 0x1e0, }, {
.features = BIT(DPU_CTL_ACTIVE_CFG), .name = "ctl_4", .id = CTL_4,
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 12), .base = 0x1800, .len = 0x1e0,
}, .features = BIT(DPU_CTL_ACTIVE_CFG),
{ .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 13),
.name = "ctl_4", .id = CTL_4, }, {
.base = 0x1800, .len = 0x1e0, .name = "ctl_5", .id = CTL_5,
.features = BIT(DPU_CTL_ACTIVE_CFG), .base = 0x1a00, .len = 0x1e0,
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 13), .features = BIT(DPU_CTL_ACTIVE_CFG),
}, .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 23),
{
.name = "ctl_5", .id = CTL_5,
.base = 0x1a00, .len = 0x1e0,
.features = BIT(DPU_CTL_ACTIVE_CFG),
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 23),
}, },
}; };
......
...@@ -44,40 +44,35 @@ static const struct dpu_mdp_cfg sc8180x_mdp = { ...@@ -44,40 +44,35 @@ static const struct dpu_mdp_cfg sc8180x_mdp = {
static const struct dpu_ctl_cfg sc8180x_ctl[] = { static const struct dpu_ctl_cfg sc8180x_ctl[] = {
{ {
.name = "ctl_0", .id = CTL_0, .name = "ctl_0", .id = CTL_0,
.base = 0x1000, .len = 0x1e0, .base = 0x1000, .len = 0x1e0,
.features = BIT(DPU_CTL_ACTIVE_CFG) | BIT(DPU_CTL_SPLIT_DISPLAY), .features = BIT(DPU_CTL_ACTIVE_CFG) | BIT(DPU_CTL_SPLIT_DISPLAY),
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 9), .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 9),
}, }, {
{ .name = "ctl_1", .id = CTL_1,
.name = "ctl_1", .id = CTL_1, .base = 0x1200, .len = 0x1e0,
.base = 0x1200, .len = 0x1e0, .features = BIT(DPU_CTL_ACTIVE_CFG) | BIT(DPU_CTL_SPLIT_DISPLAY),
.features = BIT(DPU_CTL_ACTIVE_CFG) | BIT(DPU_CTL_SPLIT_DISPLAY), .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 10),
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 10), }, {
}, .name = "ctl_2", .id = CTL_2,
{ .base = 0x1400, .len = 0x1e0,
.name = "ctl_2", .id = CTL_2, .features = BIT(DPU_CTL_ACTIVE_CFG),
.base = 0x1400, .len = 0x1e0, .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 11),
.features = BIT(DPU_CTL_ACTIVE_CFG), }, {
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 11), .name = "ctl_3", .id = CTL_3,
}, .base = 0x1600, .len = 0x1e0,
{ .features = BIT(DPU_CTL_ACTIVE_CFG),
.name = "ctl_3", .id = CTL_3, .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 12),
.base = 0x1600, .len = 0x1e0, }, {
.features = BIT(DPU_CTL_ACTIVE_CFG), .name = "ctl_4", .id = CTL_4,
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 12), .base = 0x1800, .len = 0x1e0,
}, .features = BIT(DPU_CTL_ACTIVE_CFG),
{ .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 13),
.name = "ctl_4", .id = CTL_4, }, {
.base = 0x1800, .len = 0x1e0, .name = "ctl_5", .id = CTL_5,
.features = BIT(DPU_CTL_ACTIVE_CFG), .base = 0x1a00, .len = 0x1e0,
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 13), .features = BIT(DPU_CTL_ACTIVE_CFG),
}, .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 23),
{
.name = "ctl_5", .id = CTL_5,
.base = 0x1a00, .len = 0x1e0,
.features = BIT(DPU_CTL_ACTIVE_CFG),
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 23),
}, },
}; };
......
...@@ -45,40 +45,35 @@ static const struct dpu_mdp_cfg sm8250_mdp = { ...@@ -45,40 +45,35 @@ static const struct dpu_mdp_cfg sm8250_mdp = {
/* FIXME: get rid of DPU_CTL_SPLIT_DISPLAY in favour of proper ACTIVE_CTL support */ /* FIXME: get rid of DPU_CTL_SPLIT_DISPLAY in favour of proper ACTIVE_CTL support */
static const struct dpu_ctl_cfg sm8250_ctl[] = { static const struct dpu_ctl_cfg sm8250_ctl[] = {
{ {
.name = "ctl_0", .id = CTL_0, .name = "ctl_0", .id = CTL_0,
.base = 0x1000, .len = 0x1e0, .base = 0x1000, .len = 0x1e0,
.features = BIT(DPU_CTL_ACTIVE_CFG) | BIT(DPU_CTL_SPLIT_DISPLAY), .features = BIT(DPU_CTL_ACTIVE_CFG) | BIT(DPU_CTL_SPLIT_DISPLAY),
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 9), .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 9),
}, }, {
{ .name = "ctl_1", .id = CTL_1,
.name = "ctl_1", .id = CTL_1, .base = 0x1200, .len = 0x1e0,
.base = 0x1200, .len = 0x1e0, .features = BIT(DPU_CTL_ACTIVE_CFG) | BIT(DPU_CTL_SPLIT_DISPLAY),
.features = BIT(DPU_CTL_ACTIVE_CFG) | BIT(DPU_CTL_SPLIT_DISPLAY), .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 10),
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 10), }, {
}, .name = "ctl_2", .id = CTL_2,
{ .base = 0x1400, .len = 0x1e0,
.name = "ctl_2", .id = CTL_2, .features = BIT(DPU_CTL_ACTIVE_CFG),
.base = 0x1400, .len = 0x1e0, .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 11),
.features = BIT(DPU_CTL_ACTIVE_CFG), }, {
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 11), .name = "ctl_3", .id = CTL_3,
}, .base = 0x1600, .len = 0x1e0,
{ .features = BIT(DPU_CTL_ACTIVE_CFG),
.name = "ctl_3", .id = CTL_3, .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 12),
.base = 0x1600, .len = 0x1e0, }, {
.features = BIT(DPU_CTL_ACTIVE_CFG), .name = "ctl_4", .id = CTL_4,
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 12), .base = 0x1800, .len = 0x1e0,
}, .features = BIT(DPU_CTL_ACTIVE_CFG),
{ .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 13),
.name = "ctl_4", .id = CTL_4, }, {
.base = 0x1800, .len = 0x1e0, .name = "ctl_5", .id = CTL_5,
.features = BIT(DPU_CTL_ACTIVE_CFG), .base = 0x1a00, .len = 0x1e0,
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 13), .features = BIT(DPU_CTL_ACTIVE_CFG),
}, .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 23),
{
.name = "ctl_5", .id = CTL_5,
.base = 0x1a00, .len = 0x1e0,
.features = BIT(DPU_CTL_ACTIVE_CFG),
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 23),
}, },
}; };
......
...@@ -36,22 +36,20 @@ static const struct dpu_mdp_cfg sc7180_mdp = { ...@@ -36,22 +36,20 @@ static const struct dpu_mdp_cfg sc7180_mdp = {
static const struct dpu_ctl_cfg sc7180_ctl[] = { static const struct dpu_ctl_cfg sc7180_ctl[] = {
{ {
.name = "ctl_0", .id = CTL_0, .name = "ctl_0", .id = CTL_0,
.base = 0x1000, .len = 0x1dc, .base = 0x1000, .len = 0x1dc,
.features = BIT(DPU_CTL_ACTIVE_CFG), .features = BIT(DPU_CTL_ACTIVE_CFG),
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 9), .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 9),
}, }, {
{ .name = "ctl_1", .id = CTL_1,
.name = "ctl_1", .id = CTL_1, .base = 0x1200, .len = 0x1dc,
.base = 0x1200, .len = 0x1dc, .features = BIT(DPU_CTL_ACTIVE_CFG),
.features = BIT(DPU_CTL_ACTIVE_CFG), .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 10),
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 10), }, {
}, .name = "ctl_2", .id = CTL_2,
{ .base = 0x1400, .len = 0x1dc,
.name = "ctl_2", .id = CTL_2, .features = BIT(DPU_CTL_ACTIVE_CFG),
.base = 0x1400, .len = 0x1dc, .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 11),
.features = BIT(DPU_CTL_ACTIVE_CFG),
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 11),
}, },
}; };
......
...@@ -34,10 +34,10 @@ static const struct dpu_mdp_cfg sm6115_mdp = { ...@@ -34,10 +34,10 @@ static const struct dpu_mdp_cfg sm6115_mdp = {
static const struct dpu_ctl_cfg sm6115_ctl[] = { static const struct dpu_ctl_cfg sm6115_ctl[] = {
{ {
.name = "ctl_0", .id = CTL_0, .name = "ctl_0", .id = CTL_0,
.base = 0x1000, .len = 0x1dc, .base = 0x1000, .len = 0x1dc,
.features = BIT(DPU_CTL_ACTIVE_CFG), .features = BIT(DPU_CTL_ACTIVE_CFG),
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 9), .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 9),
}, },
}; };
......
...@@ -39,28 +39,25 @@ static const struct dpu_mdp_cfg sm6350_mdp = { ...@@ -39,28 +39,25 @@ static const struct dpu_mdp_cfg sm6350_mdp = {
static const struct dpu_ctl_cfg sm6350_ctl[] = { static const struct dpu_ctl_cfg sm6350_ctl[] = {
{ {
.name = "ctl_0", .id = CTL_0, .name = "ctl_0", .id = CTL_0,
.base = 0x1000, .len = 0x1dc, .base = 0x1000, .len = 0x1dc,
.features = BIT(DPU_CTL_ACTIVE_CFG), .features = BIT(DPU_CTL_ACTIVE_CFG),
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 9), .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 9),
}, }, {
{ .name = "ctl_1", .id = CTL_1,
.name = "ctl_1", .id = CTL_1, .base = 0x1200, .len = 0x1dc,
.base = 0x1200, .len = 0x1dc, .features = BIT(DPU_CTL_ACTIVE_CFG),
.features = BIT(DPU_CTL_ACTIVE_CFG), .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 10),
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 10), }, {
}, .name = "ctl_2", .id = CTL_2,
{ .base = 0x1400, .len = 0x1dc,
.name = "ctl_2", .id = CTL_2, .features = BIT(DPU_CTL_ACTIVE_CFG),
.base = 0x1400, .len = 0x1dc, .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 11),
.features = BIT(DPU_CTL_ACTIVE_CFG), }, {
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 11), .name = "ctl_3", .id = CTL_3,
}, .base = 0x1600, .len = 0x1dc,
{ .features = BIT(DPU_CTL_ACTIVE_CFG),
.name = "ctl_3", .id = CTL_3, .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 12),
.base = 0x1600, .len = 0x1dc,
.features = BIT(DPU_CTL_ACTIVE_CFG),
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 12),
}, },
}; };
......
...@@ -31,10 +31,10 @@ static const struct dpu_mdp_cfg qcm2290_mdp = { ...@@ -31,10 +31,10 @@ static const struct dpu_mdp_cfg qcm2290_mdp = {
static const struct dpu_ctl_cfg qcm2290_ctl[] = { static const struct dpu_ctl_cfg qcm2290_ctl[] = {
{ {
.name = "ctl_0", .id = CTL_0, .name = "ctl_0", .id = CTL_0,
.base = 0x1000, .len = 0x1dc, .base = 0x1000, .len = 0x1dc,
.features = BIT(DPU_CTL_ACTIVE_CFG), .features = BIT(DPU_CTL_ACTIVE_CFG),
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 9), .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 9),
}, },
}; };
......
...@@ -35,10 +35,10 @@ static const struct dpu_mdp_cfg sm6375_mdp = { ...@@ -35,10 +35,10 @@ static const struct dpu_mdp_cfg sm6375_mdp = {
static const struct dpu_ctl_cfg sm6375_ctl[] = { static const struct dpu_ctl_cfg sm6375_ctl[] = {
{ {
.name = "ctl_0", .id = CTL_0, .name = "ctl_0", .id = CTL_0,
.base = 0x1000, .len = 0x1dc, .base = 0x1000, .len = 0x1dc,
.features = BIT(DPU_CTL_ACTIVE_CFG), .features = BIT(DPU_CTL_ACTIVE_CFG),
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 9), .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 9),
}, },
}; };
......
...@@ -43,40 +43,35 @@ static const struct dpu_mdp_cfg sm8350_mdp = { ...@@ -43,40 +43,35 @@ static const struct dpu_mdp_cfg sm8350_mdp = {
/* FIXME: get rid of DPU_CTL_SPLIT_DISPLAY in favour of proper ACTIVE_CTL support */ /* FIXME: get rid of DPU_CTL_SPLIT_DISPLAY in favour of proper ACTIVE_CTL support */
static const struct dpu_ctl_cfg sm8350_ctl[] = { static const struct dpu_ctl_cfg sm8350_ctl[] = {
{ {
.name = "ctl_0", .id = CTL_0, .name = "ctl_0", .id = CTL_0,
.base = 0x15000, .len = 0x1e8, .base = 0x15000, .len = 0x1e8,
.features = BIT(DPU_CTL_SPLIT_DISPLAY) | CTL_SC7280_MASK, .features = BIT(DPU_CTL_SPLIT_DISPLAY) | CTL_SC7280_MASK,
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 9), .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 9),
}, }, {
{ .name = "ctl_1", .id = CTL_1,
.name = "ctl_1", .id = CTL_1, .base = 0x16000, .len = 0x1e8,
.base = 0x16000, .len = 0x1e8, .features = BIT(DPU_CTL_SPLIT_DISPLAY) | CTL_SC7280_MASK,
.features = BIT(DPU_CTL_SPLIT_DISPLAY) | CTL_SC7280_MASK, .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 10),
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 10), }, {
}, .name = "ctl_2", .id = CTL_2,
{ .base = 0x17000, .len = 0x1e8,
.name = "ctl_2", .id = CTL_2, .features = CTL_SC7280_MASK,
.base = 0x17000, .len = 0x1e8, .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 11),
.features = CTL_SC7280_MASK, }, {
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 11), .name = "ctl_3", .id = CTL_3,
}, .base = 0x18000, .len = 0x1e8,
{ .features = CTL_SC7280_MASK,
.name = "ctl_3", .id = CTL_3, .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 12),
.base = 0x18000, .len = 0x1e8, }, {
.features = CTL_SC7280_MASK, .name = "ctl_4", .id = CTL_4,
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 12), .base = 0x19000, .len = 0x1e8,
}, .features = CTL_SC7280_MASK,
{ .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 13),
.name = "ctl_4", .id = CTL_4, }, {
.base = 0x19000, .len = 0x1e8, .name = "ctl_5", .id = CTL_5,
.features = CTL_SC7280_MASK, .base = 0x1a000, .len = 0x1e8,
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 13), .features = CTL_SC7280_MASK,
}, .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 23),
{
.name = "ctl_5", .id = CTL_5,
.base = 0x1a000, .len = 0x1e8,
.features = CTL_SC7280_MASK,
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 23),
}, },
}; };
......
...@@ -37,28 +37,25 @@ static const struct dpu_mdp_cfg sc7280_mdp = { ...@@ -37,28 +37,25 @@ static const struct dpu_mdp_cfg sc7280_mdp = {
static const struct dpu_ctl_cfg sc7280_ctl[] = { static const struct dpu_ctl_cfg sc7280_ctl[] = {
{ {
.name = "ctl_0", .id = CTL_0, .name = "ctl_0", .id = CTL_0,
.base = 0x15000, .len = 0x1e8, .base = 0x15000, .len = 0x1e8,
.features = CTL_SC7280_MASK, .features = CTL_SC7280_MASK,
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 9), .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 9),
}, }, {
{ .name = "ctl_1", .id = CTL_1,
.name = "ctl_1", .id = CTL_1, .base = 0x16000, .len = 0x1e8,
.base = 0x16000, .len = 0x1e8, .features = CTL_SC7280_MASK,
.features = CTL_SC7280_MASK, .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 10),
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 10), }, {
}, .name = "ctl_2", .id = CTL_2,
{ .base = 0x17000, .len = 0x1e8,
.name = "ctl_2", .id = CTL_2, .features = CTL_SC7280_MASK,
.base = 0x17000, .len = 0x1e8, .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 11),
.features = CTL_SC7280_MASK, }, {
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 11), .name = "ctl_3", .id = CTL_3,
}, .base = 0x18000, .len = 0x1e8,
{ .features = CTL_SC7280_MASK,
.name = "ctl_3", .id = CTL_3, .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 12),
.base = 0x18000, .len = 0x1e8,
.features = CTL_SC7280_MASK,
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 12),
}, },
}; };
......
...@@ -45,40 +45,35 @@ static const struct dpu_mdp_cfg sc8280xp_mdp = { ...@@ -45,40 +45,35 @@ static const struct dpu_mdp_cfg sc8280xp_mdp = {
/* FIXME: get rid of DPU_CTL_SPLIT_DISPLAY in favour of proper ACTIVE_CTL support */ /* FIXME: get rid of DPU_CTL_SPLIT_DISPLAY in favour of proper ACTIVE_CTL support */
static const struct dpu_ctl_cfg sc8280xp_ctl[] = { static const struct dpu_ctl_cfg sc8280xp_ctl[] = {
{ {
.name = "ctl_0", .id = CTL_0, .name = "ctl_0", .id = CTL_0,
.base = 0x15000, .len = 0x204, .base = 0x15000, .len = 0x204,
.features = BIT(DPU_CTL_SPLIT_DISPLAY) | CTL_SC7280_MASK, .features = BIT(DPU_CTL_SPLIT_DISPLAY) | CTL_SC7280_MASK,
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 9), .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 9),
}, }, {
{ .name = "ctl_1", .id = CTL_1,
.name = "ctl_1", .id = CTL_1, .base = 0x16000, .len = 0x204,
.base = 0x16000, .len = 0x204, .features = BIT(DPU_CTL_SPLIT_DISPLAY) | CTL_SC7280_MASK,
.features = BIT(DPU_CTL_SPLIT_DISPLAY) | CTL_SC7280_MASK, .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 10),
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 10), }, {
}, .name = "ctl_2", .id = CTL_2,
{ .base = 0x17000, .len = 0x204,
.name = "ctl_2", .id = CTL_2, .features = CTL_SC7280_MASK,
.base = 0x17000, .len = 0x204, .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 11),
.features = CTL_SC7280_MASK, }, {
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 11), .name = "ctl_3", .id = CTL_3,
}, .base = 0x18000, .len = 0x204,
{ .features = CTL_SC7280_MASK,
.name = "ctl_3", .id = CTL_3, .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 12),
.base = 0x18000, .len = 0x204, }, {
.features = CTL_SC7280_MASK, .name = "ctl_4", .id = CTL_4,
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 12), .base = 0x19000, .len = 0x204,
}, .features = CTL_SC7280_MASK,
{ .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 13),
.name = "ctl_4", .id = CTL_4, }, {
.base = 0x19000, .len = 0x204, .name = "ctl_5", .id = CTL_5,
.features = CTL_SC7280_MASK, .base = 0x1a000, .len = 0x204,
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 13), .features = CTL_SC7280_MASK,
}, .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 23),
{
.name = "ctl_5", .id = CTL_5,
.base = 0x1a000, .len = 0x204,
.features = CTL_SC7280_MASK,
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 23),
}, },
}; };
......
...@@ -45,40 +45,35 @@ static const struct dpu_mdp_cfg sm8450_mdp = { ...@@ -45,40 +45,35 @@ static const struct dpu_mdp_cfg sm8450_mdp = {
/* FIXME: get rid of DPU_CTL_SPLIT_DISPLAY in favour of proper ACTIVE_CTL support */ /* FIXME: get rid of DPU_CTL_SPLIT_DISPLAY in favour of proper ACTIVE_CTL support */
static const struct dpu_ctl_cfg sm8450_ctl[] = { static const struct dpu_ctl_cfg sm8450_ctl[] = {
{ {
.name = "ctl_0", .id = CTL_0, .name = "ctl_0", .id = CTL_0,
.base = 0x15000, .len = 0x204, .base = 0x15000, .len = 0x204,
.features = BIT(DPU_CTL_SPLIT_DISPLAY) | CTL_SC7280_MASK, .features = BIT(DPU_CTL_SPLIT_DISPLAY) | CTL_SC7280_MASK,
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 9), .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 9),
}, }, {
{ .name = "ctl_1", .id = CTL_1,
.name = "ctl_1", .id = CTL_1, .base = 0x16000, .len = 0x204,
.base = 0x16000, .len = 0x204, .features = BIT(DPU_CTL_SPLIT_DISPLAY) | CTL_SC7280_MASK,
.features = BIT(DPU_CTL_SPLIT_DISPLAY) | CTL_SC7280_MASK, .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 10),
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 10), }, {
}, .name = "ctl_2", .id = CTL_2,
{ .base = 0x17000, .len = 0x204,
.name = "ctl_2", .id = CTL_2, .features = CTL_SC7280_MASK,
.base = 0x17000, .len = 0x204, .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 11),
.features = CTL_SC7280_MASK, }, {
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 11), .name = "ctl_3", .id = CTL_3,
}, .base = 0x18000, .len = 0x204,
{ .features = CTL_SC7280_MASK,
.name = "ctl_3", .id = CTL_3, .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 12),
.base = 0x18000, .len = 0x204, }, {
.features = CTL_SC7280_MASK, .name = "ctl_4", .id = CTL_4,
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 12), .base = 0x19000, .len = 0x204,
}, .features = CTL_SC7280_MASK,
{ .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 13),
.name = "ctl_4", .id = CTL_4, }, {
.base = 0x19000, .len = 0x204, .name = "ctl_5", .id = CTL_5,
.features = CTL_SC7280_MASK, .base = 0x1a000, .len = 0x204,
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 13), .features = CTL_SC7280_MASK,
}, .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 23),
{
.name = "ctl_5", .id = CTL_5,
.base = 0x1a000, .len = 0x204,
.features = CTL_SC7280_MASK,
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 23),
}, },
}; };
......
...@@ -46,40 +46,35 @@ static const struct dpu_mdp_cfg sm8550_mdp = { ...@@ -46,40 +46,35 @@ static const struct dpu_mdp_cfg sm8550_mdp = {
/* FIXME: get rid of DPU_CTL_SPLIT_DISPLAY in favour of proper ACTIVE_CTL support */ /* FIXME: get rid of DPU_CTL_SPLIT_DISPLAY in favour of proper ACTIVE_CTL support */
static const struct dpu_ctl_cfg sm8550_ctl[] = { static const struct dpu_ctl_cfg sm8550_ctl[] = {
{ {
.name = "ctl_0", .id = CTL_0, .name = "ctl_0", .id = CTL_0,
.base = 0x15000, .len = 0x290, .base = 0x15000, .len = 0x290,
.features = CTL_SM8550_MASK | BIT(DPU_CTL_SPLIT_DISPLAY), .features = CTL_SM8550_MASK | BIT(DPU_CTL_SPLIT_DISPLAY),
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 9), .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 9),
}, }, {
{ .name = "ctl_1", .id = CTL_1,
.name = "ctl_1", .id = CTL_1, .base = 0x16000, .len = 0x290,
.base = 0x16000, .len = 0x290, .features = CTL_SM8550_MASK | BIT(DPU_CTL_SPLIT_DISPLAY),
.features = CTL_SM8550_MASK | BIT(DPU_CTL_SPLIT_DISPLAY), .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 10),
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 10), }, {
}, .name = "ctl_2", .id = CTL_2,
{ .base = 0x17000, .len = 0x290,
.name = "ctl_2", .id = CTL_2, .features = CTL_SM8550_MASK,
.base = 0x17000, .len = 0x290, .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 11),
.features = CTL_SM8550_MASK, }, {
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 11), .name = "ctl_3", .id = CTL_3,
}, .base = 0x18000, .len = 0x290,
{ .features = CTL_SM8550_MASK,
.name = "ctl_3", .id = CTL_3, .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 12),
.base = 0x18000, .len = 0x290, }, {
.features = CTL_SM8550_MASK, .name = "ctl_4", .id = CTL_4,
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 12), .base = 0x19000, .len = 0x290,
}, .features = CTL_SM8550_MASK,
{ .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 13),
.name = "ctl_4", .id = CTL_4, }, {
.base = 0x19000, .len = 0x290, .name = "ctl_5", .id = CTL_5,
.features = CTL_SM8550_MASK, .base = 0x1a000, .len = 0x290,
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 13), .features = CTL_SM8550_MASK,
}, .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 23),
{
.name = "ctl_5", .id = CTL_5,
.base = 0x1a000, .len = 0x290,
.features = CTL_SM8550_MASK,
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 23),
}, },
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment