drm/msm: mdss add support for SM8450
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Wed, 7 Dec 2022 01:22:31 +0000 (03:22 +0200)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Thu, 12 Jan 2023 19:45:16 +0000 (21:45 +0200)
Add support for the MDSS block on SM8450 platform.

Tested-by: Vinod Koul <vkoul@kernel.org>
Reviewed-by: Vinod Koul <vkoul@kernel.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/514247/
Link: https://lore.kernel.org/r/20221207012231.112059-12-dmitry.baryshkov@linaro.org
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
drivers/gpu/drm/msm/msm_mdss.c

index 2527afe..8cd3504 100644 (file)
@@ -289,6 +289,10 @@ static int msm_mdss_enable(struct msm_mdss *msm_mdss)
        case DPU_HW_VER_720:
                msm_mdss_setup_ubwc_dec_40(msm_mdss, UBWC_3_0, 6, 1, 1, 1);
                break;
+       case DPU_HW_VER_810:
+               /* TODO: highest_bank_bit = 2 for LP_DDR4 */
+               msm_mdss_setup_ubwc_dec_40(msm_mdss, UBWC_4_0, 6, 1, 3, 1);
+               break;
        }
 
        return ret;
@@ -518,6 +522,7 @@ static const struct of_device_id mdss_dt_match[] = {
        { .compatible = "qcom,sm6115-mdss" },
        { .compatible = "qcom,sm8150-mdss" },
        { .compatible = "qcom,sm8250-mdss" },
+       { .compatible = "qcom,sm8450-mdss" },
        {}
 };
 MODULE_DEVICE_TABLE(of, mdss_dt_match);