Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/msm/dpu: Add writeback support for SM6150

On the SM6150 platform there is WB_2 block. Add it to the SM6150 catalog.

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Fange Zhang <quic_fangez@quicinc.com>
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Patchwork: https://patchwork.freedesktop.org/patch/632337/
Link: https://lore.kernel.org/r/20250114-add-writeback-support-for-sm6150-v2-1-d707b31aad5c@quicinc.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>

authored by

Fange Zhang and committed by
Dmitry Baryshkov
23c0a9d3 72d0af4a

+18
+18
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_3_sm6150.h
··· 27 27 [DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 }, 28 28 [DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2bc, .bit_off = 8 }, 29 29 [DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2c4, .bit_off = 8 }, 30 + [DPU_CLK_CTRL_WB2] = { .reg_off = 0x2bc, .bit_off = 16 }, 30 31 }, 31 32 }; 32 33 ··· 163 162 }, 164 163 }; 165 164 165 + static const struct dpu_wb_cfg sm6150_wb[] = { 166 + { 167 + .name = "wb_2", .id = WB_2, 168 + .base = 0x65000, .len = 0x2c8, 169 + .features = WB_SM8250_MASK, 170 + .format_list = wb2_formats_rgb, 171 + .num_formats = ARRAY_SIZE(wb2_formats_rgb), 172 + .clk_ctrl = DPU_CLK_CTRL_WB2, 173 + .xin_id = 6, 174 + .vbif_idx = VBIF_RT, 175 + .maxlinewidth = 2160, 176 + .intr_wb_done = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 4), 177 + }, 178 + }; 179 + 166 180 static const struct dpu_intf_cfg sm6150_intf[] = { 167 181 { 168 182 .name = "intf_0", .id = INTF_0, ··· 258 242 .dspp = sm6150_dspp, 259 243 .pingpong_count = ARRAY_SIZE(sm6150_pp), 260 244 .pingpong = sm6150_pp, 245 + .wb_count = ARRAY_SIZE(sm6150_wb), 246 + .wb = sm6150_wb, 261 247 .intf_count = ARRAY_SIZE(sm6150_intf), 262 248 .intf = sm6150_intf, 263 249 .vbif_count = ARRAY_SIZE(sdm845_vbif),