thermal: Add porg config

Change-Id: I325615001ae0f9af2c5fb7046bff32ed8b888eee
This commit is contained in:
Aaron Kling committed 2022-03-02 14:27:41 -06:00
1 parent 4a2b7ce643
commit e8da76f4d0
3 files changed
+57

No files matched your search

+3
View File
@@ -223,6 +223,7 @@ PRODUCT_PACKAGES += \
# Thermal
PRODUCT_PACKAGES += \
android.hardware.thermal@1.0-service-nvidia \
thermalhal.batuu.xml \
thermalhal.darcy.xml \
thermalhal.icosa.xml \
thermalhal.icosa_emmc.xml \
@@ -230,6 +231,8 @@ PRODUCT_PACKAGES += \
thermalhal.jetson_e.xml \
thermalhal.loki_e_lte.xml \
thermalhal.loki_e_wifi.xml \
thermalhal.porg.xml \
thermalhal.porg_sd.xml \
thermalhal.sif.xml
# Treble workaround
+24
View File
@@ -14,6 +14,14 @@
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := thermalhal.batuu.xml
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := thermalhal.porg.xml
LOCAL_VENDOR_MODULE := true
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := thermalhal.darcy.xml
LOCAL_MODULE_TAGS := optional
@@ -70,6 +78,22 @@ LOCAL_SRC_FILES := thermalhal.loki_e.xml
LOCAL_VENDOR_MODULE := true
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := thermalhal.porg.xml
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := thermalhal.porg.xml
LOCAL_VENDOR_MODULE := true
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := thermalhal.porg_sd.xml
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := thermalhal.porg.xml
LOCAL_VENDOR_MODULE := true
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := thermalhal.sif.xml
LOCAL_MODULE_TAGS := optional
+30
View File
@@ -0,0 +1,30 @@
<!--ThermalHAL Config
Attributes for thermal
These must be declared as a 'thermal-prop' element node
Attributes:
name - name of thermal device
type - type defined by AOSP
sensor-label - tz name
multiplier - converting factor to degree Celsius
cores - only for CPU type
threshold-label - to use a different temperature threshold
Attributes for cooling
These must be declared as a 'cooling-prop' element node
name - name of cooling device
type - type defined by AOSP
cooling-path - node that represents cooling state
Attributes for cpu-usages
These must be part of 'cpu_usages' element node
cpus - number of cpus in the platform-->
<thermalhal>
<thermal_devices>
<thermal_device>
<thermal-prop name="CPU" type="DEVICE_TEMPERATURE_CPU" sensor-label="CPU-therm" multiplier='0.001' />
<thermal-prop cores='4' />
</thermal_device>
<thermal_device>
<thermal-prop name="GPU" type="DEVICE_TEMPERATURE_GPU" sensor-label="GPU-therm" multiplier='0.001' />
</thermal_device>
</thermal_devices>
<cpu_usages cpus="4" />
</thermalhal>