Skip to content

Commit 5ce2248

Browse files
committed
drm/msm/dpu: expand sm6115 catalog
Duplicate qcm2290 catalog entries to sm6115 to remove dependencies between DPU instances. Signed-off-by: Dmitry Baryshkov <[email protected]> Reviewed-by: Abhinav Kumar <[email protected]> Patchwork: https://patchwork.freedesktop.org/patch/530862/ Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Baryshkov <[email protected]>
1 parent 0253879 commit 5ce2248

File tree

2 files changed

+41
-11
lines changed

2 files changed

+41
-11
lines changed

drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_3_sm6115.h

Lines changed: 40 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,43 @@ static const struct dpu_mdp_cfg sm6115_mdp[] = {
3333
},
3434
};
3535

36+
static const struct dpu_ctl_cfg sm6115_ctl[] = {
37+
{
38+
.name = "ctl_0", .id = CTL_0,
39+
.base = 0x1000, .len = 0x1dc,
40+
.features = BIT(DPU_CTL_ACTIVE_CFG),
41+
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 9),
42+
},
43+
};
44+
3645
static const struct dpu_sspp_cfg sm6115_sspp[] = {
3746
SSPP_BLK("sspp_0", SSPP_VIG0, 0x4000, 0x1f8, VIG_SC7180_MASK,
3847
sm6115_vig_sblk_0, 0, SSPP_TYPE_VIG, DPU_CLK_CTRL_VIG0),
3948
SSPP_BLK("sspp_8", SSPP_DMA0, 0x24000, 0x1f8, DMA_SDM845_MASK,
4049
sdm845_dma_sblk_0, 1, SSPP_TYPE_DMA, DPU_CLK_CTRL_DMA0),
4150
};
4251

52+
static const struct dpu_lm_cfg sm6115_lm[] = {
53+
LM_BLK("lm_0", LM_0, 0x44000, MIXER_QCM2290_MASK,
54+
&qcm2290_lm_sblk, PINGPONG_0, 0, DSPP_0),
55+
};
56+
57+
static const struct dpu_dspp_cfg sm6115_dspp[] = {
58+
DSPP_BLK("dspp_0", DSPP_0, 0x54000, DSPP_SC7180_MASK,
59+
&sm8150_dspp_sblk),
60+
};
61+
62+
static const struct dpu_pingpong_cfg sm6115_pp[] = {
63+
PP_BLK("pingpong_0", PINGPONG_0, 0x70000, 0, sdm845_pp_sblk,
64+
DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 8),
65+
DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 12)),
66+
};
67+
68+
static const struct dpu_intf_cfg sm6115_intf[] = {
69+
INTF_BLK("intf_0", INTF_0, 0x00000, 0x280, INTF_NONE, 0, 0, 0, 0, 0, 0),
70+
INTF_BLK("intf_1", INTF_1, 0x6a800, 0x2c0, INTF_DSI, 0, 24, INTF_SC7180_MASK, MDP_SSPP_TOP0_INTR, 26, 27),
71+
};
72+
4373
static const struct dpu_perf_cfg sm6115_perf_data = {
4474
.max_bw_low = 3100000,
4575
.max_bw_high = 4000000,
@@ -74,18 +104,18 @@ static const struct dpu_mdss_cfg sm6115_dpu_cfg = {
74104
.ubwc = &sm6115_ubwc_cfg,
75105
.mdp_count = ARRAY_SIZE(sm6115_mdp),
76106
.mdp = sm6115_mdp,
77-
.ctl_count = ARRAY_SIZE(qcm2290_ctl),
78-
.ctl = qcm2290_ctl,
107+
.ctl_count = ARRAY_SIZE(sm6115_ctl),
108+
.ctl = sm6115_ctl,
79109
.sspp_count = ARRAY_SIZE(sm6115_sspp),
80110
.sspp = sm6115_sspp,
81-
.mixer_count = ARRAY_SIZE(qcm2290_lm),
82-
.mixer = qcm2290_lm,
83-
.dspp_count = ARRAY_SIZE(qcm2290_dspp),
84-
.dspp = qcm2290_dspp,
85-
.pingpong_count = ARRAY_SIZE(qcm2290_pp),
86-
.pingpong = qcm2290_pp,
87-
.intf_count = ARRAY_SIZE(qcm2290_intf),
88-
.intf = qcm2290_intf,
111+
.mixer_count = ARRAY_SIZE(sm6115_lm),
112+
.mixer = sm6115_lm,
113+
.dspp_count = ARRAY_SIZE(sm6115_dspp),
114+
.dspp = sm6115_dspp,
115+
.pingpong_count = ARRAY_SIZE(sm6115_pp),
116+
.pingpong = sm6115_pp,
117+
.intf_count = ARRAY_SIZE(sm6115_intf),
118+
.intf = sm6115_intf,
89119
.vbif_count = ARRAY_SIZE(sdm845_vbif),
90120
.vbif = sdm845_vbif,
91121
.perf = &sm6115_perf_data,

drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -884,8 +884,8 @@ static const struct dpu_qos_lut_entry sc7180_qos_nrt[] = {
884884

885885
#include "catalog/dpu_6_0_sm8250.h"
886886
#include "catalog/dpu_6_2_sc7180.h"
887-
#include "catalog/dpu_6_5_qcm2290.h"
888887
#include "catalog/dpu_6_3_sm6115.h"
888+
#include "catalog/dpu_6_5_qcm2290.h"
889889

890890
#include "catalog/dpu_7_0_sm8350.h"
891891
#include "catalog/dpu_7_2_sc7280.h"

0 commit comments

Comments
 (0)