summaryrefslogtreecommitdiffstats
path: root/src/ec/lenovo/h8/acpi/ec.asl
diff options
context:
space:
mode:
authorPatrick Rudolph <siro@das-labor.org>2017-08-27 17:46:52 +0200
committerNico Huber <nico.h@gmx.de>2017-11-04 19:10:29 +0000
commit0709dc0468951e2ed8fa8bac96d919147a926b74 (patch)
tree53ab51a8c2d897a93179f8913d1200fbba9329e7 /src/ec/lenovo/h8/acpi/ec.asl
parent3ab13a8691cbe0e96c0741cb9bdf0e0acfa6efaf (diff)
downloadcoreboot-0709dc0468951e2ed8fa8bac96d919147a926b74.tar.gz
coreboot-0709dc0468951e2ed8fa8bac96d919147a926b74.tar.bz2
coreboot-0709dc0468951e2ed8fa8bac96d919147a926b74.zip
ec/lenovo/h8/acpi/thermal: Add ACPI fan control
Disengage the fan 10 degree below passive threshold as the automatic EC fan control does not disengage the FAN even when CPU starts melting ... * Add EC registers FAND and FANA. * Add ACPI methods _AC0 and _AL0. * Add fan device and PowerResource for fan control. Tested on Lenovo T430: * The fan disengages at 80°C and keeps running at full speed until temperature drops below 80°C. * Fan can be disengaged using sysfs: /sys/devics/virtual/thermal/cooling_device0/cur_state Tested on Lenovo T500: * The fan disengages at 80°C and keeps running at full speed until temperature drops below 80°C. * Fan cannot be disengaged using sysfs, but the current state can be read: /sys/devics/virtual/thermal/cooling_device0/cur_state Change-Id: I075ff5c69676927db1c5e731294e18796884f97e Signed-off-by: Patrick Rudolph <siro@das-labor.org> Reviewed-on: https://review.coreboot.org/21227 Reviewed-by: Nico Huber <nico.h@gmx.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/ec/lenovo/h8/acpi/ec.asl')
-rw-r--r--src/ec/lenovo/h8/acpi/ec.asl4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ec/lenovo/h8/acpi/ec.asl b/src/ec/lenovo/h8/acpi/ec.asl
index 5117264e8958..0ed370f29262 100644
--- a/src/ec/lenovo/h8/acpi/ec.asl
+++ b/src/ec/lenovo/h8/acpi/ec.asl
@@ -39,6 +39,10 @@ Device(EC)
DKR2, 1, /* Dock register 2 */
Offset (0x2a),
EVNT, 8, /* write will trigger EC event */
+ Offset (0x2f),
+ , 6,
+ FAND, 1, /* Fan disengage */
+ FANA, 1, /* Fan automatic mode enable */
Offset (0x30),
, 6,
ALMT, 1, /* Audio Mute + LED */