summaryrefslogtreecommitdiff
path: root/thermal
diff options
context:
space:
mode:
authorGeorge Lee <geolee@google.com>2021-06-01 15:52:22 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2021-06-01 15:52:22 +0000
commit22b498e10a05f42fbb7b4a2f91a56356db127eb9 (patch)
treeb9e3ac97b307227cf9c5533a88af3f176f5350e7 /thermal
parent1c7267a8219cb877fc4041b5ecee49c032e41f21 (diff)
parentf23ac0ef8be0bf1836cec01f5f2f3e43e523cdfc (diff)
downloadpixel-22b498e10a05f42fbb7b4a2f91a56356db127eb9.tar.gz
Merge changes from topic "disable_bcl" into sc-dev
* changes: thermal: add disable.bcl.control prop health: Read bcl control before toggle soc mode
Diffstat (limited to 'thermal')
-rw-r--r--thermal/pixel-thermal-logd.rc10
1 files changed, 10 insertions, 0 deletions
diff --git a/thermal/pixel-thermal-logd.rc b/thermal/pixel-thermal-logd.rc
index b03778dd..567ff0b2 100644
--- a/thermal/pixel-thermal-logd.rc
+++ b/thermal/pixel-thermal-logd.rc
@@ -23,6 +23,9 @@ on property:persist.vendor.disable.usb.overheat.mitigation=*
on property:persist.vendor.disable.thermal.tj.control=*
setprop vendor.disable.thermal.tj.control ${persist.vendor.disable.thermal.tj.control}
+on property:persist.vendor.disable.bcl.control=*
+ setprop vendor.disable.bcl.control ${persist.vendor.disable.bcl.control}
+
on property:vendor.disable.thermal.control=1 && property:vendor.thermal.link_ready=1
# common
stop vendor.thermal-engine
@@ -116,6 +119,13 @@ on property:vendor.disable.thermal.tj.control=0
write /dev/thermal/tz-by-name/TPU/mode enabled
write /sys/kernel/debug/gs101-thermal/emul_call 0
+# Toggle BCL control
+on property:vendor.disable.bcl.control=1
+ write /dev/thermal/tz-by-name/soc/mode disabled
+
+on property:vendor.disable.bcl.control=0
+ write /dev/thermal/tz-by-name/soc/mode enabled
+
# Switch USB port overheat protection
on property:vendor.disable.usb.overheat.mitigation.control=1
write /sys/module/overheat_mitigation/parameters/enable 0