[Feature]update mtk MR3.0 thermal file
Change-Id: I8d5252cccbe91c3926d48d271d10612fd68df1e7
diff --git a/meta/meta-mediatek-mt2735/recipes-extended/thermal_core/thermal-core.bb b/meta/meta-mediatek-mt2735/recipes-extended/thermal_core/thermal-core.bb
index 71da509..9287630 100644
--- a/meta/meta-mediatek-mt2735/recipes-extended/thermal_core/thermal-core.bb
+++ b/meta/meta-mediatek-mt2735/recipes-extended/thermal_core/thermal-core.bb
@@ -50,10 +50,10 @@
else
install -m 0755 ${S}usr/bin/thermal_core ${D}/usr/bin/
install -m 0755 ${S}usr/bin/thermal_intf ${D}/usr/bin/
- install -m 0644 ${WORKDIR}/thermal.conf ${D}/etc/thermal
- install -m 0644 ${WORKDIR}/disable_thermal.conf ${D}/etc/thermal
- install -m 0644 ${WORKDIR}/disable_throttling.conf ${D}/etc/thermal
- install -m 0644 ${WORKDIR}/disable_thermal_temp.conf ${D}/etc/thermal
+ install -m 0644 ${S}etc/thermal/thermal.conf ${D}/etc/thermal
+ install -m 0644 ${S}etc/thermal/disable_thermal.conf ${D}/etc/thermal
+ install -m 0644 ${S}etc/thermal/disable_throttling.conf ${D}/etc/thermal
+ install -m 0644 ${S}etc/thermal/disable_thermal_temp.conf ${D}/etc/thermal
fi
}
diff --git a/meta/meta-mediatek-mt2735/recipes-extended/thermal_core/thermal-core/thermal.conf b/meta/meta-mediatek-mt2735/recipes-extended/thermal_core/thermal-core/thermal.conf
index 7ffd0ee..c3f87bb 100644
--- a/meta/meta-mediatek-mt2735/recipes-extended/thermal_core/thermal-core/thermal.conf
+++ b/meta/meta-mediatek-mt2735/recipes-extended/thermal_core/thermal-core/thermal.conf
@@ -20,7 +20,7 @@
[LTF]
thermal_zone= ltepa_ntc
-mode= enabled
+mode= disabled
policy= step_wise
critical_temp= 115000
cooler= [mutt-pa1, tx-pwr-pa1, mutt-pa1-no-ims]
@@ -28,7 +28,7 @@
[LTF]
thermal_zone= nrpa_ntc
-mode= enabled
+mode= disabled
policy= step_wise
critical_temp= 115000
cooler= [mutt-pa2, tx-pwr-pa2, mutt-pa2-no-ims]
@@ -36,7 +36,7 @@
[LTF]
thermal_zone= rf_ntc
-mode= enabled
+mode= disabled
critical_temp= 115000
[LTF]
@@ -50,7 +50,7 @@
critical_temp= 125000
[mtk-md-off]
-mode= enabled
+mode= disabled
sensor= [ltepa_ntc, nrpa_ntc]
threshold= [100000, 100000]
hysteresis= [3000, 3000]
diff --git a/prebuilt/extended/thermal_core/thermal-core-1.0-r0.aarch64.rpm b/prebuilt/extended/thermal_core/thermal-core-1.0-r0.aarch64.rpm
index 5f71e01..018c97d 100755
--- a/prebuilt/extended/thermal_core/thermal-core-1.0-r0.aarch64.rpm
+++ b/prebuilt/extended/thermal_core/thermal-core-1.0-r0.aarch64.rpm
Binary files differ
diff --git a/prebuilt/extended/thermal_core/thermal-core-dev-1.0-r0.aarch64.rpm b/prebuilt/extended/thermal_core/thermal-core-dev-1.0-r0.aarch64.rpm
index 0edf7f9..63deab1 100755
--- a/prebuilt/extended/thermal_core/thermal-core-dev-1.0-r0.aarch64.rpm
+++ b/prebuilt/extended/thermal_core/thermal-core-dev-1.0-r0.aarch64.rpm
Binary files differ
diff --git a/src/kernel/linux/v4.19/drivers/thermal/mediatek/mtk_thermal_ipi.c b/src/kernel/linux/v4.19/drivers/thermal/mediatek/mtk_thermal_ipi.c
index f7c076f..ea46a10 100644
--- a/src/kernel/linux/v4.19/drivers/thermal/mediatek/mtk_thermal_ipi.c
+++ b/src/kernel/linux/v4.19/drivers/thermal/mediatek/mtk_thermal_ipi.c
@@ -51,7 +51,7 @@
}
while (!kthread_should_stop()) {
- mtk_ipi_recv(&sspm_ipidev, IPIR_C_THERMAL);
+ mtk_ipi_recv_reply(&sspm_ipidev, IPIR_C_THERMAL, (void *)&g_ipi_reply, 1);
}
return 0;