rhodep: Move thermal config to device tree
Change-Id: Ia9f3939ef90810825ce13841e9830ae09224530e
This commit is contained in:
parent
c90c568c19
commit
03f90e3eec
3 changed files with 124 additions and 1 deletions
120
configs/thermal-engine-rhodep.conf
Normal file
120
configs/thermal-engine-rhodep.conf
Normal file
|
@ -0,0 +1,120 @@
|
||||||
|
[VIRT-QUIET]
|
||||||
|
algo_type virtual
|
||||||
|
sensors quiet_therm
|
||||||
|
weights 100
|
||||||
|
trip_sensor chg_therm
|
||||||
|
thresholds 18000
|
||||||
|
thresholds_clr 16000
|
||||||
|
offsets 0
|
||||||
|
sampling 5000
|
||||||
|
math 0
|
||||||
|
|
||||||
|
[CHG-EXT-THERM_running]
|
||||||
|
algo_type monitor
|
||||||
|
sensor virtual-sensor-1
|
||||||
|
sampling 1000
|
||||||
|
polling_delay 0
|
||||||
|
passive_delay 0
|
||||||
|
thresholds 41000 43000 45000 46000 50000
|
||||||
|
thresholds_clr 39000 41000 43000 45000 46000
|
||||||
|
actions battery battery battery battery battery
|
||||||
|
action_info 07 06 04 03 01
|
||||||
|
|
||||||
|
[virtual-sensor-0]
|
||||||
|
algo_type virtual
|
||||||
|
trip_sensor msm_therm
|
||||||
|
set_point 43000
|
||||||
|
set_point_clr 39000
|
||||||
|
sensors quiet_therm msm_therm
|
||||||
|
weights 50 50
|
||||||
|
sampling 1000
|
||||||
|
|
||||||
|
[virtual-sensor-1]
|
||||||
|
algo_type virtual
|
||||||
|
trip_sensor msm_therm
|
||||||
|
set_point 30000
|
||||||
|
set_point_clr 20000
|
||||||
|
sensors quiet_therm msm_therm chg_therm
|
||||||
|
weights 30 60 10
|
||||||
|
sampling 1000
|
||||||
|
|
||||||
|
[MON-MSM-CLUSTER01]
|
||||||
|
algo_type monitor
|
||||||
|
sampling 1000
|
||||||
|
sensor virtual-sensor-0
|
||||||
|
thresholds 41000 42000 46000
|
||||||
|
thresholds_clr 40000 41000 45000
|
||||||
|
actions cpu0 cpu0 cpu0
|
||||||
|
action_info 1651200 1516800 1324800
|
||||||
|
override_b 4000
|
||||||
|
|
||||||
|
[MON-MSM-CLUSTER02]
|
||||||
|
algo_type monitor
|
||||||
|
sampling 1000
|
||||||
|
sensor virtual-sensor-0
|
||||||
|
thresholds 40000 41000 45000
|
||||||
|
thresholds_clr 39000 40000 41000
|
||||||
|
actions cpu6 cpu6 cpu6
|
||||||
|
action_info 1900800 1651200 1516800
|
||||||
|
override_b 4000
|
||||||
|
|
||||||
|
[MONITOR-CAMERA-MSM]
|
||||||
|
algo_type monitor
|
||||||
|
sampling 1000
|
||||||
|
sensor virtual-sensor-0
|
||||||
|
thresholds 41000 46000
|
||||||
|
thresholds_clr 40000 45000
|
||||||
|
actions camera camera
|
||||||
|
action_info 1 2
|
||||||
|
|
||||||
|
[FRONT_TEMP]
|
||||||
|
algo_type virtual
|
||||||
|
trip_sensor msm_therm
|
||||||
|
thresholds -18000
|
||||||
|
thresholds_clr -20000
|
||||||
|
sensors battery chg_therm msm_therm quiet_therm
|
||||||
|
weights 40 15 10 35
|
||||||
|
offsets -100 -200 0 -100
|
||||||
|
sampling 1000
|
||||||
|
math 0
|
||||||
|
sys_temp
|
||||||
|
|
||||||
|
[REPORT-FRONT-TEMP]
|
||||||
|
algo_type monitor
|
||||||
|
sampling 300000
|
||||||
|
sensor FRONT_TEMP
|
||||||
|
thresholds 46000
|
||||||
|
thresholds_clr 43000
|
||||||
|
actions report
|
||||||
|
action_info 1
|
||||||
|
|
||||||
|
[BACK_TEMP]
|
||||||
|
algo_type virtual
|
||||||
|
trip_sensor msm_therm
|
||||||
|
thresholds -18000
|
||||||
|
thresholds_clr -20000
|
||||||
|
sensors battery chg_therm msm_therm quiet_therm
|
||||||
|
weights 30 25 15 30
|
||||||
|
offsets -100 -200 -200 -100
|
||||||
|
sampling 1000
|
||||||
|
math 0
|
||||||
|
sys_temp
|
||||||
|
|
||||||
|
[REPORT-BACK-TEMP]
|
||||||
|
algo_type monitor
|
||||||
|
sampling 300000
|
||||||
|
sensor BACK_TEMP
|
||||||
|
thresholds 46000
|
||||||
|
thresholds_clr 43000
|
||||||
|
actions report
|
||||||
|
action_info 1
|
||||||
|
|
||||||
|
[MON-PDPOWER3]
|
||||||
|
algo_type monitor
|
||||||
|
sampling 1000
|
||||||
|
sensor virtual-sensor-1
|
||||||
|
thresholds 39500 42000 43000 45000 46000
|
||||||
|
thresholds_clr 38500 39500 42000 43000 45000
|
||||||
|
actions mmi_chrg_manager mmi_chrg_manager mmi_chrg_manager mmi_chrg_manager mmi_chrg_manager
|
||||||
|
action_info 6 5 3 2 1
|
||||||
|
freezing
|
|
@ -96,5 +96,9 @@ PRODUCT_COPY_FILES += \
|
||||||
# Soong namespaces
|
# Soong namespaces
|
||||||
PRODUCT_SOONG_NAMESPACES += $(LOCAL_PATH)
|
PRODUCT_SOONG_NAMESPACES += $(LOCAL_PATH)
|
||||||
|
|
||||||
|
# Thermal
|
||||||
|
PRODUCT_COPY_FILES += \
|
||||||
|
$(LOCAL_PATH)/configs/thermal-engine-rhodep.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine-rhodep.conf
|
||||||
|
|
||||||
# Inherit from vendor blobs
|
# Inherit from vendor blobs
|
||||||
$(call inherit-product, vendor/motorola/rhodep/rhodep-vendor.mk)
|
$(call inherit-product, vendor/motorola/rhodep/rhodep-vendor.mk)
|
||||||
|
|
|
@ -402,5 +402,4 @@ vendor/etc/sensors/proto/tcs3708.proto
|
||||||
vendor/etc/sensors/sns_reg_config
|
vendor/etc/sensors/sns_reg_config
|
||||||
|
|
||||||
# Thermal configs
|
# Thermal configs
|
||||||
vendor/etc/thermal-engine-rhodep.conf
|
|
||||||
vendor/etc/thermal-engine.conf
|
vendor/etc/thermal-engine.conf
|
||||||
|
|
Loading…
Reference in a new issue