mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
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:
parent
cdcf81ac5b
commit
239a5c28be
1 changed files with 14 additions and 3 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue