Disable CX PC by dummy regulator vote

Change-Id: I045a77780249b78dd3dffae8f537a985739561c0
This commit is contained in:
Soumil Shah 2017-07-19 14:44:34 -07:00 committed by Gerrit - the friendly Code Review server
parent d5ed310649
commit 55b30d2fa7
1 changed files with 3 additions and 1 deletions

View File

@ -25,7 +25,6 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
target=`getprop ro.board.platform`
function configure_zram_parameters() {
@ -2455,6 +2454,9 @@ case "$target" in
echo 0 > /proc/sys/kernel/sched_boost
# Turn on sleep modes.
echo 0 > /sys/module/lpm_levels/parameters/sleep_disabled
#Disable CX PC
echo 49 385 > /d/regulator/soc:rpmh-regulator-cxlvl-pm8998_s9_level/voltage
echo 1 > /d/regulator/soc:rpmh-regulator-cxlvl-pm8998_s9_level/enable
;;
esac