diff options
author | Chris Ching <chingcodes@google.com> | 2017-10-11 16:33:24 -0600 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-10-13 21:55:20 -0700 |
commit | 8373a0f86c24f17bdc21fff0f59044828923c49d (patch) | |
tree | 4d1603c8731660d66ac015ddd5057e45bc29f50a /common/fan.c | |
parent | 2e1ec23353c758a7553c86bfd224b3364f6504a6 (diff) | |
download | chrome-ec-8373a0f86c24f17bdc21fff0f59044828923c49d.tar.gz |
[fan] Add CONFIG_FAN_SPEED option to override EC fan speed
Fans will be initialed at the given RPM, and not the max speed.
Changed kahlee to use new method and set speed to ~50%, down from 75%
BUG=b:67055475
TEST=run on kahlee board
BRANCH=none
Change-Id: Iad40a58b531f46ac80572b47aef9378b47222be1
Signed-off-by: Chris Ching <chingcodes@google.com>
Reviewed-on: https://chromium-review.googlesource.com/714386
Commit-Ready: Chris Ching <chingcodes@chromium.org>
Tested-by: Chris Ching <chingcodes@chromium.org>
Reviewed-by: Chris Ching <chingcodes@chromium.org>
Diffstat (limited to 'common/fan.c')
-rw-r--r-- | common/fan.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/common/fan.c b/common/fan.c index 6f4425bdc9..07d93723a4 100644 --- a/common/fan.c +++ b/common/fan.c @@ -447,9 +447,11 @@ static void pwm_fan_init(void) fan_set_rpm_target(fans[fan].ch, prev->fan_rpm); } } else { - /* Set initial fan speed to maximum */ + /* Set initial fan speed */ for (fan = 0; fan < CONFIG_FANS; fan++) - fan_set_rpm_target(fans[fan].ch, fans[fan].rpm_max); + fan_set_rpm_target(fans[fan].ch, + fan_percent_to_rpm(fans[fan].ch, + CONFIG_FAN_INIT_SPEED)); } for (fan = 0; fan < CONFIG_FANS; fan++) |