This patch adds automatic fan control for the CPU fan on the m57sli
board. This is done via the ec_init routine in a source file in the mainboard/gigabyte/m57sli directory. A Config variable 'HAVE_FANCTL' has been added to notify superio.c to get the ec_init externally. I (Ward) have tested this on the PLCC and the SOIC/SPI version of this board. It works. Signed-off-by: Ronald Hoogenboom <hoogenboom30@zonnet.nl> Acked-by: Ward Vandewege <ward@gnu.org> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3116 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
committed by
Ward Vandewege
parent
8684520b94
commit
56cf01f29d
@@ -62,6 +62,9 @@ static uint8_t pnp_read_index(uint16_t port_base, uint8_t reg)
|
||||
return inb(port_base + 1);
|
||||
}
|
||||
|
||||
#ifdef HAVE_FANCTL
|
||||
extern void init_ec(uint16_t base);
|
||||
#else
|
||||
static void init_ec(uint16_t base)
|
||||
{
|
||||
uint8_t value;
|
||||
@@ -77,6 +80,7 @@ static void init_ec(uint16_t base)
|
||||
printk_debug("FAN_CTL: reg = 0x%04x, writing value = 0x%02x\r\n",
|
||||
base + 0x14, value | 0x87);
|
||||
}
|
||||
#endif
|
||||
|
||||
static void it8716f_init(device_t dev)
|
||||
{
|
||||
|
Reference in New Issue
Block a user