gts3l-common: thermal: Add thermal-engine configs to the device tree

The default thermal-engine.conf file from the firmware is empty.
These file is from https://android.googlesource.com/device/google/marlin/+/refs/tags/android-10.0.0_r47

Signed-off-by: Deokgyu Yang <secugyu@gmail.com>
Change-Id: Ifcba085caadcc8a11f23861228b0ad446c077cad
This commit is contained in:
Deokgyu Yang 2021-08-30 02:22:14 +09:00
parent 9ca9eb9546
commit f7b8e79f3c
4 changed files with 125 additions and 1 deletions

View file

@ -0,0 +1,26 @@
[SKIN_SHUTDOWN]
algo_type monitor
sampling 1000
sensor emmc_therm
thresholds 62000
thresholds_clr 61000
actions shutdown
action_info 1
[VR-EMMC]
algo_type monitor
sensor emmc_therm
sampling 1000
thresholds 58000
thresholds_clr 52000
actions cluster0+cluster1+gpu+report
action_info 691200+691200+214000000+1
[BATTERY-MONITOR]
algo_type monitor
sampling 2000
sensor emmc_therm
thresholds 56000
thresholds_clr 54000
actions battery
action_info 3

View file

@ -0,0 +1,95 @@
[SKIN_SHUTDOWN]
algo_type monitor
sampling 1000
sensor emmc_therm
thresholds 62000
thresholds_clr 61000
actions shutdown
action_info 1
[THROTTLING-NOTIFY]
algo_type monitor
sampling 2000
sensor emmc_therm
thresholds 47000
thresholds_clr 44000
actions report
action_info 1
[SKIN-HIGH-FLOOR]
algo_type ss
sampling 2000
sensor emmc_therm
device cpu_voltage
set_point 47000
set_point_clr 44000
device_perf_floor 1670400
time_constant 0
[SKIN-MID-FLOOR]
algo_type ss
sampling 2000
sensor emmc_therm
device cpu_voltage
set_point 49000
set_point_clr 48000
device_perf_floor 1440000
time_constant 0
[SKIN-LOW-FLOOR]
algo_type ss
sampling 2000
sensor emmc_therm
device cpu_voltage
set_point 51000
set_point_clr 50000
device_perf_floor 1132800
time_constant 0
[SKIN-RESTRICT-FLOOR]
algo_type ss
sampling 2000
sensor emmc_therm
device cpu_voltage
set_point 54000
set_point_clr 52000
device_perf_floor 768000
time_constant 0
[SKIN-CRITICAL]
algo_type monitor
sensor emmc_therm
sampling 1000
thresholds 56000 58000
thresholds_clr 55000 57000
actions cluster0+cluster1+gpu+report cluster0+cluster1+gpu+report
action_info 691200+691200+133000000+1 307200+307200+133000000+1
[BATTERY-MONITOR]
algo_type monitor
sampling 2000
sensor emmc_therm
thresholds 56000
thresholds_clr 54000
actions battery
action_info 3
[HOT-SKIN-VIRTUAL]
algo_type virtual
trip_sensor emmc_therm
sensors tsens_tz_sensor15 tsens_tz_sensor0
list_cnt 2
weights 1 -1
set_point 47000
set_point_clr 44000
sampling 1000
math 0
[VIRTUAL-SS-GPU-SKIN]
algo_type ss
sensor HOT-SKIN-VIRTUAL
device gpu
sampling 2000
set_point 7000
set_point_clr 2000
device_max_limit 400000000

View file

@ -376,6 +376,10 @@ PRODUCT_PACKAGES += \
android.hardware.thermal@1.0-service \ android.hardware.thermal@1.0-service \
thermal.msm8996 thermal.msm8996
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/thermal-engine.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine.conf \
$(LOCAL_PATH)/configs/thermal-engine-vr.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine-vr.conf
# TextClassifier # TextClassifier
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
textclassifier.bundle1 textclassifier.bundle1

View file

@ -964,7 +964,6 @@ vendor/etc/sensors/sensor_def_qcomdev.conf
# Thermal # Thermal
vendor/bin/thermal-engine vendor/bin/thermal-engine
vendor/etc/thermal-engine.conf
vendor/lib/libthermalclient.so vendor/lib/libthermalclient.so
vendor/lib64/libthermalclient.so vendor/lib64/libthermalclient.so
vendor/lib64/libthermalioctl.so vendor/lib64/libthermalioctl.so