Enable Krait Bus DCVS Driver for 8974 Pro
Enable Krait Bus DCVS if soc_id matches 8974 Pro (includes Pro AA/AB/AC) Change-Id: Ib8799cc9c404378bb1ebc8607df1ca23ee40f435
This commit is contained in:
parent
f3c6eb0ad1
commit
6ccd6fee74
|
@ -270,6 +270,16 @@ case "$target" in
|
|||
echo 1 > /sys/devices/system/cpu/cpu1/online
|
||||
echo 1 > /sys/devices/system/cpu/cpu2/online
|
||||
echo 1 > /sys/devices/system/cpu/cpu3/online
|
||||
if [ -f /sys/devices/soc0/soc_id ]; then
|
||||
soc_id=`cat /sys/devices/soc0/soc_id`
|
||||
else
|
||||
soc_id=`cat /sys/devices/system/soc/soc0/id`
|
||||
fi
|
||||
case "$soc_id" in
|
||||
"208" | "211" | "214" | "217" | "209" | "212" | "215" | "218" | "194" | "210" | "213" | "216")
|
||||
echo 1 > /sys/module/cpubw_krait/parameters/enable
|
||||
;;
|
||||
esac
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue