sunxi: Add OPP table, cpu voltage control, cpu thermal sensor for Xunlong Orange Pi PC
Temperature info:
cat /sys/class/thermal/thermal_zone0/temp
Scaling governors info (performance or powersave):
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo "powersave" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
Warning! For hard working system active cooling must be
Tests resulte with stress [menuconfig>tools>stress]:
Temp after test with passive cooling (aluminum heat sink) about 78-82C
Idle temp about 30-36C
for i in 480000 816000
1008000 1296000 1440000 ; do
echo "cur temp: `cat /sys/class/thermal/thermal_zone0/temp`"
echo "set freq to: " $i
echo $i >/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
stress -t 300 --cpu 4 --vm 2 --vm-bytes 512MB --io 4
echo "temp after test: `cat /sys/class/thermal/thermal_zone0/temp`"
sleep 60
done
Signed-off-by: Vitalij Alshevsky <v_alshevsky@tut.by>