Author: svens
Date: Tue Apr 12 20:18:24 2011
New Revision: 6490
URL: https://tracker.coreboot.org/trac/coreboot/changeset/6490

Log:
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 <[email protected]>
Acked-by: Sven Schnelle <[email protected]>

Modified:
   trunk/src/ec/lenovo/h8/h8.c
   trunk/src/ec/lenovo/h8/h8.h

Modified: trunk/src/ec/lenovo/h8/h8.c
==============================================================================
--- trunk/src/ec/lenovo/h8/h8.c Tue Apr 12 20:18:12 2011        (r6489)
+++ trunk/src/ec/lenovo/h8/h8.c Tue Apr 12 20:18:24 2011        (r6490)
@@ -118,6 +118,7 @@
        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);
 

Modified: trunk/src/ec/lenovo/h8/h8.h
==============================================================================
--- trunk/src/ec/lenovo/h8/h8.h Tue Apr 12 20:18:12 2011        (r6489)
+++ trunk/src/ec/lenovo/h8/h8.h Tue Apr 12 20:18:24 2011        (r6490)
@@ -67,6 +67,8 @@
 #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

-- 
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to