summaryrefslogtreecommitdiff
path: root/board/host/board.c
diff options
context:
space:
mode:
authorVic Yang <victoryang@chromium.org>2013-05-15 11:18:21 +0800
committerChromeBot <chrome-bot@google.com>2013-05-15 12:12:23 -0700
commitd9cf88b35ad211d873f48b41fd985e22ff049b83 (patch)
treeb57229f791bf4ac8b3bcdd358d80cd788f3de17c /board/host/board.c
parent3addfe80f9c19045457f4b489c99c3067db4fc96 (diff)
downloadchrome-ec-d9cf88b35ad211d873f48b41fd985e22ff049b83.tar.gz
Add thermal engine test
BUG=chrome-os-partner:19236 TEST=Pass the test. BRANCH=None Change-Id: I1c96437e1fb3492faa5352383f852dc1d2718ace Signed-off-by: Vic Yang <victoryang@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/51248 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'board/host/board.c')
-rw-r--r--board/host/board.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/board/host/board.c b/board/host/board.c
index 5c1603767a..10d8d1d3c4 100644
--- a/board/host/board.c
+++ b/board/host/board.c
@@ -6,9 +6,22 @@
#include "board.h"
#include "gpio.h"
+#include "temp_sensor.h"
const struct gpio_info gpio_list[GPIO_COUNT] = {
{"EC_INT", 0, 0, 0, 0},
{"LID_OPEN", 0, 0, 0, 0},
{"POWER_BUTTON_L", 0, 0, 0, 0},
};
+
+static int dummy_temp_get_val(int idx, int *temp_ptr)
+{
+ *temp_ptr = 0;
+ return EC_SUCCESS;
+}
+
+const struct temp_sensor_t temp_sensors[TEMP_SENSOR_COUNT] = {
+ {"CPU", TEMP_SENSOR_TYPE_CPU, dummy_temp_get_val, 0, 3},
+ {"Board", TEMP_SENSOR_TYPE_BOARD, dummy_temp_get_val, 0, 3},
+ {"Case", TEMP_SENSOR_TYPE_CASE, dummy_temp_get_val, 0, 0},
+};