fogos: Move thermal config to device tree
* Drop the unused configs. Change-Id: Ia9f3939ef90810825ce13841e9830ae09224530e
This commit is contained in:
parent
4dd1ef4d21
commit
161417391e
3 changed files with 191 additions and 4 deletions
187
configs/thermal-engine-fogos.conf
Normal file
187
configs/thermal-engine-fogos.conf
Normal file
|
@ -0,0 +1,187 @@
|
|||
#current 4 3.5 3 2.5 2 1.5 1.2 0.9 0.6
|
||||
# 9 8 7 6 5 4 3 2 1
|
||||
|
||||
#CPU0 frequency 300000 576000 691200 940800 1113600 1324800 1516800 1651200 1708800 1804800
|
||||
#CPU6 frequency 691200 940800 1228800 1401600 1516800 1651200 1804800 1900800 2054400 2208000
|
||||
|
||||
|
||||
[FRONT_TEMP]
|
||||
algo_type virtual
|
||||
trip_sensor xo_therm
|
||||
thresholds -18000
|
||||
thresholds_clr -20000
|
||||
sensors msm_therm quiet_therm battery
|
||||
weights 26 25 49
|
||||
offsets 0
|
||||
sampling 1000
|
||||
math 0
|
||||
sys_temp
|
||||
|
||||
[REPORT-FRONT-TEMP]
|
||||
algo_type monitor
|
||||
sampling 300000
|
||||
sensor FRONT_TEMP
|
||||
thresholds 45000
|
||||
thresholds_clr 43000
|
||||
actions report
|
||||
action_info 1
|
||||
|
||||
[BACK_TEMP]
|
||||
algo_type virtual
|
||||
trip_sensor xo_therm
|
||||
thresholds -18000
|
||||
thresholds_clr -20000
|
||||
sensors msm_therm quiet_therm battery
|
||||
weights 40 23 37
|
||||
offsets 0
|
||||
sampling 1000
|
||||
math 0
|
||||
sys_temp
|
||||
|
||||
[REPORT-BACK-TEMP]
|
||||
algo_type monitor
|
||||
sampling 300000
|
||||
sensor BACK_TEMP
|
||||
thresholds 45000
|
||||
thresholds_clr 43000
|
||||
actions report
|
||||
action_info 1
|
||||
|
||||
[DETECT-STANDBY]
|
||||
algo_type virtual
|
||||
trip_sensor quiet_therm
|
||||
thresholds -18000
|
||||
thersholds_clr -20000
|
||||
sensors cpu_utilization lcd_brightness_value
|
||||
weights 15 50
|
||||
sampling 1000
|
||||
less_than
|
||||
math 7
|
||||
|
||||
[OVERRIDE-CHG]
|
||||
algo_type monitor
|
||||
sampling 1000
|
||||
sensor DETECT-STANDBY
|
||||
thresholds 1
|
||||
thresholds_clr 0
|
||||
actions internal_override
|
||||
action_info 1
|
||||
|
||||
[FREEZE-CHG]
|
||||
algo_type monitor
|
||||
sampling 1000
|
||||
descending
|
||||
sensor DETECT-STANDBY
|
||||
thresholds 0
|
||||
thresholds_clr 1
|
||||
actions freeze_rule
|
||||
action_info 1
|
||||
|
||||
[Virt-MSM]
|
||||
algo_type virtual
|
||||
sensors msm_therm
|
||||
weights 100
|
||||
trip_sensor chg_therm
|
||||
thresholds 18000
|
||||
thresholds_clr 16000
|
||||
offsets 0
|
||||
sampling 1000
|
||||
math 0
|
||||
|
||||
[Virt-CHG]
|
||||
algo_type virtual
|
||||
sensors chg_therm
|
||||
weights 100
|
||||
trip_sensor msm_therm
|
||||
thresholds 18000
|
||||
thresholds_clr 16000
|
||||
offsets 0
|
||||
sampling 1000
|
||||
math 0
|
||||
|
||||
[Virt-QUT]
|
||||
algo_type virtual
|
||||
sensors quiet_therm
|
||||
weights 100
|
||||
trip_sensor xo_therm
|
||||
thresholds 18000
|
||||
thresholds_clr 16000
|
||||
offsets 0
|
||||
sampling 1000
|
||||
math 0
|
||||
|
||||
[MON-MSM-STB]
|
||||
algo_type monitor
|
||||
sampling 1000
|
||||
sensor Virt-QUT
|
||||
thresholds 36000 38000 39500 41000 42000 45000
|
||||
thresholds_clr 35000 37000 39000 39500 41500 43000
|
||||
actions battery battery battery battery battery battery
|
||||
action_info 8 7 6 5 4 3
|
||||
freezing
|
||||
|
||||
[MON-MSM-NORMAL]
|
||||
algo_type monitor
|
||||
sampling 1000
|
||||
sensor Virt-QUT
|
||||
thresholds 37000 39000 41000
|
||||
thresholds_clr 35000 37000 39000
|
||||
actions battery battery battery
|
||||
action_info 6 4 1
|
||||
override_c 14000
|
||||
|
||||
[MON-MSM-CPU0]
|
||||
algo_type monitor
|
||||
sampling 1000
|
||||
sensor BACK_TEMP
|
||||
thresholds 42000 44000 45000 47000 48000
|
||||
thresholds_clr 41000 43000 44000 46000 47000
|
||||
actions cpu0 cpu0 cpu0 cpu0 cpu0
|
||||
action_info 1708800 1651200 1516800 1324800 691200
|
||||
override_b 4000
|
||||
|
||||
[MON-MSM-CPU6]
|
||||
algo_type monitor
|
||||
sampling 1000
|
||||
sensor BACK_TEMP
|
||||
thresholds 42000 44000 46000 48000 48500
|
||||
thresholds_clr 41000 42000 44000 47000 48000
|
||||
actions cpu6 cpu6 cpu6 cpu6 cpu6
|
||||
action_info 2054400 1900800 1651200 1228800 691200
|
||||
override_b 4000
|
||||
|
||||
[MONITOR-CAMERA-MSM]
|
||||
algo_type monitor
|
||||
sampling 1000
|
||||
sensor Virt-QUT
|
||||
thresholds 55000 60000
|
||||
thresholds_clr 53000 55000
|
||||
actions camera camera
|
||||
action_info 1 2
|
||||
|
||||
[MON-MODEM]
|
||||
algo_type monitor
|
||||
sampling 1000
|
||||
sensor Virt-MSM
|
||||
thresholds 80000 85000
|
||||
thresholds_clr 78000 80000
|
||||
actions modem_skin modem_skin
|
||||
action_info 1 2
|
||||
|
||||
[MODEM-PA-FR]
|
||||
algo_type monitor
|
||||
sampling 5000
|
||||
sensor xo_therm
|
||||
thresholds 65000 70000
|
||||
thresholds_clr 60000 65000
|
||||
actions modem_pa_fr1 modem_pa_fr1
|
||||
action_info 1 2
|
||||
|
||||
[LCD-MONITOR]
|
||||
algo_type monitor
|
||||
sampling 1000
|
||||
sensor Virt-QUT
|
||||
thresholds 45000 46000 48000
|
||||
thresholds_clr 43000 45000 46000
|
||||
actions panel0-backlight panel0-backlight panel0-backlight
|
||||
action_info 1 300 500
|
|
@ -96,6 +96,10 @@ PRODUCT_COPY_FILES += \
|
|||
PRODUCT_COPY_FILES += \
|
||||
$(LOCAL_PATH)/configs/sensors/hals.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/hals.conf
|
||||
|
||||
# Thermal
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(LOCAL_PATH)/configs/thermal-engine-fogos.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine-fogos.conf
|
||||
|
||||
# Soong namespaces
|
||||
PRODUCT_SOONG_NAMESPACES += $(LOCAL_PATH)
|
||||
|
||||
|
|
|
@ -440,8 +440,4 @@ vendor/etc/sensors/proto/tcs3708.proto
|
|||
vendor/etc/sensors/sns_reg_config
|
||||
|
||||
# Thermal configs
|
||||
vendor/etc/thermal-engine-fogos-camera.conf
|
||||
vendor/etc/thermal-engine-fogos-game-normal.conf
|
||||
vendor/etc/thermal-engine-fogos-game-perf.conf
|
||||
vendor/etc/thermal-engine-fogos.conf
|
||||
vendor/etc/thermal-engine.conf
|
||||
|
|
Loading…
Reference in a new issue