From 4a4e76d1e83aea11917cb46141e6e2de4cb8d691 Mon Sep 17 00:00:00 2001 From: Blackbear Chou Date: Fri, 31 May 2024 18:10:06 +0800 Subject: [PATCH 1/2] dumpstate: touch: Init using touch_predump More info at go/touch_predump Test: Test locally on test device and check predump_touch works. Bug: 315239193 Change-Id: Ie06e91c68fc4af0fe58a1f5358793bffff2b02d8 Signed-off-by: Blackbear Chou --- device-tegu.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/device-tegu.mk b/device-tegu.mk index 09d7958..6be0918 100644 --- a/device-tegu.mk +++ b/device-tegu.mk @@ -57,7 +57,8 @@ include device/google/tegu/audio/tegu/audio-tables.mk include device/google/zumapro/device-shipping-common.mk include hardware/google/pixel/vibrator/cs40l26/device.mk include device/google/gs-common/bcmbt/bluetooth.mk -include device/google/gs-common/touch/syna/syna20.mk +include device/google/gs-common/touch/gti/predump_gti.mk +include device/google/gs-common/touch/syna/predump_syna20.mk # go/lyric-soong-variables $(call soong_config_set,lyric,camera_hardware,tegu) From 8f730bc92713aa30e6aa7b96157a7705e7ff94d4 Mon Sep 17 00:00:00 2001 From: "Peter (YM)" Date: Mon, 3 Jun 2024 04:03:27 +0000 Subject: [PATCH 2/2] thermal: usb thermal throttle in off charging mode Fix the issue that device not trigger usb throttle in off mode charging. Bug: 344445952 Test: Build and flash on device, verify with uart. Change-Id: Ic6d453b1cab4614f8f6b42a9b6f5fe521a98101d Signed-off-by: Peter (YM) --- thermal/thermal_info_config_charge_tegu.json | 29 ++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/thermal/thermal_info_config_charge_tegu.json b/thermal/thermal_info_config_charge_tegu.json index 72d2a54..feac279 100644 --- a/thermal/thermal_info_config_charge_tegu.json +++ b/thermal/thermal_info_config_charge_tegu.json @@ -182,6 +182,35 @@ "LimitInfo": [0, 1, 1, 1, 1, 26, 26] } ] + }, + { + "Name":"USB-MINUS-CHARGER", + "Type":"UNKNOWN", + "VirtualSensor":true, + "Formula":"WEIGHTED_AVG", + "Combination":["usb_pwr_therm", "charging_therm"], + "Coefficient":[1.0, -1.0], + "Multiplier":0.001 + }, + { + "Name":"VIRTUAL-USB-THROTTLING", + "Type":"USB_PORT", + "Version":"0.1", + "VirtualSensor":true, + "Formula":"COUNT_THRESHOLD", + "TriggerSensor": "usb_pwr_therm", + "Combination":["usb_pwr_therm", "USB-MINUS-CHARGER"], + "Coefficient":[46000, 7000], + "HotThreshold":["NAN", "NAN", "NAN", "NAN", "2.0", "NAN", "NAN"], + "BindedCdevInfo": [ + { + "CdevRequest": "usbc-port", + "LimitInfo": [0, 0, 0, 0, 1, 1, 1] + } + ], + "Multiplier":1, + "PollingDelay":300000, + "PassiveDelay":7000 } ], "CoolingDevices":[