@@ -27,6 +27,7 @@ static const struct dpu_mdp_cfg sm6125_mdp = {
27
27
[DPU_CLK_CTRL_VIG0 ] = { .reg_off = 0x2ac , .bit_off = 0 },
28
28
[DPU_CLK_CTRL_DMA0 ] = { .reg_off = 0x2ac , .bit_off = 8 },
29
29
[DPU_CLK_CTRL_DMA1 ] = { .reg_off = 0x2b4 , .bit_off = 8 },
30
+ [DPU_CLK_CTRL_WB2 ] = { .reg_off = 0x2bc , .bit_off = 16 },
30
31
},
31
32
};
32
33
@@ -139,6 +140,21 @@ static const struct dpu_pingpong_cfg sm6125_pp[] = {
139
140
},
140
141
};
141
142
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
+
142
158
static const struct dpu_intf_cfg sm6125_intf [] = {
143
159
{
144
160
.name = "intf_0" , .id = INTF_0 ,
@@ -210,6 +226,8 @@ const struct dpu_mdss_cfg dpu_sm6125_cfg = {
210
226
.dspp = sm6125_dspp ,
211
227
.pingpong_count = ARRAY_SIZE (sm6125_pp ),
212
228
.pingpong = sm6125_pp ,
229
+ .wb_count = ARRAY_SIZE (sm6125_wb ),
230
+ .wb = sm6125_wb ,
213
231
.intf_count = ARRAY_SIZE (sm6125_intf ),
214
232
.intf = sm6125_intf ,
215
233
.vbif_count = ARRAY_SIZE (sdm845_vbif ),
0 commit comments