mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
UPSTREAM: common Ite EC driver: Enable PWM smoothing via devicetree
The devicetree parameter already existed without being used in the code. BUG=None BRANCH=None TEST=None 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> Change-Id: I99dd8bc7a9b2f3509a115a130062d462a62e33fd Reviewed-on: https://chromium-review.googlesource.com/415102 Commit-Ready: Furquan Shaikh <furquan@chromium.org> Tested-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
f56bfa23e2
commit
ff9efb363b
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue