[coreboot-gerrit] New patch to review for coreboot: common Ite EC driver: Enable PWM smoothing via devicetree

Arthur Heymans (arthur@aheymans.xyz) gerrit at coreboot.org
Sat Nov 26 14:47:14 CET 2016


Arthur Heymans (arthur at aheymans.xyz) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/17614

-gerrit

commit 5fc163831c6bd27d4edf47ee05a265b7f6643f99
Author: Arthur Heymans <arthur at aheymans.xyz>
Date:   Sat Nov 26 14:43:18 2016 +0100

    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 at aheymans.xyz>
---
 src/superio/ite/common/env_ctrl.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/superio/ite/common/env_ctrl.c b/src/superio/ite/common/env_ctrl.c
index 4ce6ccc..b3312e6 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);



More information about the coreboot-gerrit mailing list