aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging/ti-soc-thermal
diff options
context:
space:
mode:
authorEduardo Valentin <eduardo.valentin@ti.com>2013-04-08 08:19:11 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-04-08 10:35:08 -0700
commit21bf2202114eca29f6a637f49eddc4c0e73af050 (patch)
treec544491cc7034f952f68f2610382015d399cda6d /drivers/staging/ti-soc-thermal
parentb763fdaeaec8d9bf6c2fc17cac9afd641d9d8c23 (diff)
downloadlinux-21bf2202114eca29f6a637f49eddc4c0e73af050.tar.gz
staging: ti-soc-thermal: update OMAP5 extrapolation rules
Update the constants to the correct hotspot extrapolation equation constants. OMAP4 constants are revisited and correct. Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/ti-soc-thermal')
-rw-r--r--drivers/staging/ti-soc-thermal/omap5-thermal-data.c1
-rw-r--r--drivers/staging/ti-soc-thermal/ti-thermal.h16
2 files changed, 8 insertions, 9 deletions
diff --git a/drivers/staging/ti-soc-thermal/omap5-thermal-data.c b/drivers/staging/ti-soc-thermal/omap5-thermal-data.c
index f170211c6e2..eff0c80fd4a 100644
--- a/drivers/staging/ti-soc-thermal/omap5-thermal-data.c
+++ b/drivers/staging/ti-soc-thermal/omap5-thermal-data.c
@@ -314,7 +314,6 @@ omap5430_adc_to_temp[
};
/* OMAP54xx ES2.0 data */
-/* TODO : Need to update the slope/constant for ES2.0 silicon */
const struct ti_bandgap_data omap5430_data = {
.features = TI_BANDGAP_FEATURE_TSHUT_CONFIG |
TI_BANDGAP_FEATURE_FREEZE_BIT |
diff --git a/drivers/staging/ti-soc-thermal/ti-thermal.h b/drivers/staging/ti-soc-thermal/ti-thermal.h
index 47cc9026755..5055777727c 100644
--- a/drivers/staging/ti-soc-thermal/ti-thermal.h
+++ b/drivers/staging/ti-soc-thermal/ti-thermal.h
@@ -33,10 +33,10 @@
#define OMAP_GRADIENT_SLOPE_4470 308
#define OMAP_GRADIENT_CONST_4470 -7896
-#define OMAP_GRADIENT_SLOPE_5430_CPU 196
-#define OMAP_GRADIENT_CONST_5430_CPU -6822
-#define OMAP_GRADIENT_SLOPE_5430_GPU 64
-#define OMAP_GRADIENT_CONST_5430_GPU 978
+#define OMAP_GRADIENT_SLOPE_5430_CPU 65
+#define OMAP_GRADIENT_CONST_5430_CPU -1791
+#define OMAP_GRADIENT_SLOPE_5430_GPU 117
+#define OMAP_GRADIENT_CONST_5430_GPU -2992
/* PCB sensor calculation constants */
#define OMAP_GRADIENT_SLOPE_W_PCB_4430 0
@@ -46,10 +46,10 @@
#define OMAP_GRADIENT_SLOPE_W_PCB_4470 1063
#define OMAP_GRADIENT_CONST_W_PCB_4470 -477
-#define OMAP_GRADIENT_SLOPE_W_PCB_5430_CPU 469
-#define OMAP_GRADIENT_CONST_W_PCB_5430_CPU -1272
-#define OMAP_GRADIENT_SLOPE_W_PCB_5430_GPU 378
-#define OMAP_GRADIENT_CONST_W_PCB_5430_GPU 154
+#define OMAP_GRADIENT_SLOPE_W_PCB_5430_CPU 100
+#define OMAP_GRADIENT_CONST_W_PCB_5430_CPU 484
+#define OMAP_GRADIENT_SLOPE_W_PCB_5430_GPU 464
+#define OMAP_GRADIENT_CONST_W_PCB_5430_GPU -5102
/* trip points of interest in milicelsius (at hotspot level) */
#define OMAP_TRIP_COLD 100000