diff options
author | Paul Fagerburg <pfagerburg@chromium.org> | 2019-11-12 14:18:30 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-11-13 19:08:20 +0000 |
commit | 6ddb71e32428d4c256ec2f1baae2571d7a40ba6c (patch) | |
tree | e845b0c759ad221892b82d588c40db3c95f41cdc | |
parent | 5aecc5569d11f6492a021cef4087ffc1d4747c37 (diff) | |
download | chrome-ec-6ddb71e32428d4c256ec2f1baae2571d7a40ba6c.tar.gz |
kohaku: add meaningful names to temp sensors
Change the names of the temperature sensors as displayed by the EC
to indicate what they are sensing, not just Temp1/2/3/4.
BUG=None
BRANCH=None
TEST=`make -j BOARD=kohaku && ./util/flash_ec --board=kohaku`
After programming, run the 'temps' command and see that the temperature
sensors are named according to what they are measuring, not Temp1/2/3/4.
Change-Id: Ifca845143e00acb721a06a31f7a2b725fe48a50e
Signed-off-by: Paul Fagerburg <pfagerburg@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1913324
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
-rw-r--r-- | board/kohaku/board.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/board/kohaku/board.c b/board/kohaku/board.c index 636bbf6c9f..791d2dd8a1 100644 --- a/board/kohaku/board.c +++ b/board/kohaku/board.c @@ -405,22 +405,22 @@ const struct adc_t adc_channels[] = { BUILD_ASSERT(ARRAY_SIZE(adc_channels) == ADC_CH_COUNT); const struct temp_sensor_t temp_sensors[] = { - [TEMP_SENSOR_1] = {.name = "Temp1", + [TEMP_SENSOR_1] = {.name = "Ambient", .type = TEMP_SENSOR_TYPE_BOARD, .read = get_temp_3v3_30k9_47k_4050b, .idx = ADC_TEMP_SENSOR_1, .action_delay_sec = 1}, - [TEMP_SENSOR_2] = {.name = "Temp2", + [TEMP_SENSOR_2] = {.name = "Charger", .type = TEMP_SENSOR_TYPE_BOARD, .read = get_temp_3v3_30k9_47k_4050b, .idx = ADC_TEMP_SENSOR_2, .action_delay_sec = 1}, - [TEMP_SENSOR_3] = {.name = "Temp3", + [TEMP_SENSOR_3] = {.name = "IA", .type = TEMP_SENSOR_TYPE_BOARD, .read = get_temp_3v3_30k9_47k_4050b, .idx = ADC_TEMP_SENSOR_3, .action_delay_sec = 1}, - [TEMP_SENSOR_4] = {.name = "Temp4", + [TEMP_SENSOR_4] = {.name = "GT", .type = TEMP_SENSOR_TYPE_BOARD, .read = get_temp_3v3_30k9_47k_4050b, .idx = ADC_TEMP_SENSOR_4, |