OSDN Git Service

drm/msm/dp: Allow sub-regions to be specified in DT
authorBjorn Andersson <bjorn.andersson@linaro.org>
Fri, 1 Oct 2021 17:44:00 +0000 (10:44 -0700)
committerRob Clark <robdclark@chromium.org>
Fri, 15 Oct 2021 23:35:39 +0000 (16:35 -0700)
commit415f36903be7be16bc0563f3624b0d0927739860
tree9009a787838800ef332f27561e5c6d9165bc8c2d
parent060c160fbb99887b31320e7c7693d4da3fc81dfe
drm/msm/dp: Allow sub-regions to be specified in DT

Not all platforms has P0 at an offset of 0x1000 from the base address,
so add support for specifying each sub-region in DT. The code falls back
to the predefined offsets in the case that only a single reg is
specified, in order to support existing DT.

Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Abhinav Kumar <abhinavk@codeaurora.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20211001174400.981707-6-bjorn.andersson@linaro.org
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/dp/dp_parser.c