disp: msm: dsi: Add support for parsing mdp_intf base address from dt

Currently, mdp_intf_line_count and mdp_intf_tear_line_count register
addresses are defined in dsi_ctrl_hw for debug feature. But mdp_intf
base address is target specific and independent of dsi controller
version. This change adds support for parsing the mdp intf base
address from dt, thereby remapping using base + offset addressing.

Change-Id: Ibb72dfe84a786a5c8b95f6a400e8333f6b46814a
Signed-off-by: Lipsa Rout <lrout@codeaurora.org>
Цей коміт міститься в:
Lipsa Rout
2020-11-04 17:06:29 +05:30
джерело c7ba46d5bf
коміт 5407bf18f3
5 змінених файлів з 23 додано та 89 видалено

Переглянути файл

@@ -630,6 +630,7 @@ static int dsi_ctrl_init_regmap(struct platform_device *pdev,
}
ctrl->hw.mmss_misc_base = ptr;
ctrl->hw.disp_cc_base = NULL;
ctrl->hw.mdp_intf_base = NULL;
break;
case DSI_CTRL_VERSION_2_2:
case DSI_CTRL_VERSION_2_3:
@@ -643,6 +644,10 @@ static int dsi_ctrl_init_regmap(struct platform_device *pdev,
}
ctrl->hw.disp_cc_base = ptr;
ctrl->hw.mmss_misc_base = NULL;
ptr = msm_ioremap(pdev, "mdp_intf_base", ctrl->name);
if (!IS_ERR(ptr))
ctrl->hw.mdp_intf_base = ptr;
break;
default:
break;
@@ -2093,9 +2098,6 @@ static int dsi_ctrl_dev_probe(struct platform_device *pdev)
goto fail_clks;
}
if (dsi_ctrl->hw.ops.map_mdp_regs)
dsi_ctrl->hw.ops.map_mdp_regs(pdev, &dsi_ctrl->hw);
item->ctrl = dsi_ctrl;
sde_dbg_dsi_ctrl_register(dsi_ctrl->hw.base, dsi_ctrl->name);