Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit df00b972 authored by David Collins's avatar David Collins Committed by Stephen Boyd
Browse files

msm: spm-regulator: Switch to PWM mode before increasing voltage



Change the voltage setting function so that if the PMIC regulator
starts out in AUTO mode, it is switched to PWM mode before
increasing the voltage set point of the regulator.  This ensures
that the output voltage steps up to the new set point as quickly
as possible.  If the regulator began in AUTO mode, then change
the mode back to AUTO after the final voltage has been reached so
that power consumption is minimized.

Read the voltage stepping control register during probe so that
an accurate step rate can be calculated.

It has been found that voltage transitions take a very long time
to complete if the regulator is configured for AUTO mode.  This
can result in crashes due to temporarily undervolting the APSS
cores.

Change-Id: If2d54bbff6a2d4789b8eb727c767053303976778
Signed-off-by: default avatarDavid Collins <collinsd@codeaurora.org>
parent 9124f553
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment