Skip to content

Commit 69c5bcf

Browse files
superna9999robclark
authored andcommitted
drm/msm/dpu: enable writeback on SM8550
Enable WB2 hardware block, enabling writeback support on this platform. Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org> Patchwork: https://patchwork.freedesktop.org/patch/562328/ Signed-off-by: Rob Clark <robdclark@chromium.org>
1 parent 05b0fdf commit 69c5bcf

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,20 @@ static const struct dpu_dsc_cfg sm8550_dsc[] = {
311311
},
312312
};
313313

314+
static const struct dpu_wb_cfg sm8550_wb[] = {
315+
{
316+
.name = "wb_2", .id = WB_2,
317+
.base = 0x65000, .len = 0x2c8,
318+
.features = WB_SM8250_MASK,
319+
.format_list = wb2_formats,
320+
.num_formats = ARRAY_SIZE(wb2_formats),
321+
.xin_id = 6,
322+
.vbif_idx = VBIF_RT,
323+
.maxlinewidth = 4096,
324+
.intr_wb_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 4),
325+
},
326+
};
327+
314328
static const struct dpu_intf_cfg sm8550_intf[] = {
315329
{
316330
.name = "intf_0", .id = INTF_0,
@@ -406,6 +420,8 @@ const struct dpu_mdss_cfg dpu_sm8550_cfg = {
406420
.dsc = sm8550_dsc,
407421
.merge_3d_count = ARRAY_SIZE(sm8550_merge_3d),
408422
.merge_3d = sm8550_merge_3d,
423+
.wb_count = ARRAY_SIZE(sm8550_wb),
424+
.wb = sm8550_wb,
409425
.intf_count = ARRAY_SIZE(sm8550_intf),
410426
.intf = sm8550_intf,
411427
.vbif_count = ARRAY_SIZE(sm8550_vbif),

0 commit comments

Comments
 (0)