summaryrefslogtreecommitdiff
path: root/board/scout/board.c
diff options
context:
space:
mode:
authorSue Chen <sue.chen@quanta.corp-partner.google.com>2021-07-20 09:46:32 +0800
committerCommit Bot <commit-bot@chromium.org>2021-08-03 06:30:36 +0000
commit88128f6080ed52dc1855313fa38c7318cc7f2730 (patch)
tree2cabea4c48f42c61feaa2e0e5b7c65dc1abcf388 /board/scout/board.c
parentd3eed85ce9067764583c029bd09755307c6920df (diff)
downloadchrome-ec-88128f6080ed52dc1855313fa38c7318cc7f2730.tar.gz
Scout: Update thermal table and add the 2nd temp sensor
Enable ADC1 to read TEMP_SENSOR_2 and update thermal table for theset 2 temp sensors. BUG=none BRANCH=none TEST=none Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Change-Id: I626aab0aabf1f094b97bd72f93afa783553c1d3a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3038010 Reviewed-by: Jeff Chase <jnchase@google.com>
Diffstat (limited to 'board/scout/board.c')
-rw-r--r--board/scout/board.c24
1 files changed, 19 insertions, 5 deletions
diff --git a/board/scout/board.c b/board/scout/board.c
index 5e7ea14a09..69271c65f3 100644
--- a/board/scout/board.c
+++ b/board/scout/board.c
@@ -182,6 +182,12 @@ 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);
@@ -192,6 +198,12 @@ const struct temp_sensor_t temp_sensors[] = {
.read = get_temp_3v3_30k9_47k_4050b,
.idx = ADC_TEMP_SENSOR_1,
},
+ [TEMP_SENSOR_WIFI] = {
+ .name = "Wifi",
+ .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);
@@ -213,7 +225,7 @@ const struct fan_conf fan_conf_0 = {
const struct fan_rpm fan_rpm_0 = {
.rpm_min = 2500,
.rpm_start = 2500,
- .rpm_max = 5200,
+ .rpm_max = 5300,
};
const struct fan_t fans[] = {
@@ -233,16 +245,16 @@ BUILD_ASSERT(ARRAY_SIZE(mft_channels) == MFT_CH_COUNT);
const static struct ec_thermal_config thermal_a = {
.temp_host = {
[EC_TEMP_THRESH_WARN] = 0,
- [EC_TEMP_THRESH_HIGH] = C_TO_K(78),
- [EC_TEMP_THRESH_HALT] = C_TO_K(85),
+ [EC_TEMP_THRESH_HIGH] = C_TO_K(85),
+ [EC_TEMP_THRESH_HALT] = C_TO_K(90),
},
.temp_host_release = {
[EC_TEMP_THRESH_WARN] = 0,
- [EC_TEMP_THRESH_HIGH] = C_TO_K(70),
+ [EC_TEMP_THRESH_HIGH] = C_TO_K(78),
[EC_TEMP_THRESH_HALT] = 0,
},
.temp_fan_off = C_TO_K(25),
- .temp_fan_max = C_TO_K(84),
+ .temp_fan_max = C_TO_K(89),
};
const static struct ec_thermal_config thermal_b = {
@@ -260,6 +272,7 @@ const static struct ec_thermal_config thermal_b = {
struct ec_thermal_config thermal_params[] = {
[TEMP_SENSOR_CORE] = thermal_a,
+ [TEMP_SENSOR_WIFI] = thermal_a,
};
BUILD_ASSERT(ARRAY_SIZE(thermal_params) == TEMP_SENSOR_COUNT);
@@ -393,6 +406,7 @@ static void setup_thermal(void)
case 0:
default:
thermal_params[TEMP_SENSOR_CORE] = thermal_a;
+ thermal_params[TEMP_SENSOR_WIFI] = thermal_a;
break;
/* Table1 is fanless */
case 1: