msm_fb: display: Set HDMI PLL footswitch regulator to 1.8V after get()

After regulator_get call for HDMI PLL footswitch purpose, set
output voltage to 1.8 V to ensure proper state while enabling and
disabling regulator.

Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org>
Change-Id: Ifdd0cdbf614524b53038074b943cca65b71bbd24
This commit is contained in:
Ravishangar Kalyanam 2012-06-29 12:27:49 -07:00 committed by Stephen Boyd
parent cdcf81ac5b
commit 239a5c28be

View file

@ -2123,15 +2123,26 @@ static int mdp_irq_clk_setup(struct platform_device *pdev,
disable_irq(mdp_irq);
hdmi_pll_fs = regulator_get(&pdev->dev, "hdmi_pll_fs");
if (IS_ERR(hdmi_pll_fs))
if (IS_ERR(hdmi_pll_fs)) {
hdmi_pll_fs = NULL;
} else {
if (mdp_rev != MDP_REV_44) {
ret = regulator_set_voltage(hdmi_pll_fs, 1800000,
1800000);
if (ret) {
pr_err("set_voltage failed for hdmi_pll_fs, ret=%d\n",
ret);
}
}
}
footswitch = regulator_get(&pdev->dev, "vdd");
if (IS_ERR(footswitch))
if (IS_ERR(footswitch)) {
footswitch = NULL;
else {
} else {
if (hdmi_pll_fs)
regulator_enable(hdmi_pll_fs);
regulator_enable(footswitch);
mdp_footswitch_on = 1;