init.qcom.post_boot: Include Low power modes for MPQ8092
Enable Low power modes in MPQ8092 Change-Id: I49a0297e00701d9263d4cedc9dd9cfdd01f1086f
This commit is contained in:
parent
db2e9d0b7b
commit
47bbb955c8
|
@ -492,6 +492,58 @@ case "$target" in
|
|||
;;
|
||||
esac
|
||||
|
||||
case "$target" in
|
||||
"mpq8092")
|
||||
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/power_collapse/idle_enabled
|
||||
echo 1 > /sys/module/msm_pm/modes/cpu1/power_collapse/idle_enabled
|
||||
echo 1 > /sys/module/msm_pm/modes/cpu2/power_collapse/idle_enabled
|
||||
echo 1 > /sys/module/msm_pm/modes/cpu3/power_collapse/idle_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/retention/idle_enabled
|
||||
echo 1 > /sys/module/msm_pm/modes/cpu1/retention/idle_enabled
|
||||
echo 1 > /sys/module/msm_pm/modes/cpu2/retention/idle_enabled
|
||||
echo 1 > /sys/module/msm_pm/modes/cpu3/retention/idle_enabled
|
||||
echo 0 > /sys/module/msm_thermal/core_control/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
|
||||
echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
|
||||
echo "ondemand" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
|
||||
echo "ondemand" > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
|
||||
echo "ondemand" > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor
|
||||
echo 50000 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate
|
||||
echo 90 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
|
||||
echo 1 > /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy
|
||||
echo 300000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
|
||||
echo 300000 > /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq
|
||||
echo 300000 > /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq
|
||||
echo 300000 > /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq
|
||||
echo 1 > /sys/module/msm_thermal/core_control/enabled
|
||||
chown -h system /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
|
||||
chown -h system /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
|
||||
chown -h root.system /sys/devices/system/cpu/mfreq
|
||||
chmod -h 220 /sys/devices/system/cpu/mfreq
|
||||
chown -h root.system /sys/devices/system/cpu/cpu1/online
|
||||
chown -h root.system /sys/devices/system/cpu/cpu2/online
|
||||
chown -h root.system /sys/devices/system/cpu/cpu3/online
|
||||
chmod -h 664 /sys/devices/system/cpu/cpu1/online
|
||||
chmod -h 664 /sys/devices/system/cpu/cpu2/online
|
||||
chmod -h 664 /sys/devices/system/cpu/cpu3/online
|
||||
;;
|
||||
esac
|
||||
|
||||
case "$target" in
|
||||
"msm7627_ffa" | "msm7627_surf" | "msm7627_6x")
|
||||
echo 25000 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate
|
||||
|
@ -535,7 +587,7 @@ esac
|
|||
|
||||
# Post-setup services
|
||||
case "$target" in
|
||||
"msm8660" | "msm8960" | "msm8226" | "msm8610")
|
||||
"msm8660" | "msm8960" | "msm8226" | "msm8610" | "mpq8092")
|
||||
start mpdecision
|
||||
;;
|
||||
"msm8974")
|
||||
|
|
Loading…
Reference in New Issue