drm/msm/dpu: expand sc7180 catalog
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Tue, 4 Apr 2023 13:06:06 +0000 (16:06 +0300)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Fri, 7 Apr 2023 00:52:09 +0000 (03:52 +0300)
Duplicate sm8250 catalog entries to sc7180 to remove dependencies
between DPU instances.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Patchwork: https://patchwork.freedesktop.org/patch/530861/
Link: https://lore.kernel.org/r/20230404130622.509628-27-dmitry.baryshkov@linaro.org
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_2_sc7180.h

index 2326be2..433f7b2 100644 (file)
@@ -89,6 +89,11 @@ static const struct dpu_intf_cfg sc7180_intf[] = {
        INTF_BLK("intf_1", INTF_1, 0x6a800, 0x2c0, INTF_DSI, 0, 24, INTF_SC7180_MASK, MDP_SSPP_TOP0_INTR, 26, 27),
 };
 
+static const struct dpu_wb_cfg sc7180_wb[] = {
+       WB_BLK("wb_2", WB_2, 0x65000, WB_SM8250_MASK, DPU_CLK_CTRL_WB2, 6,
+                       VBIF_RT, MDP_SSPP_TOP0_INTR, 4096, 4),
+};
+
 static const struct dpu_perf_cfg sc7180_perf_data = {
        .max_bw_low = 6800000,
        .max_bw_high = 6800000,
@@ -134,8 +139,8 @@ static const struct dpu_mdss_cfg sc7180_dpu_cfg = {
        .pingpong = sc7180_pp,
        .intf_count = ARRAY_SIZE(sc7180_intf),
        .intf = sc7180_intf,
-       .wb_count = ARRAY_SIZE(sm8250_wb),
-       .wb = sm8250_wb,
+       .wb_count = ARRAY_SIZE(sc7180_wb),
+       .wb = sc7180_wb,
        .vbif_count = ARRAY_SIZE(sdm845_vbif),
        .vbif = sdm845_vbif,
        .reg_dma_count = 1,