summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorDhaval Patel <pdhaval@codeaurora.org>2015-02-05 22:54:41 -0800
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:37:50 -0700
commit8a94fa17583c8fabe7db4fd7ae049bd018a2e131 (patch)
treed8e324ad3b6bbc7dbd6c4fe16480c3ec760926d2 /drivers
parentabb0f055e1a3b6e2cc5efbd976be804f96c8ad5a (diff)
msm: mdss: update regulator io as optional property
regulator io is optional property for thulium target. Update dsi driver accordingly. Change-Id: I745309e2028dbd0c5cefdea8e194086134b6bca7 Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/fbdev/msm/mdss_dsi.c25
1 files changed, 14 insertions, 11 deletions
diff --git a/drivers/video/fbdev/msm/mdss_dsi.c b/drivers/video/fbdev/msm/mdss_dsi.c
index f6f26dceb0ff..2f43e834bfb9 100644
--- a/drivers/video/fbdev/msm/mdss_dsi.c
+++ b/drivers/video/fbdev/msm/mdss_dsi.c
@@ -1727,18 +1727,18 @@ int mdss_dsi_retrieve_ctrl_resources(struct platform_device *pdev, int mode,
rc = msm_dss_ioremap_byname(pdev,
&ctrl->shared_ctrl_data->phy_regulator_io,
"dsi_phy_regulator");
- if (rc) {
- pr_err("%s:%d unable to remap dsi phy regulator resources\n",
+ if (rc)
+ pr_debug("%s:%d unable to remap dsi phy regulator resources\n",
__func__, __LINE__);
- return rc;
- }
+ else
+ pr_info("%s: phy_regulator_base=%p phy_regulator_size=%x\n",
+ __func__,
+ ctrl->shared_ctrl_data->phy_regulator_io.base,
+ ctrl->shared_ctrl_data->phy_regulator_io.len);
pr_info("%s: ctrl_base=%p ctrl_size=%x phy_base=%p phy_size=%x\n",
__func__, ctrl->ctrl_base, ctrl->reg_size, ctrl->phy_io.base,
ctrl->phy_io.len);
- pr_info("%s: phy_regulator_base=%p phy_regulator_size=%x\n", __func__,
- ctrl->shared_ctrl_data->phy_regulator_io.base,
- ctrl->shared_ctrl_data->phy_regulator_io.len);
rc = msm_dss_ioremap_byname(pdev, &ctrl->mmss_misc_io,
"mmss_misc_phys");
@@ -1847,6 +1847,7 @@ int dsi_panel_device_register(struct device_node *pan_node,
__func__, __LINE__);
return -EINVAL;
}
+
for (i = 0; i < len; i++) {
pinfo->mipi.dsi_phy_db.bistctrl[i] = data[i];
}
@@ -2046,14 +2047,16 @@ int dsi_panel_device_register(struct device_node *pan_node,
if (pinfo->pdest == DISPLAY_1) {
mdss_debug_register_io("dsi0_ctrl", &ctrl_pdata->ctrl_io);
mdss_debug_register_io("dsi0_phy", &ctrl_pdata->phy_io);
- mdss_debug_register_io("dsi0_phy_regulator",
- &ctrl_pdata->shared_ctrl_data->phy_regulator_io);
+ if (ctrl_pdata->shared_ctrl_data->phy_regulator_io.len)
+ mdss_debug_register_io("dsi0_phy_regulator",
+ &ctrl_pdata->shared_ctrl_data->phy_regulator_io);
ctrl_pdata->ndx = 0;
} else {
mdss_debug_register_io("dsi1_ctrl", &ctrl_pdata->ctrl_io);
mdss_debug_register_io("dsi1_phy", &ctrl_pdata->phy_io);
- mdss_debug_register_io("dsi1_phy_regulator",
- &ctrl_pdata->shared_ctrl_data->phy_regulator_io);
+ if (ctrl_pdata->shared_ctrl_data->phy_regulator_io.len)
+ mdss_debug_register_io("dsi1_phy_regulator",
+ &ctrl_pdata->shared_ctrl_data->phy_regulator_io);
ctrl_pdata->ndx = 1;
}