summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorVic Yang <victoryang@google.com>2012-02-08 14:08:14 +0800
committerVic Yang <victoryang@google.com>2012-02-08 14:53:17 +0800
commit059c633a27ea4475cd9a7b69dbbbf72f5f55e157 (patch)
tree33e4a3412e3963d185f6f1e38511aeb003e738fc /board
parentd3e1de758cfa3a7dd990f0fb63eddbb1ae870418 (diff)
downloadchrome-ec-059c633a27ea4475cd9a7b69dbbbf72f5f55e157.tar.gz
Add tmp006 object temperature calculation
Implement TMP006 object temperature calculation. Also add a console command to calculate temperature with manually entered data. BUG=chrome-os-partner:7801 TEST=In console, "tempremote 29715 -105000 6390" gives 285.00K. Change-Id: I0f9193fb970fdc36566399e7083e73ab58965a85
Diffstat (limited to 'board')
-rw-r--r--board/bds/board_temp_sensor.c2
-rw-r--r--board/link/board_temp_sensor.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/board/bds/board_temp_sensor.c b/board/bds/board_temp_sensor.c
index 709ca8226a..65b73005a1 100644
--- a/board/bds/board_temp_sensor.c
+++ b/board/bds/board_temp_sensor.c
@@ -18,5 +18,5 @@ const struct temp_sensor_t temp_sensors[TEMP_SENSOR_COUNT] = {
{"ECInternal", TEMP_SENSOR_EC_INTERNAL, TEMP_SENSOR_NO_ADDR,
chip_temp_sensor_read, TEMP_SENSOR_NO_PRINT},
{"CaseDie", TEMP_SENSOR_CASE_DIE, TEMP_CASE_DIE_ADDR,
- temp_sensor_tmp006_read, temp_sensor_tmp006_print}
+ temp_sensor_tmp006_read_die_temp, temp_sensor_tmp006_print}
};
diff --git a/board/link/board_temp_sensor.c b/board/link/board_temp_sensor.c
index f04754f2bd..4a937c9bf3 100644
--- a/board/link/board_temp_sensor.c
+++ b/board/link/board_temp_sensor.c
@@ -25,13 +25,13 @@
*/
const struct temp_sensor_t temp_sensors[TEMP_SENSOR_COUNT] = {
{"CPU", TEMP_SENSOR_I2C_DIE_NEAR_CPU, TEMP_CPU_ADDR,
- temp_sensor_tmp006_read, temp_sensor_tmp006_print},
+ temp_sensor_tmp006_read_die_temp, temp_sensor_tmp006_print},
{"PCH", TEMP_SENSOR_I2C_DIE_NEAR_PCH, TEMP_PCH_ADDR,
- temp_sensor_tmp006_read, temp_sensor_tmp006_print},
+ temp_sensor_tmp006_read_die_temp, temp_sensor_tmp006_print},
{"DDR", TEMP_SENSOR_I2C_DIE_NEAR_DDR, TEMP_DDR_ADDR,
- temp_sensor_tmp006_read, temp_sensor_tmp006_print},
+ temp_sensor_tmp006_read_die_temp, temp_sensor_tmp006_print},
{"Charger", TEMP_SENSOR_I2C_DIE_NEAR_CHARGER, TEMP_CHARGER_ADDR,
- temp_sensor_tmp006_read, temp_sensor_tmp006_print},
+ temp_sensor_tmp006_read_die_temp, temp_sensor_tmp006_print},
{"ECInternal", TEMP_SENSOR_EC_INTERNAL, TEMP_SENSOR_NO_ADDR,
chip_temp_sensor_read, TEMP_SENSOR_NO_PRINT},
};