disp: msm: dsi: register io resource collection VM event hook
Add support to read register ranges and IRQ lines that needs isolation during VM switch in dsi ctrl and dsi phy. Register for VM resource collection event providing the callback function. Change-Id: I5eae4699b0a97ffed438627ccea855c401b3fbeb Signed-off-by: Jeykumar Sankaran <jsanka@codeaurora.org>
这个提交包含在:

提交者
Gerrit - the friendly Code Review server

父节点
4b27380f07
当前提交
962fd4faca
@@ -116,6 +116,27 @@ int dsi_phy_get_version(struct msm_dsi_phy *phy)
|
||||
return phy->ver_info->version;
|
||||
}
|
||||
|
||||
int dsi_phy_get_io_resources(struct msm_io_res *io_res)
|
||||
{
|
||||
struct dsi_phy_list_item *dsi_phy;
|
||||
int rc = 0;
|
||||
|
||||
mutex_lock(&dsi_phy_list_lock);
|
||||
|
||||
list_for_each_entry(dsi_phy, &dsi_phy_list, list) {
|
||||
rc = msm_dss_get_io_mem(dsi_phy->phy->pdev, &io_res->mem);
|
||||
if (rc) {
|
||||
DSI_PHY_ERR(dsi_phy->phy,
|
||||
"failed to get io mem, rc = %d\n", rc);
|
||||
return rc;
|
||||
}
|
||||
}
|
||||
|
||||
mutex_unlock(&dsi_phy_list_lock);
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
static int dsi_phy_regmap_init(struct platform_device *pdev,
|
||||
struct msm_dsi_phy *phy)
|
||||
{
|
||||
|
在新工单中引用
屏蔽一个用户