@@ -33,6 +33,7 @@ static const struct dpu_mdp_cfg sc8180x_mdp = {
33
33
[DPU_CLK_CTRL_DMA1 ] = { .reg_off = 0x2b4 , .bit_off = 8 },
34
34
[DPU_CLK_CTRL_DMA2 ] = { .reg_off = 0x2bc , .bit_off = 8 },
35
35
[DPU_CLK_CTRL_DMA3 ] = { .reg_off = 0x2c4 , .bit_off = 8 },
36
+ [DPU_CLK_CTRL_WB2 ] = { .reg_off = 0x2bc , .bit_off = 16 },
36
37
},
37
38
};
38
39
@@ -297,6 +298,21 @@ static const struct dpu_dsc_cfg sc8180x_dsc[] = {
297
298
},
298
299
};
299
300
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
+
300
316
static const struct dpu_intf_cfg sc8180x_intf [] = {
301
317
{
302
318
.name = "intf_0" , .id = INTF_0 ,
@@ -410,6 +426,8 @@ const struct dpu_mdss_cfg dpu_sc8180x_cfg = {
410
426
.pingpong = sc8180x_pp ,
411
427
.merge_3d_count = ARRAY_SIZE (sc8180x_merge_3d ),
412
428
.merge_3d = sc8180x_merge_3d ,
429
+ .wb_count = ARRAY_SIZE (sc8180x_wb ),
430
+ .wb = sc8180x_wb ,
413
431
.intf_count = ARRAY_SIZE (sc8180x_intf ),
414
432
.intf = sc8180x_intf ,
415
433
.vbif_count = ARRAY_SIZE (sdm845_vbif ),
0 commit comments