diff options
author | Zick Wei <zick.wei@quanta.corp-partner.google.com> | 2021-03-12 17:37:58 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-03-15 02:30:32 +0000 |
commit | 04a23d3993afa19f3486ea0663a726d5affae17d (patch) | |
tree | 9ec7a3837434102cbd08d7a2ece62ac47644b226 | |
parent | 4f7c661a67ba3ab08814b6343d5dd8e0aa2606df (diff) | |
download | chrome-ec-04a23d3993afa19f3486ea0663a726d5affae17d.tar.gz |
dooly: remove unused thermistor
This patch remove ADC1 thermistor wheich not use on dooly.
BUG=b:174294972
BRANCH=puff
TEST=make BOARD=dooly
Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com>
Change-Id: I37be7a30e5e4a10571e308e8de5bd31e314309db
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2755357
Reviewed-by: Andrew McRae <amcrae@chromium.org>
-rw-r--r-- | board/dooly/board.c | 13 | ||||
-rw-r--r-- | board/dooly/board.h | 2 |
2 files changed, 0 insertions, 15 deletions
diff --git a/board/dooly/board.c b/board/dooly/board.c index b6d3423baa..cac3feefce 100644 --- a/board/dooly/board.c +++ b/board/dooly/board.c @@ -507,12 +507,6 @@ const struct adc_t adc_channels[] = { .factor_mul = ADC_MAX_VOLT, .factor_div = ADC_READ_MAX + 1, }, - [ADC_TEMP_SENSOR_2] = { - .name = "TEMP_SENSOR_2", - .input_ch = NPCX_ADC_CH1, - .factor_mul = ADC_MAX_VOLT, - .factor_div = ADC_READ_MAX + 1, - }, }; BUILD_ASSERT(ARRAY_SIZE(adc_channels) == ADC_CH_COUNT); @@ -523,12 +517,6 @@ const struct temp_sensor_t temp_sensors[] = { .read = get_temp_3v3_30k9_47k_4050b, .idx = ADC_TEMP_SENSOR_1, }, - [TEMP_SENSOR_2] = { - .name = "PP5000", - .type = TEMP_SENSOR_TYPE_BOARD, - .read = get_temp_3v3_30k9_47k_4050b, - .idx = ADC_TEMP_SENSOR_2, - }, }; BUILD_ASSERT(ARRAY_SIZE(temp_sensors) == TEMP_SENSOR_COUNT); @@ -584,7 +572,6 @@ const static struct ec_thermal_config thermal_a = { struct ec_thermal_config thermal_params[] = { [TEMP_SENSOR_1] = thermal_a, - [TEMP_SENSOR_2] = thermal_a, }; BUILD_ASSERT(ARRAY_SIZE(thermal_params) == TEMP_SENSOR_COUNT); diff --git a/board/dooly/board.h b/board/dooly/board.h index ccf91fc555..6043ad6aeb 100644 --- a/board/dooly/board.h +++ b/board/dooly/board.h @@ -246,7 +246,6 @@ enum adc_channel { ADC_VBUS, /* ADC4 */ ADC_PPVAR_IMON, /* ADC9 */ ADC_TEMP_SENSOR_1, /* ADC0 */ - ADC_TEMP_SENSOR_2, /* ADC1 */ /* Number of ADC channels */ ADC_CH_COUNT }; @@ -273,7 +272,6 @@ enum mft_channel { enum temp_sensor_id { TEMP_SENSOR_1, - TEMP_SENSOR_2, TEMP_SENSOR_COUNT }; |