mirror of
https://github.com/torvalds/linux.git
synced 2026-08-01 03:59:40 +02:00
drm/msm/dpu: add CWB support to dpu_hw_wb
Adjust the WB_MUX configuration to account for using dedicated CWB pingpong blocks. Signed-off-by: Esha Bharadwaj <quic_ebharadw@quicinc.com> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Signed-off-by: Jessica Zhang <quic_jesszhan@quicinc.com> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Patchwork: https://patchwork.freedesktop.org/patch/629248/ Link: https://lore.kernel.org/r/20241216-concurrent-wb-v4-13-fe220297a7f0@quicinc.com
This commit is contained in:
parent
aae8736426
commit
a31a610fd4
|
|
@ -173,7 +173,9 @@ static void dpu_hw_wb_bind_pingpong_blk(
|
|||
mux_cfg = DPU_REG_READ(c, WB_MUX);
|
||||
mux_cfg &= ~0xf;
|
||||
|
||||
if (pp)
|
||||
if (pp >= PINGPONG_CWB_0)
|
||||
mux_cfg |= (pp < PINGPONG_CWB_2) ? 0xd : 0xb;
|
||||
else if (pp)
|
||||
mux_cfg |= (pp - PINGPONG_0) & 0x7;
|
||||
else
|
||||
mux_cfg |= 0xf;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user