msm: krait-regulator: set LDO 50mV below the requested voltage

The requests to the krait ldos are not for the voltage
on the krait. Instead these requests are for the minimum
voltage on the pmic gang to support that krait's chosen frequency.

Update the LDO threshold such that we switch to LDO only for pmic
gang requests below 0.85 volts. This voltage request on the pmic is
low enough to warrant a switch to LDO.

Note that 0.85 volts at the pmic could be requested for multiple
dcvs points. We don't know how much voltage is expected at the krait
in such a case. Set the LDO output to 50mV lesser than the requested
pmic gang voltage.

Change-Id: Ia93e336901a208a4f017fff30e9c5ac7d8b13102
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
3 files changed