msm8610: init: Enable low power modes
Enable stand alone power collapse and power collapse for 8610 during idle and suspend. Change-Id: I260655a8ab7f1fa9e2dadc05114aa1ace09ddff8
This commit is contained in:
parent
8be4ee9f93
commit
d74a3a7059
|
@ -346,6 +346,51 @@ case "$target" in
|
|||
;;
|
||||
esac
|
||||
|
||||
case "$target" in
|
||||
"msm8610")
|
||||
echo 2 > /sys/module/lpm_resources/enable_low_power/l2
|
||||
echo 1 > /sys/module/lpm_resources/enable_low_power/pxo
|
||||
echo 1 > /sys/module/lpm_resources/enable_low_power/vdd_dig
|
||||
echo 1 > /sys/module/lpm_resources/enable_low_power/vdd_mem
|
||||
echo 1 > /sys/module/pm_8x60/modes/cpu0/power_collapse/suspend_enabled
|
||||
echo 1 > /sys/module/pm_8x60/modes/cpu1/power_collapse/suspend_enabled
|
||||
echo 1 > /sys/module/pm_8x60/modes/cpu2/power_collapse/suspend_enabled
|
||||
echo 1 > /sys/module/pm_8x60/modes/cpu3/power_collapse/suspend_enabled
|
||||
echo 1 > /sys/module/pm_8x60/modes/cpu0/standalone_power_collapse/suspend_enabled
|
||||
echo 1 > /sys/module/pm_8x60/modes/cpu1/standalone_power_collapse/suspend_enabled
|
||||
echo 1 > /sys/module/pm_8x60/modes/cpu2/standalone_power_collapse/suspend_enabled
|
||||
echo 1 > /sys/module/pm_8x60/modes/cpu3/standalone_power_collapse/suspend_enabled
|
||||
echo 1 > /sys/module/pm_8x60/modes/cpu0/standalone_power_collapse/idle_enabled
|
||||
echo 1 > /sys/module/pm_8x60/modes/cpu1/standalone_power_collapse/idle_enabled
|
||||
echo 1 > /sys/module/pm_8x60/modes/cpu2/standalone_power_collapse/idle_enabled
|
||||
echo 1 > /sys/module/pm_8x60/modes/cpu3/standalone_power_collapse/idle_enabled
|
||||
echo 1 > /sys/module/pm_8x60/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
|
||||
echo "ondemand" > /sys/devices/system/cpu/cpu0/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 4 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor
|
||||
echo 10 > /sys/devices/system/cpu/cpufreq/ondemand/down_differential
|
||||
echo 70 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold_multi_core
|
||||
echo 3 > /sys/devices/system/cpu/cpufreq/ondemand/down_differential_multi_core
|
||||
echo 300000 > /sys/devices/system/cpu/cpufreq/ondemand/optimal_freq
|
||||
echo 300000 > /sys/devices/system/cpu/cpufreq/ondemand/sync_freq
|
||||
echo 80 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold_any_cpu_load
|
||||
echo 300000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
|
||||
chown system /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
|
||||
chown system /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
|
||||
chown root.system /sys/devices/system/cpu/cpu1/online
|
||||
chown root.system /sys/devices/system/cpu/cpu2/online
|
||||
chown root.system /sys/devices/system/cpu/cpu3/online
|
||||
chmod 664 /sys/devices/system/cpu/cpu1/online
|
||||
chmod 664 /sys/devices/system/cpu/cpu2/online
|
||||
chmod 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
|
||||
|
|
Loading…
Reference in New Issue