summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoramber.chen <amber.chen@lcfc.corp-partner.google.com>2021-09-24 22:13:42 +0800
committerCommit Bot <commit-bot@chromium.org>2021-09-28 03:24:35 +0000
commit577e35e2ec2244e9ea5979580c753ef295eeaa24 (patch)
treeebe64fe3781a61127a84f7e96376a0913ee23ff4
parent2452efe31f80997023fec542456f89da1bc41e21 (diff)
downloadchrome-ec-577e35e2ec2244e9ea5979580c753ef295eeaa24.tar.gz
taeko: add thermal configuration
BUG=b:201021109 BRANCH=main TEST=make -j BOARD=taeko Signed-off-by: amber.chen <amber.chen@lcfc.corp-partner.google.com> Change-Id: Idb65b11870ada152f64ab02bf6209ad155352b90 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3182320 Reviewed-by: YH Lin <yueherngl@chromium.org> Reviewed-by: Boris Mittelberg <bmbm@google.com> Reviewed-by: caveh jalali <caveh@chromium.org> Commit-Queue: caveh jalali <caveh@chromium.org>
-rw-r--r--board/taeko/board.h4
-rw-r--r--board/taeko/sensors.c12
2 files changed, 8 insertions, 8 deletions
diff --git a/board/taeko/board.h b/board/taeko/board.h
index 61d716ab79..7b7995f001 100644
--- a/board/taeko/board.h
+++ b/board/taeko/board.h
@@ -180,7 +180,7 @@ enum adc_channel {
ADC_TEMP_SENSOR_1_DDR_SOC,
ADC_TEMP_SENSOR_2_FAN,
ADC_TEMP_SENSOR_3_CHARGER,
- ADC_TEMP_SENSOR_4_WWAN,
+ ADC_TEMP_SENSOR_4_CPUCHOKE,
ADC_CH_COUNT
};
@@ -188,7 +188,7 @@ enum temp_sensor_id {
TEMP_SENSOR_1_DDR_SOC,
TEMP_SENSOR_2_FAN,
TEMP_SENSOR_3_CHARGER,
- TEMP_SENSOR_4_WWAN,
+ TEMP_SENSOR_4_CPUCHOKE,
TEMP_SENSOR_COUNT
};
diff --git a/board/taeko/sensors.c b/board/taeko/sensors.c
index 66b182b472..0d4c85f0df 100644
--- a/board/taeko/sensors.c
+++ b/board/taeko/sensors.c
@@ -48,8 +48,8 @@ const struct adc_t adc_channels[] = {
.factor_div = ADC_READ_MAX + 1,
.shift = 0,
},
- [ADC_TEMP_SENSOR_4_WWAN] = {
- .name = "TEMP_WWAN",
+ [ADC_TEMP_SENSOR_4_CPUCHOKE] = {
+ .name = "CPU_CHOKE",
.input_ch = NPCX_ADC_CH7,
.factor_mul = ADC_MAX_VOLT,
.factor_div = ADC_READ_MAX + 1,
@@ -291,11 +291,11 @@ const struct temp_sensor_t temp_sensors[] = {
.read = get_temp_3v3_30k9_47k_4050b,
.idx = ADC_TEMP_SENSOR_3_CHARGER
},
- [TEMP_SENSOR_4_WWAN] = {
- .name = "WWAN",
+ [TEMP_SENSOR_4_CPUCHOKE] = {
+ .name = "CPU CHOKE",
.type = TEMP_SENSOR_TYPE_BOARD,
.read = get_temp_3v3_30k9_47k_4050b,
- .idx = ADC_TEMP_SENSOR_4_WWAN
+ .idx = ADC_TEMP_SENSOR_4_CPUCHOKE
},
};
@@ -351,7 +351,7 @@ struct ec_thermal_config thermal_params[] = {
[TEMP_SENSOR_1_DDR_SOC] = thermal_cpu,
[TEMP_SENSOR_2_FAN] = thermal_fan,
[TEMP_SENSOR_3_CHARGER] = thermal_fan,
- [TEMP_SENSOR_4_WWAN] = thermal_fan,
+ [TEMP_SENSOR_4_CPUCHOKE] = thermal_fan,
};
BUILD_ASSERT(ARRAY_SIZE(thermal_params) == TEMP_SENSOR_COUNT);