diff options
Diffstat (limited to 'board/host/board.c')
-rw-r--r-- | board/host/board.c | 13 |
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}, +}; |