[PATCH 16/45] drm/msm/dp: add support for programming p1 register block
Dmitry Baryshkov
dmitry.baryshkov at linaro.org
Fri Dec 6 09:42:21 UTC 2024
On Thu, Dec 05, 2024 at 08:31:47PM -0800, Abhinav Kumar wrote:
> p1 register block is needed for the second mst stream.
> Add support in the catalog to be able to program this block.
>
> Signed-off-by: Abhinav Kumar <quic_abhinavk at quicinc.com>
> ---
> drivers/gpu/drm/msm/dp/dp_catalog.c | 29 +++++++++++++++++++++++++++++
> 1 file changed, 29 insertions(+)
>
> @@ -1137,6 +1160,12 @@ static int msm_dp_catalog_get_io(struct msm_dp_catalog_private *catalog)
> DRM_ERROR("unable to remap p0 region: %pe\n", dss->p0.base);
> return PTR_ERR(dss->p0.base);
> }
> +
> + dss->p1.base = msm_dp_ioremap(pdev, 4, &dss->p1.len);
> + if (IS_ERR(dss->p1.base)) {
> + DRM_ERROR("unable to remap p1 region: %pe\n", dss->p1.base);
> + return PTR_ERR(dss->p1.base);
> + }
Forgot to mention, please also map p1 in the legacy bingdings branch in
this function.
> }
>
> return 0;
>
> --
> 2.34.1
>
--
With best wishes
Dmitry
More information about the Freedreno
mailing list