diff --git a/thermal_info_config_cheetah.json b/thermal_info_config_cheetah.json index 9b45769..f0c7896 100644 --- a/thermal_info_config_cheetah.json +++ b/thermal_info_config_cheetah.json @@ -259,19 +259,39 @@ "Name":"USB-MINUS-USB2", "Type":"UNKNOWN", "VirtualSensor":true, + "TriggerSensor": "usb_pwr_therm", "Formula":"WEIGHTED_AVG", "Combination":["usb_pwr_therm", "usb_pwr_therm2"], "Coefficient":[1.0, -1.0], - "Multiplier":0.001 + "HotThreshold":["NAN", "2.0", "NAN", "NAN", "NAN", "NAN", "NAN"], + "BindedCdevInfo": [ + { + "CdevRequest": "usbc-port", + "LimitInfo": [0, 0, 0, 0, 0, 0, 0] + } + ], + "Multiplier":0.001, + "PollingDelay":0, + "PassiveDelay":7000 }, { "Name":"USB-MINUS-NEUTRAL", "Type":"UNKNOWN", "VirtualSensor":true, + "TriggerSensor": "usb_pwr_therm", "Formula":"WEIGHTED_AVG", "Combination":["usb_pwr_therm", "neutral_therm"], "Coefficient":[1.0, -1.0], - "Multiplier":0.001 + "HotThreshold":["NAN", "4.5", "NAN", "NAN", "NAN", "NAN", "NAN"], + "BindedCdevInfo": [ + { + "CdevRequest": "usbc-port", + "LimitInfo": [0, 0, 0, 0, 0, 0, 0] + } + ], + "Multiplier":0.001, + "PollingDelay":0, + "PassiveDelay":7000 }, { "Name":"VIRTUAL-USB-THROTTLING", @@ -288,7 +308,6 @@ "LimitInfo": [0, 0, 0, 0, 1, 1, 1] } ], - "VrThreshold":"NAN", "Multiplier":1, "PollingDelay":60000, "PassiveDelay":7000 @@ -302,7 +321,6 @@ "Combination":["usb_pwr_therm", "USB-MINUS-USB2", "USB-MINUS-NEUTRAL"], "Coefficient":[43500, 2800, 6000], "HotThreshold":["NAN", "NAN", "NAN", "NAN", "NAN", "3.0", "NAN"], - "VrThreshold":"NAN", "Multiplier":1, "Monitor":true, "PollingDelay":60000, diff --git a/thermal_info_config_panther.json b/thermal_info_config_panther.json index e0ebfa1..65fa9a0 100644 --- a/thermal_info_config_panther.json +++ b/thermal_info_config_panther.json @@ -259,19 +259,39 @@ "Name":"USB-MINUS-USB2", "Type":"UNKNOWN", "VirtualSensor":true, + "TriggerSensor": "usb_pwr_therm", "Formula":"WEIGHTED_AVG", "Combination":["usb_pwr_therm", "usb_pwr_therm2"], "Coefficient":[1.0, -1.0], - "Multiplier":0.001 + "HotThreshold":["NAN", "1.0", "NAN", "NAN", "NAN", "NAN", "NAN"], + "BindedCdevInfo": [ + { + "CdevRequest": "usbc-port", + "LimitInfo": [0, 0, 0, 0, 0, 0, 0] + } + ], + "Multiplier":0.001, + "PollingDelay":0, + "PassiveDelay":7000 }, { "Name":"USB-MINUS-NEUTRAL", "Type":"UNKNOWN", "VirtualSensor":true, + "TriggerSensor": "usb_pwr_therm", "Formula":"WEIGHTED_AVG", "Combination":["usb_pwr_therm", "neutral_therm"], "Coefficient":[1.0, -1.0], - "Multiplier":0.001 + "HotThreshold":["NAN", "2.5", "NAN", "NAN", "NAN", "NAN", "NAN"], + "BindedCdevInfo": [ + { + "CdevRequest": "usbc-port", + "LimitInfo": [0, 0, 0, 0, 0, 0, 0] + } + ], + "Multiplier":0.001, + "PollingDelay":0, + "PassiveDelay":7000 }, { "Name":"VIRTUAL-USB-THROTTLING", @@ -288,7 +308,6 @@ "LimitInfo": [0, 0, 0, 0, 1, 1, 1] } ], - "VrThreshold":"NAN", "Multiplier":1, "PollingDelay":60000, "PassiveDelay":7000 @@ -302,7 +321,6 @@ "Combination":["usb_pwr_therm", "USB-MINUS-USB2", "USB-MINUS-NEUTRAL"], "Coefficient":[42000, 2000, 4000], "HotThreshold":["NAN", "NAN", "NAN", "NAN", "NAN", "3.0", "NAN"], - "VrThreshold":"NAN", "Multiplier":1, "Monitor":true, "PollingDelay":60000, diff --git a/uwb/uwb_calibration.mk b/uwb/uwb_calibration.mk index 29ac73e..5de1ffc 100644 --- a/uwb/uwb_calibration.mk +++ b/uwb/uwb_calibration.mk @@ -17,11 +17,13 @@ $(call inherit-product-if-exists, vendor/qorvo/uwb/uwb.mk) LOCAL_UWB_CAL_DIR=device/google/pantah/uwb +VENDOR_UWB_DIR=vendor/qorvo/uwb/aosp PRODUCT_COPY_FILES += \ $(LOCAL_UWB_CAL_DIR)/UWB-calibration.conf:$(TARGET_COPY_OUT_VENDOR)/etc/uwb/UWB-calibration.conf \ $(LOCAL_UWB_CAL_DIR)/UWB-calibration.conf:$(TARGET_COPY_OUT_VENDOR)/etc/uwb/UWB-calibration-unknown.conf \ $(LOCAL_UWB_CAL_DIR)/UWB-calibration.conf:$(TARGET_COPY_OUT_VENDOR)/etc/uwb/UWB-calibration-default.conf \ + $(VENDOR_UWB_DIR)/init.uwb.calib.xtal.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.uwb.calib.sh \ PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.hardware.uwb.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.uwb.xml