Differentiate QC values for HI6250 and HI36x0 platform (#18)

The previous set values are not compatible over HI6250 platform.
They were causing thermal issues.
This differentiation is needed to avoid the "hot-pan" occurrence.
Tested on ANE-LX1.
This commit is contained in:
Dil3mm4 2018-07-09 08:29:30 +02:00 committed by Pierre-Hugues HUSSON
parent 361aedfd20
commit db80eb1c21
2 changed files with 16 additions and 2 deletions

View File

@ -28,3 +28,11 @@ if getprop ro.hardware |grep -qiE qcom;then
FOUND_QCOM=1 FOUND_QCOM=1
setprop persist.sys.overlay.devinputjack true setprop persist.sys.overlay.devinputjack true
fi fi
if ( getprop ro.hardware | grep -qE '(hi6250)' );then
setprop QC.HI6250 1
fi
if ( getprop ro.hardware | grep -qE '(hi3660|hi3670|kirin970)' );then
setprop QC.HI36x0 1
fi

10
vndk.rc
View File

@ -10,6 +10,12 @@ service phh_service_cleaner /system/bin/service-cleaner.sh
on property:sys.boot_completed=1 on property:sys.boot_completed=1
start phh_service_cleaner start phh_service_cleaner
write /sys/class/hw_power/charger/direct_charger/iin_thermal 4500
write /sys/class/hw_power/charger/charge_data/iin_thermal 2000
exec u:r:phhsu_daemon:s0 root -- /system/bin/bootctl mark-boot-successful exec u:r:phhsu_daemon:s0 root -- /system/bin/bootctl mark-boot-successful
on property:QC.HI6250=1
write /sys/class/hw_power/charger/direct_charger/iin_thermal 2750
write /sys/class/hw_power/charger/charge_data/iin_thermal 1000
on property:QC.HI36x0=1
write /sys/class/hw_power/charger/direct_charger/iin_thermal 4000
write /sys/class/hw_power/charger/charge_data/iin_thermal 2000