Message ID | 20230411-topic-straitlagoon_mdss-v2-8-5def73f50980@linaro.org |
---|---|
State | Superseded |
Headers | show |
Series | [v2,01/13] dt-bindings: display/msm: dsi-controller-main: Add SM6350 | expand |
On 2023-04-21 00:31:17, Konrad Dybcio wrote: > Add support for MDSS on SM6350. > > Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> Reviewed-by: Marijn Suijten <marijn.suijten@somainline.org> > --- > drivers/gpu/drm/msm/msm_mdss.c | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/drivers/gpu/drm/msm/msm_mdss.c b/drivers/gpu/drm/msm/msm_mdss.c > index e8c93731aaa1..4e3a5f0c303c 100644 > --- a/drivers/gpu/drm/msm/msm_mdss.c > +++ b/drivers/gpu/drm/msm/msm_mdss.c > @@ -538,6 +538,14 @@ static const struct msm_mdss_data sdm845_data = { > .highest_bank_bit = 2, > }; > > +static const struct msm_mdss_data sm6350_data = { > + .ubwc_version = UBWC_2_0, > + .ubwc_dec_version = UBWC_2_0, > + .ubwc_swizzle = 6, > + .ubwc_static = 0x1e, > + .highest_bank_bit = 1, > +}; > + > static const struct msm_mdss_data sm8150_data = { > .ubwc_version = UBWC_3_0, > .ubwc_dec_version = UBWC_3_0, > @@ -571,6 +579,7 @@ static const struct of_device_id mdss_dt_match[] = { > { .compatible = "qcom,sc8180x-mdss", .data = &sc8180x_data }, > { .compatible = "qcom,sc8280xp-mdss", .data = &sc8280xp_data }, > { .compatible = "qcom,sm6115-mdss", .data = &sm6115_data }, > + { .compatible = "qcom,sm6350-mdss", .data = &sm6350_data }, > { .compatible = "qcom,sm8150-mdss", .data = &sm8150_data }, > { .compatible = "qcom,sm8250-mdss", .data = &sm8250_data }, > { .compatible = "qcom,sm8350-mdss", .data = &sm8250_data }, > > -- > 2.40.0 >
diff --git a/drivers/gpu/drm/msm/msm_mdss.c b/drivers/gpu/drm/msm/msm_mdss.c index e8c93731aaa1..4e3a5f0c303c 100644 --- a/drivers/gpu/drm/msm/msm_mdss.c +++ b/drivers/gpu/drm/msm/msm_mdss.c @@ -538,6 +538,14 @@ static const struct msm_mdss_data sdm845_data = { .highest_bank_bit = 2, }; +static const struct msm_mdss_data sm6350_data = { + .ubwc_version = UBWC_2_0, + .ubwc_dec_version = UBWC_2_0, + .ubwc_swizzle = 6, + .ubwc_static = 0x1e, + .highest_bank_bit = 1, +}; + static const struct msm_mdss_data sm8150_data = { .ubwc_version = UBWC_3_0, .ubwc_dec_version = UBWC_3_0, @@ -571,6 +579,7 @@ static const struct of_device_id mdss_dt_match[] = { { .compatible = "qcom,sc8180x-mdss", .data = &sc8180x_data }, { .compatible = "qcom,sc8280xp-mdss", .data = &sc8280xp_data }, { .compatible = "qcom,sm6115-mdss", .data = &sm6115_data }, + { .compatible = "qcom,sm6350-mdss", .data = &sm6350_data }, { .compatible = "qcom,sm8150-mdss", .data = &sm8150_data }, { .compatible = "qcom,sm8250-mdss", .data = &sm8250_data }, { .compatible = "qcom,sm8350-mdss", .data = &sm8250_data },
Add support for MDSS on SM6350. Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> --- drivers/gpu/drm/msm/msm_mdss.c | 9 +++++++++ 1 file changed, 9 insertions(+)