drm/msm/dp: Store each subblock in the io region
Not all platforms has DP_P0 at offset 0x1000 from the beginning of the DP block. So split the dss_io_data memory region into a set of sub-regions, to make it possible in the next patch to specify each of the sub-regions individually. Reviewed-by: Stephen Boyd <swboyd@chromium.org> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> Link: https://lore.kernel.org/r/20211001174400.981707-5-bjorn.andersson@linaro.org Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Signed-off-by: Rob Clark <robdclark@chromium.org>
This commit is contained in:
committed by
Rob Clark
parent
ef501dbf84
commit
060c160fbb
@@ -25,11 +25,18 @@ enum dp_pm_type {
|
||||
DP_MAX_PM
|
||||
};
|
||||
|
||||
struct dss_io_data {
|
||||
struct dss_io_region {
|
||||
size_t len;
|
||||
void __iomem *base;
|
||||
};
|
||||
|
||||
struct dss_io_data {
|
||||
struct dss_io_region ahb;
|
||||
struct dss_io_region aux;
|
||||
struct dss_io_region link;
|
||||
struct dss_io_region p0;
|
||||
};
|
||||
|
||||
static inline const char *dp_parser_pm_name(enum dp_pm_type module)
|
||||
{
|
||||
switch (module) {
|
||||
|
||||
Reference in New Issue
Block a user