Commit b763fdae authored by Eduardo Valentin's avatar Eduardo Valentin Committed by Greg Kroah-Hartman

staging: ti-soc-thermal: introduce OMAP4430 extrapolation constants

This patch defines and utilizes the extrapolation constants for OMAP4430.
Signed-off-by: default avatarEduardo Valentin <eduardo.valentin@ti.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0359090e
...@@ -82,10 +82,10 @@ const struct ti_bandgap_data omap4430_data = { ...@@ -82,10 +82,10 @@ const struct ti_bandgap_data omap4430_data = {
.registers = &omap4430_mpu_temp_sensor_registers, .registers = &omap4430_mpu_temp_sensor_registers,
.ts_data = &omap4430_mpu_temp_sensor_data, .ts_data = &omap4430_mpu_temp_sensor_data,
.domain = "cpu", .domain = "cpu",
.slope = 0, .slope = OMAP_GRADIENT_SLOPE_4430,
.constant = 20000, .constant = OMAP_GRADIENT_CONST_4430,
.slope_pcb = 0, .slope_pcb = OMAP_GRADIENT_SLOPE_W_PCB_4430,
.constant_pcb = 20000, .constant_pcb = OMAP_GRADIENT_CONST_W_PCB_4430,
.register_cooling = ti_thermal_register_cpu_cooling, .register_cooling = ti_thermal_register_cpu_cooling,
.unregister_cooling = ti_thermal_unregister_cpu_cooling, .unregister_cooling = ti_thermal_unregister_cpu_cooling,
}, },
......
...@@ -26,6 +26,8 @@ ...@@ -26,6 +26,8 @@
#include "ti-bandgap.h" #include "ti-bandgap.h"
/* sensors gradient and offsets */ /* sensors gradient and offsets */
#define OMAP_GRADIENT_SLOPE_4430 0
#define OMAP_GRADIENT_CONST_4430 20000
#define OMAP_GRADIENT_SLOPE_4460 348 #define OMAP_GRADIENT_SLOPE_4460 348
#define OMAP_GRADIENT_CONST_4460 -9301 #define OMAP_GRADIENT_CONST_4460 -9301
#define OMAP_GRADIENT_SLOPE_4470 308 #define OMAP_GRADIENT_SLOPE_4470 308
...@@ -37,6 +39,8 @@ ...@@ -37,6 +39,8 @@
#define OMAP_GRADIENT_CONST_5430_GPU 978 #define OMAP_GRADIENT_CONST_5430_GPU 978
/* PCB sensor calculation constants */ /* PCB sensor calculation constants */
#define OMAP_GRADIENT_SLOPE_W_PCB_4430 0
#define OMAP_GRADIENT_CONST_W_PCB_4430 20000
#define OMAP_GRADIENT_SLOPE_W_PCB_4460 1142 #define OMAP_GRADIENT_SLOPE_W_PCB_4460 1142
#define OMAP_GRADIENT_CONST_W_PCB_4460 -393 #define OMAP_GRADIENT_CONST_W_PCB_4460 -393
#define OMAP_GRADIENT_SLOPE_W_PCB_4470 1063 #define OMAP_GRADIENT_SLOPE_W_PCB_4470 1063
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment