diff options
author | Aseda Aboagye <aaboagye@google.com> | 2018-07-10 20:06:08 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2018-07-11 04:27:15 +0000 |
commit | 84f79f22b22b66b77ddfb64eb75f27d485a982bf (patch) | |
tree | f18a986994dbfed285b991931f7bef3d736f169c | |
parent | 9f741207bc0205b3c5b1099fdbd14d5612bd0f48 (diff) | |
download | chrome-ec-84f79f22b22b66b77ddfb64eb75f27d485a982bf.tar.gz |
nocturne: Add Gyro temperature sensor.
BUG=None
BRANCH=master
TEST=Flash nocturne, run 'temps', verify that Gyro temp sensor is
present and reasonable.
Change-Id: I59e405f1267dcd35087cfe82b965e85c041a9015
Signed-off-by: Aseda Aboagye <aaboagye@google.com>
Reviewed-on: https://chromium-review.googlesource.com/1132717
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
Tested-by: Aseda Aboagye <aaboagye@chromium.org>
-rw-r--r-- | board/nocturne/board.c | 2 | ||||
-rw-r--r-- | board/nocturne/board.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/board/nocturne/board.c b/board/nocturne/board.c index 3793a5f64b..b367c7a97b 100644 --- a/board/nocturne/board.c +++ b/board/nocturne/board.c @@ -449,6 +449,8 @@ const struct temp_sensor_t temp_sensors[] = { BD99992GW_ADC_CHANNEL_SYSTHERM2, 4}, {"eMMC", TEMP_SENSOR_TYPE_BOARD, bd99992gw_get_val, BD99992GW_ADC_CHANNEL_SYSTHERM3, 4}, + /* The Gyro temperature sensor is only readable in S0. */ + {"Gyro", TEMP_SENSOR_TYPE_BOARD, bmi160_get_sensor_temp, LID_GYRO, 1} }; BUILD_ASSERT(ARRAY_SIZE(temp_sensors) == TEMP_SENSOR_COUNT); diff --git a/board/nocturne/board.h b/board/nocturne/board.h index 2da6136d31..933876fd73 100644 --- a/board/nocturne/board.h +++ b/board/nocturne/board.h @@ -225,6 +225,7 @@ enum temp_sensor_id { TEMP_SENSOR_CHARGER, /* BD99992GW SYSTHERM1 */ TEMP_SENSOR_DRAM, /* BD99992GW SYSTHERM2 */ TEMP_SENSOR_EMMC, /* BD99992GW SYSTHERM3 */ + TEMP_SENSOR_GYRO, /* BMI160 */ TEMP_SENSOR_COUNT }; |