From 3e2f6790ed0e6dc81e39755e548f85f464d8a027 Mon Sep 17 00:00:00 2001 From: Sven Schnelle Date: Tue, 12 Apr 2011 18:18:24 +0000 Subject: Lenovo H8 EC: Set fancontrol to Automatic management My Notebook gets far to hot without fan, so just enable automatic fan control by default. Signed-off-by: Sven Schnelle Acked-by: Sven Schnelle git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6490 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/ec/lenovo/h8/h8.c | 1 + src/ec/lenovo/h8/h8.h | 2 ++ 2 files changed, 3 insertions(+) (limited to 'src/ec') diff --git a/src/ec/lenovo/h8/h8.c b/src/ec/lenovo/h8/h8.c index bc0ddde844..6a595257f1 100644 --- a/src/ec/lenovo/h8/h8.c +++ b/src/ec/lenovo/h8/h8.c @@ -118,6 +118,7 @@ static void h8_enable(device_t dev) ec_write(0x1e, conf->evente_enable); ec_write(0x1f, conf->eventf_enable); + ec_write(H8_FAN_CONTROL, H8_FAN_CONTROL_AUTO); h8_wlan_enable(conf->wlan_enable); h8_trackpoint_enable(conf->trackpoint_enable); diff --git a/src/ec/lenovo/h8/h8.h b/src/ec/lenovo/h8/h8.h index cdb22cace7..d263313fad 100644 --- a/src/ec/lenovo/h8/h8.h +++ b/src/ec/lenovo/h8/h8.h @@ -67,6 +67,8 @@ void h8_disable_event(int event); #define H8_LED_CONTROL_DOCK_LED1 0x08 #define H8_LED_CONTROL_DOCK_LED2 0x09 +#define H8_FAN_CONTROL 0x2f +#define H8_FAN_CONTROL_AUTO 0x80 /* Embedded controller events */ #define H8_EVENT_FN_F1 0x10 #define H8_EVENT_FN_F2 0x11 -- cgit v1.2.3