diff options
author | Jongpil Jung <jongpil19.jung@samsung.com> | 2017-11-16 14:20:11 +0900 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-11-21 04:25:07 -0800 |
commit | 267320bd477f9758bb7d16e32985c671cc92475a (patch) | |
tree | 111f59e9673a16c87ee07e5d21a6be0521db4852 /board | |
parent | 6cb4469a8482786d1d22836ff7984ebf9da3f367 (diff) | |
download | chrome-ec-267320bd477f9758bb7d16e32985c671cc92475a.tar.gz |
Nautilus: clean up thermal sensors.
Nautilus doesn't have systherm0 and systherm3.
So, need to remove device index.
BUG=b:69389497
BRANCH=none
TEST=build/flash nautilus rev1, power on and boot ok.
check ectool tempsinfo all and ectool temps all.
Change-Id: I1ebebf2fb19ab91f63cf7e29605b8e6fd0f86178
Signed-off-by: Jongpil Jung <jongpil19.jung@samsung.com>
Reviewed-on: https://chromium-review.googlesource.com/773940
Commit-Ready: Jongpil Jung <jongpil19.jung@samsung.corp-partner.google.com>
Tested-by: Jongpil Jung <jongpil19.jung@samsung.corp-partner.google.com>
Reviewed-by: Philip Chen <philipchen@chromium.org>
Diffstat (limited to 'board')
-rw-r--r-- | board/nautilus/board.c | 4 | ||||
-rw-r--r-- | board/nautilus/board.h | 3 |
2 files changed, 1 insertions, 6 deletions
diff --git a/board/nautilus/board.c b/board/nautilus/board.c index f594cedf05..fa588fc32c 100644 --- a/board/nautilus/board.c +++ b/board/nautilus/board.c @@ -450,14 +450,10 @@ const struct temp_sensor_t temp_sensors[] = { {"Battery", TEMP_SENSOR_TYPE_BATTERY, charge_get_battery_temp, 0, 4}, /* These BD99992GW temp sensors are only readable in S0 */ - {"Ambient", TEMP_SENSOR_TYPE_BOARD, bd99992gw_get_val, - BD99992GW_ADC_CHANNEL_SYSTHERM0, 4}, {"Charger", TEMP_SENSOR_TYPE_BOARD, bd99992gw_get_val, BD99992GW_ADC_CHANNEL_SYSTHERM1, 4}, {"DRAM", TEMP_SENSOR_TYPE_BOARD, bd99992gw_get_val, BD99992GW_ADC_CHANNEL_SYSTHERM2, 4}, - {"eMMC", TEMP_SENSOR_TYPE_BOARD, bd99992gw_get_val, - BD99992GW_ADC_CHANNEL_SYSTHERM3, 4}, }; BUILD_ASSERT(ARRAY_SIZE(temp_sensors) == TEMP_SENSOR_COUNT); diff --git a/board/nautilus/board.h b/board/nautilus/board.h index a85f1d2aa3..311797aa54 100644 --- a/board/nautilus/board.h +++ b/board/nautilus/board.h @@ -195,12 +195,11 @@ enum power_signal { POWER_SIGNAL_COUNT }; +/* Nautilus doesn't have systherm0 and systherm3 */ enum temp_sensor_id { TEMP_SENSOR_BATTERY, /* BD99956GW TSENSE */ - TEMP_SENSOR_AMBIENT, /* BD99992GW SYSTHERM0 */ TEMP_SENSOR_CHARGER, /* BD99992GW SYSTHERM1 */ TEMP_SENSOR_DRAM, /* BD99992GW SYSTHERM2 */ - TEMP_SENSOR_EMMC, /* BD99992GW SYSTHERM3 */ TEMP_SENSOR_COUNT }; |