init: qcom: post_boot.sh: enable low power modes for 8916.
Enable A53 supported low power modes(wfi, standalone power collapse, power collapse) by default for 8916. Change-Id: If1dd6bba4b57b11589fb6286fb6f68f29814f8d8
This commit is contained in:
parent
071d595209
commit
a80eccc88c
|
@ -334,6 +334,28 @@ case "$target" in
|
|||
;;
|
||||
esac
|
||||
|
||||
case "$target" in
|
||||
"msm8916")
|
||||
echo 4 > /sys/module/lpm_levels/enable_low_power/l2
|
||||
echo 1 > /sys/module/msm_pm/modes/cpu0/power_collapse/suspend_enabled
|
||||
echo 1 > /sys/module/msm_pm/modes/cpu1/power_collapse/suspend_enabled
|
||||
echo 1 > /sys/module/msm_pm/modes/cpu2/power_collapse/suspend_enabled
|
||||
echo 1 > /sys/module/msm_pm/modes/cpu3/power_collapse/suspend_enabled
|
||||
echo 1 > /sys/module/msm_pm/modes/cpu0/standalone_power_collapse/suspend_enabled
|
||||
echo 1 > /sys/module/msm_pm/modes/cpu1/standalone_power_collapse/suspend_enabled
|
||||
echo 1 > /sys/module/msm_pm/modes/cpu2/standalone_power_collapse/suspend_enabled
|
||||
echo 1 > /sys/module/msm_pm/modes/cpu3/standalone_power_collapse/suspend_enabled
|
||||
echo 1 > /sys/module/msm_pm/modes/cpu0/standalone_power_collapse/idle_enabled
|
||||
echo 1 > /sys/module/msm_pm/modes/cpu1/standalone_power_collapse/idle_enabled
|
||||
echo 1 > /sys/module/msm_pm/modes/cpu2/standalone_power_collapse/idle_enabled
|
||||
echo 1 > /sys/module/msm_pm/modes/cpu3/standalone_power_collapse/idle_enabled
|
||||
echo 1 > /sys/module/msm_pm/modes/cpu0/power_collapse/idle_enabled
|
||||
echo 1 > /sys/devices/system/cpu/cpu1/online
|
||||
echo 1 > /sys/devices/system/cpu/cpu2/online
|
||||
echo 1 > /sys/devices/system/cpu/cpu3/online
|
||||
;;
|
||||
esac
|
||||
|
||||
case "$target" in
|
||||
"msm8226")
|
||||
echo 4 > /sys/module/lpm_levels/enable_low_power/l2
|
||||
|
|
Loading…
Reference in New Issue