diff options
author | Vic Yang <victoryang@chromium.org> | 2012-04-26 11:37:53 +0800 |
---|---|---|
committer | Vic Yang <victoryang@chromium.org> | 2012-04-26 15:09:27 +0800 |
commit | 8b1dd41d77ed8a02b911006693458ac6bc5e010f (patch) | |
tree | 178fdc6547be054c2b2a7093b57ade386f5cfafc /common/thermal.c | |
parent | 470916fb0f856945f2a93c7fd160845b5f659be1 (diff) | |
download | chrome-ec-8b1dd41d77ed8a02b911006693458ac6bc5e010f.tar.gz |
Adjust thermal engine thresholds
Adjust fan step thresholds:
T=55C Fan=20%/2200RPM
T=65C Fan=40%/4400RPM
T=75C Fan=60%/6600RPM
T=85C Fan=80%/8800RPM
T=95C Fan=100%/11000RPM
Also set minimum fan speed to 0 rpm.
Signed-off-by: Vic Yang <victoryang@chromium.org>
BUG=chrome-os-partner:8466
TEST=Manual test
Change-Id: I609853f2eceb9a6a43fbeb500084e82b1461f092
Diffstat (limited to 'common/thermal.c')
-rw-r--r-- | common/thermal.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/common/thermal.c b/common/thermal.c index 2143007adc..82d547866c 100644 --- a/common/thermal.c +++ b/common/thermal.c @@ -30,7 +30,7 @@ extern const struct temp_sensor_t temp_sensors[TEMP_SENSOR_COUNT]; static struct thermal_config_t thermal_config[TEMP_SENSOR_TYPE_COUNT] = { /* TEMP_SENSOR_TYPE_CPU */ {THERMAL_CONFIG_WARNING_ON_FAIL, - {343, 348, 353, 318, 323, 328, 333, 338}}, + {368, 383, 388, 328, 338, 348, 358, 368}}, /* TEMP_SENSOR_TYPE_BOARD */ {THERMAL_CONFIG_NO_FLAG, {THERMAL_THRESHOLD_DISABLE_ALL}}, /* TEMP_SENSOR_TYPE_CASE */ @@ -39,12 +39,9 @@ static struct thermal_config_t thermal_config[TEMP_SENSOR_TYPE_COUNT] = { }; /* Fan speed settings. */ -/* TODO: Currently temperature polling task sometimes hangs. So we should not - * turn off fan according to temperature readings. Modify this to turn off fan - * when we have reliable temperature readings. See crosbug.com/p/8479 - */ -static const int fan_speed[THERMAL_FAN_STEPS + 1] = {4000, 5000, 6000, 7000, - 8000, -1}; +/* Max RPM is about 11000. Setting each step to be 20% of the max RPM. */ +static const int fan_speed[THERMAL_FAN_STEPS + 1] = {0, 2200, 4400, 6600, + 8800, -1}; /* Number of consecutive overheated events for each temperature sensor. */ static int8_t ot_count[TEMP_SENSOR_COUNT][THRESHOLD_COUNT + THERMAL_FAN_STEPS]; |