init.qcom.post_boot.sh: Enable all the LPMs by default

Enable all the LPMs by default except D3 state.

Change-Id: I572f611ed47d019ebe9b22f5a0e300db06051269
This commit is contained in:
Murali Nalajala 2015-07-02 13:30:41 -07:00
parent c6f009eb47
commit fc2a3db563
1 changed files with 2 additions and 14 deletions

View File

@ -995,22 +995,10 @@ case "$target" in
soc_revision=`cat /sys/devices/soc0/revision`
if [ "$soc_revision" == "2.1" ]; then
# Disable C4, D3, D4 and M3 LPMs
echo 0 > /sys/module/lpm_levels/system/pwr/cpu0/fpc/idle_enabled
echo 0 > /sys/module/lpm_levels/system/pwr/cpu1/fpc/idle_enabled
echo 0 > /sys/module/lpm_levels/system/perf/cpu2/fpc/idle_enabled
echo 0 > /sys/module/lpm_levels/system/perf/cpu3/fpc/idle_enabled
# Enable C4.D4.E4.M3 LPM modes
# Disable D3 state
echo 0 > /sys/module/lpm_levels/system/pwr/pwr-l2-gdhs/idle_enabled
echo 0 > /sys/module/lpm_levels/system/pwr/pwr-l2-fpc/idle_enabled
echo 0 > /sys/module/lpm_levels/system/perf/perf-l2-gdhs/idle_enabled
echo 0 > /sys/module/lpm_levels/system/perf/perf-l2-fpc/idle_enabled
echo 0 > /sys/module/lpm_levels/system/system-fpc/idle_enabled
# Enable C4 LPM mode
echo 1 > /sys/module/lpm_levels/system/pwr/cpu0/fpc/idle_enabled
echo 1 > /sys/module/lpm_levels/system/pwr/cpu1/fpc/idle_enabled
echo 1 > /sys/module/lpm_levels/system/perf/cpu2/fpc/idle_enabled
echo 1 > /sys/module/lpm_levels/system/perf/cpu3/fpc/idle_enabled
echo N > /sys/module/lpm_levels/parameters/sleep_disabled
else
#Disable suspend for v1.0 and v2.0