Skip to content

Commit 1f5bcc4

Browse files
committed
drm/msm/dpu: enable writeback on SC8108X
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/570196/ Link: https://lore.kernel.org/r/[email protected]
1 parent 47cebb7 commit 1f5bcc4

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_1_sc8180x.h

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ static const struct dpu_mdp_cfg sc8180x_mdp = {
3333
[DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 },
3434
[DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2bc, .bit_off = 8 },
3535
[DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2c4, .bit_off = 8 },
36+
[DPU_CLK_CTRL_WB2] = { .reg_off = 0x2bc, .bit_off = 16 },
3637
},
3738
};
3839

@@ -297,6 +298,21 @@ static const struct dpu_dsc_cfg sc8180x_dsc[] = {
297298
},
298299
};
299300

301+
static const struct dpu_wb_cfg sc8180x_wb[] = {
302+
{
303+
.name = "wb_2", .id = WB_2,
304+
.base = 0x65000, .len = 0x2c8,
305+
.features = WB_SDM845_MASK,
306+
.format_list = wb2_formats_rgb,
307+
.num_formats = ARRAY_SIZE(wb2_formats_rgb),
308+
.clk_ctrl = DPU_CLK_CTRL_WB2,
309+
.xin_id = 6,
310+
.vbif_idx = VBIF_RT,
311+
.maxlinewidth = 4096,
312+
.intr_wb_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 4),
313+
},
314+
};
315+
300316
static const struct dpu_intf_cfg sc8180x_intf[] = {
301317
{
302318
.name = "intf_0", .id = INTF_0,
@@ -410,6 +426,8 @@ const struct dpu_mdss_cfg dpu_sc8180x_cfg = {
410426
.pingpong = sc8180x_pp,
411427
.merge_3d_count = ARRAY_SIZE(sc8180x_merge_3d),
412428
.merge_3d = sc8180x_merge_3d,
429+
.wb_count = ARRAY_SIZE(sc8180x_wb),
430+
.wb = sc8180x_wb,
413431
.intf_count = ARRAY_SIZE(sc8180x_intf),
414432
.intf = sc8180x_intf,
415433
.vbif_count = ARRAY_SIZE(sdm845_vbif),

0 commit comments

Comments
 (0)