diff options
Diffstat (limited to 'board/scout/board.c')
-rw-r--r-- | board/scout/board.c | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/board/scout/board.c b/board/scout/board.c index 60a26abffb..b917020791 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: |