summaryrefslogtreecommitdiff
path: root/src/superio/ite/it8716f
diff options
context:
space:
mode:
authorRonald Hoogenboom <hoogenboom30@zonnet.nl>2008-06-22 14:33:17 +0000
committerWard Vandewege <ward@gnu.org>2008-06-22 14:33:17 +0000
commitfb73fa1bcb3ac3579ad786911c09f05950c8b3a8 (patch)
tree412e11d0159aaed5e3c132c2fb364b3074c343ad /src/superio/ite/it8716f
parent14669ae023e9bb502866e9a49fb0577870dbda80 (diff)
Enable hardware fan control for m57sli.
Tested on v1 and v2 of the board. Signed-off-by: Ronald Hoogenboom <hoogenboom30@zonnet.nl> Signed-off-by: Ward Vandewege <ward@gnu.org> Acked-by: Ronald Hoogenboom <hoogenboom30@zonnet.nl> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3381 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/superio/ite/it8716f')
-rw-r--r--src/superio/ite/it8716f/superio.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/superio/ite/it8716f/superio.c b/src/superio/ite/it8716f/superio.c
index 39aa416820..51f2eb4105 100644
--- a/src/superio/ite/it8716f/superio.c
+++ b/src/superio/ite/it8716f/superio.c
@@ -50,6 +50,9 @@ static void pnp_exit_ext_func_mode(device_t dev)
pnp_write_config(dev, 0x02, 0x02);
}
+#ifdef HAVE_FANCTL
+extern void init_ec(uint16_t base);
+#else
static void pnp_write_index(uint16_t port_base, uint8_t reg, uint8_t value)
{
outb(reg, port_base);
@@ -62,9 +65,6 @@ 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;
@@ -80,7 +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
+#endif
static void it8716f_init(device_t dev)
{