summaryrefslogtreecommitdiff
path: root/src/ec/kontron
diff options
context:
space:
mode:
authorNico Huber <nico.huber@secunet.com>2013-07-12 14:40:23 +0200
committerStefan Reinauer <stefan.reinauer@coreboot.org>2013-07-29 23:18:45 +0200
commit942b6c2117816dcabdf15109b68aca33edee89c9 (patch)
treeef514b01572a4ecf60f609b26a8f968de90b59ce /src/ec/kontron
parent6d6a2ac0559a324603d1c323239e2e6e6e58af77 (diff)
downloadcoreboot-942b6c2117816dcabdf15109b68aca33edee89c9.tar.xz
ec/kontron/it8516e: Correct fan setting for PWM mode
The EC firmware expects a 255th while we provide a percentage. Change-Id: Ib06a061b431ac728329043179800729e39e6166b Signed-off-by: Nico Huber <nico.huber@secunet.com> Reviewed-on: http://review.coreboot.org/3773 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'src/ec/kontron')
-rw-r--r--src/ec/kontron/it8516e/ec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ec/kontron/it8516e/ec.c b/src/ec/kontron/it8516e/ec.c
index 7cf41d95be..2cf4f90fa2 100644
--- a/src/ec/kontron/it8516e/ec.c
+++ b/src/ec/kontron/it8516e/ec.c
@@ -118,7 +118,7 @@ static void it8516e_set_fan_from_options(const config_t *const config,
"Setting it8516e fan%d "
"control to %d%% PWM.\n",
fan_idx + 1, fan_target);
- it8516e_set_fan_pwm(fan_idx, fan_target);
+ it8516e_set_fan_pwm(fan_idx, (fan_target * 255) / 100);
break;
case IT8516E_MODE_SPEED:
printk(BIOS_DEBUG,