Skip to content

Commit 1cf5cd9

Browse files
Jessica Zhanglumag
authored andcommitted
drm/msm/dpu: Adjust CDM_MUX to support CWB PINGPONG
Similar to WB_MUX, CDM_MUX also needs to be adjusted to support dedicated CWB PINGPONGs Signed-off-by: Jessica Zhang <[email protected]> Reviewed-by: Abhinav Kumar <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Patchwork: https://patchwork.freedesktop.org/patch/641272/ Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Baryshkov <[email protected]>
1 parent 69d0273 commit 1cf5cd9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/gpu/drm/msm/disp/dpu1/dpu_hw_cdm.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,9 @@ static void dpu_hw_cdm_bind_pingpong_blk(struct dpu_hw_cdm *ctx, const enum dpu_
214214
mux_cfg = DPU_REG_READ(c, CDM_MUX);
215215
mux_cfg &= ~0xf;
216216

217-
if (pp)
217+
if (pp >= PINGPONG_CWB_0)
218+
mux_cfg |= 0xd;
219+
else if (pp)
218220
mux_cfg |= (pp - PINGPONG_0) & 0x7;
219221
else
220222
mux_cfg |= 0xf;

0 commit comments

Comments
 (0)