summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElsie Shih <elsie_shih@wistron.corp-partner.google.com>2022-05-17 13:09:43 +0800
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-05-17 09:26:07 +0000
commit202159acc437afb0b518f13c6e458368a49a75a0 (patch)
treef73c01c09cb8fc8a35e575902186a1640c0ad13c
parent1a417186267c64e7da0742490b0c620eddae149a (diff)
downloadchrome-ec-stabilize-14839.B-main.tar.gz
moli: modify name of temp sensorstabilize-14839.B-main
- Modify TEMP_SENSOR_1 to SSD - Modify TEMP_SENSOR_3_DIMM to TEMP_SENSOR_4_DIMM BUG=b:220670917 TEST=make -j BOARD=moli Signed-off-by: Elsie Shih <elsie_shih@wistron.corp-partner.google.com> Change-Id: Ib619606300f840e515c968d13f60186b8c3a0fc5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3650299 Reviewed-by: Zhuohao Lee <zhuohao@chromium.org>
-rw-r--r--board/moli/board.h8
-rw-r--r--board/moli/sensors.c20
2 files changed, 14 insertions, 14 deletions
diff --git a/board/moli/board.h b/board/moli/board.h
index 59031a16e1..50744db067 100644
--- a/board/moli/board.h
+++ b/board/moli/board.h
@@ -149,18 +149,18 @@ enum charge_port {
};
enum adc_channel {
- ADC_TEMP_SENSOR_1_CPU,
+ ADC_TEMP_SENSOR_1_SSD,
ADC_TEMP_SENSOR_2_CPU_VR,
- ADC_TEMP_SENSOR_3_DIMM,
+ ADC_TEMP_SENSOR_4_DIMM,
ADC_VBUS,
ADC_PPVAR_IMON, /* ADC3 */
ADC_CH_COUNT
};
enum temp_sensor_id {
- TEMP_SENSOR_1_CPU,
+ TEMP_SENSOR_1_SSD,
TEMP_SENSOR_2_CPU_VR,
- TEMP_SENSOR_3_DIMM,
+ TEMP_SENSOR_4_DIMM,
TEMP_SENSOR_COUNT
};
diff --git a/board/moli/sensors.c b/board/moli/sensors.c
index c214ce71bb..34cad8e5af 100644
--- a/board/moli/sensors.c
+++ b/board/moli/sensors.c
@@ -12,8 +12,8 @@
/* ADC configuration */
const struct adc_t adc_channels[] = {
- [ADC_TEMP_SENSOR_1_CPU] = {
- .name = "TEMP_CPU",
+ [ADC_TEMP_SENSOR_1_SSD] = {
+ .name = "TEMP_SSD",
.input_ch = NPCX_ADC_CH0,
.factor_mul = ADC_MAX_VOLT,
.factor_div = ADC_READ_MAX + 1,
@@ -26,7 +26,7 @@ const struct adc_t adc_channels[] = {
.factor_div = ADC_READ_MAX + 1,
.shift = 0,
},
- [ADC_TEMP_SENSOR_3_DIMM] = {
+ [ADC_TEMP_SENSOR_4_DIMM] = {
.name = "TEMP_DIMM",
.input_ch = NPCX_ADC_CH7,
.factor_mul = ADC_MAX_VOLT,
@@ -51,11 +51,11 @@ BUILD_ASSERT(ARRAY_SIZE(adc_channels) == ADC_CH_COUNT);
/* Temperature sensor configuration */
const struct temp_sensor_t temp_sensors[] = {
- [TEMP_SENSOR_1_CPU] = {
- .name = "CPU",
+ [TEMP_SENSOR_1_SSD] = {
+ .name = "SSD",
.type = TEMP_SENSOR_TYPE_BOARD,
.read = get_temp_3v3_30k9_47k_4050b,
- .idx = ADC_TEMP_SENSOR_1_CPU
+ .idx = ADC_TEMP_SENSOR_1_SSD
},
[TEMP_SENSOR_2_CPU_VR] = {
.name = "CPU VR",
@@ -63,11 +63,11 @@ const struct temp_sensor_t temp_sensors[] = {
.read = get_temp_3v3_30k9_47k_4050b,
.idx = ADC_TEMP_SENSOR_2_CPU_VR
},
- [TEMP_SENSOR_3_DIMM] = {
+ [TEMP_SENSOR_4_DIMM] = {
.name = "DIMM",
.type = TEMP_SENSOR_TYPE_BOARD,
.read = get_temp_3v3_30k9_47k_4050b,
- .idx = ADC_TEMP_SENSOR_3_DIMM
+ .idx = ADC_TEMP_SENSOR_4_DIMM
},
};
BUILD_ASSERT(ARRAY_SIZE(temp_sensors) == TEMP_SENSOR_COUNT);
@@ -101,8 +101,8 @@ __maybe_unused static const struct ec_thermal_config thermal_cpu = THERMAL_CPU;
*/
/* this should really be "const" */
struct ec_thermal_config thermal_params[] = {
- [TEMP_SENSOR_1_CPU] = THERMAL_CPU,
+ [TEMP_SENSOR_1_SSD] = THERMAL_CPU,
[TEMP_SENSOR_2_CPU_VR] = THERMAL_CPU,
- [TEMP_SENSOR_3_DIMM] = THERMAL_CPU,
+ [TEMP_SENSOR_4_DIMM] = THERMAL_CPU,
};
BUILD_ASSERT(ARRAY_SIZE(thermal_params) == TEMP_SENSOR_COUNT);