diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2016-11-26 14:43:18 +0100 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2016-11-28 19:24:21 +0100 |
commit | e68947dbd196f10f35d0fdf6d1eb40adeb8f6593 (patch) | |
tree | a59ba73852996da399567eb96ea18656da2d7a79 /src/superio | |
parent | 12bed2608f2f98fd41f6dac9c918123f51e830d4 (diff) |
common Ite EC driver: Enable PWM smoothing via devicetree
The devicetree parameter already existed without being
used in the code.
Change-Id: I99dd8bc7a9b2f3509a115a130062d462a62e33fd
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/17614
Tested-by: build bot (Jenkins)
Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'src/superio')
-rw-r--r-- | src/superio/ite/common/env_ctrl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/superio/ite/common/env_ctrl.c b/src/superio/ite/common/env_ctrl.c index 4ce6ccc50d..b3312e60bf 100644 --- a/src/superio/ite/common/env_ctrl.c +++ b/src/superio/ite/common/env_ctrl.c @@ -152,6 +152,8 @@ static void fan_smartconfig(const u16 base, const u8 fan, pwm_start |= ITE_EC_FAN_CTL_PWM_SLOPE_BIT6(conf->slope); pwm_auto = ITE_EC_FAN_CTL_PWM_SLOPE_LOWER(conf->slope); + if (conf->smoothing) + pwm_auto |= ITE_EC_FAN_CTL_AUTO_SMOOTHING_EN; ite_ec_write(base, ITE_EC_FAN_CTL_TEMP_LIMIT_OFF(fan), conf->tmp_off); |