mediatek: consider adc_oe thermal calibration value in efuse
The use of the adc_oe value stored in the efuse has been dropped in MediaTek's SDK during a recent refactorization of the temperature calculation formula. Don't ignore this offset value and again include it in raw-to-deg-celsius calculation. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
parent
08e153c3c3
commit
e131a66e30
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
|
||||||
+ tmp = 100000 * 15 / 16 * 10000;
|
+ tmp = 100000 * 15 / 16 * 10000;
|
||||||
+ tmp /= 4096 - 512 + mt->adc_ge;
|
+ tmp /= 4096 - 512 + mt->adc_ge;
|
||||||
+ tmp /= 1490;
|
+ tmp /= 1490;
|
||||||
+ tmp *= raw - mt->vts[sensno] - 2900;
|
+ tmp *= raw - mt->vts[sensno] - 2900 - mt->adc_oe + 512;
|
||||||
+
|
+
|
||||||
+ return mt->degc_cali * 500 - tmp;
|
+ return mt->degc_cali * 500 - tmp;
|
||||||
+}
|
+}
|
||||||
|
|
Loading…
Reference in a new issue