diff options
Diffstat (limited to 'board/strago')
-rw-r--r-- | board/strago/board.c | 4 | ||||
-rw-r--r-- | board/strago/board.h | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/board/strago/board.c b/board/strago/board.c index cc9b33ed35..3b749c8691 100644 --- a/board/strago/board.c +++ b/board/strago/board.c @@ -5,6 +5,7 @@ /* Strago board-specific configuration */ #include "charger.h" +#include "charge_state.h" #include "driver/accel_kxcj9.h" #include "driver/temp_sensor/tmp432.h" #include "extpower.h" @@ -58,6 +59,8 @@ const struct temp_sensor_t temp_sensors[] = { TMP432_IDX_REMOTE1, 4}, {"TMP432_Sensor_2", TEMP_SENSOR_TYPE_BOARD, tmp432_get_val, TMP432_IDX_REMOTE2, 4}, + {"Battery", TEMP_SENSOR_TYPE_BATTERY, charge_temp_sensor_get_val, + 0, 4}, }; BUILD_ASSERT(ARRAY_SIZE(temp_sensors) == TEMP_SENSOR_COUNT); @@ -68,6 +71,7 @@ struct ec_thermal_config thermal_params[] = { {{0, 0, 0}, 0, 0}, /* TMP432_Internal */ {{0, 0, 0}, 0, 0}, /* TMP432_Sensor_1 */ {{0, 0, 0}, 0, 0}, /* TMP432_Sensor_2 */ + {{0, 0, 0}, 0, 0}, /* Battery Sensor */ }; BUILD_ASSERT(ARRAY_SIZE(thermal_params) == TEMP_SENSOR_COUNT); diff --git a/board/strago/board.h b/board/strago/board.h index f1e28017dd..6961541365 100644 --- a/board/strago/board.h +++ b/board/strago/board.h @@ -93,6 +93,9 @@ enum temp_sensor_id { TEMP_SENSOR_I2C_TMP432_REMOTE1, TEMP_SENSOR_I2C_TMP432_REMOTE2, + /* Battery temperature sensor */ + TEMP_SENSOR_BATTERY, + TEMP_SENSOR_COUNT }; |