Skip to content

Commit ab2b03d

Browse files
committed
drm/msm/dpu: enable writeback on SM6125
Enable WB2 hardware block, enabling writeback support on this platform. Signed-off-by: Dmitry Baryshkov <[email protected]> Reviewed-by: Abhinav Kumar <[email protected]> Patchwork: https://patchwork.freedesktop.org/patch/570193/ Link: https://lore.kernel.org/r/[email protected]
1 parent 1f5bcc4 commit ab2b03d

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ static const struct dpu_mdp_cfg sm6125_mdp = {
2727
[DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 },
2828
[DPU_CLK_CTRL_DMA0] = { .reg_off = 0x2ac, .bit_off = 8 },
2929
[DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 },
30+
[DPU_CLK_CTRL_WB2] = { .reg_off = 0x2bc, .bit_off = 16 },
3031
},
3132
};
3233

@@ -139,6 +140,21 @@ static const struct dpu_pingpong_cfg sm6125_pp[] = {
139140
},
140141
};
141142

143+
static const struct dpu_wb_cfg sm6125_wb[] = {
144+
{
145+
.name = "wb_2", .id = WB_2,
146+
.base = 0x65000, .len = 0x2c8,
147+
.features = WB_SDM845_MASK,
148+
.format_list = wb2_formats_rgb,
149+
.num_formats = ARRAY_SIZE(wb2_formats_rgb),
150+
.clk_ctrl = DPU_CLK_CTRL_WB2,
151+
.xin_id = 6,
152+
.vbif_idx = VBIF_RT,
153+
.maxlinewidth = 2160,
154+
.intr_wb_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 4),
155+
},
156+
};
157+
142158
static const struct dpu_intf_cfg sm6125_intf[] = {
143159
{
144160
.name = "intf_0", .id = INTF_0,
@@ -210,6 +226,8 @@ const struct dpu_mdss_cfg dpu_sm6125_cfg = {
210226
.dspp = sm6125_dspp,
211227
.pingpong_count = ARRAY_SIZE(sm6125_pp),
212228
.pingpong = sm6125_pp,
229+
.wb_count = ARRAY_SIZE(sm6125_wb),
230+
.wb = sm6125_wb,
213231
.intf_count = ARRAY_SIZE(sm6125_intf),
214232
.intf = sm6125_intf,
215233
.vbif_count = ARRAY_SIZE(sdm845_vbif),

0 commit comments

Comments
 (0)