summaryrefslogtreecommitdiff
path: root/src/superio/ite/it8716f/superio.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/superio/ite/it8716f/superio.c')
-rw-r--r--src/superio/ite/it8716f/superio.c24
1 files changed, 3 insertions, 21 deletions
diff --git a/src/superio/ite/it8716f/superio.c b/src/superio/ite/it8716f/superio.c
index 874061f385..56747ba762 100644
--- a/src/superio/ite/it8716f/superio.c
+++ b/src/superio/ite/it8716f/superio.c
@@ -27,22 +27,9 @@
#include <pc80/keyboard.h>
#include <arch/io.h>
#include <stdlib.h>
-#include "it8716f.h"
-
-static void pnp_enter_ext_func_mode(struct device *dev)
-{
- u16 port = dev->path.pnp.port;
-
- outb(0x87, port);
- outb(0x01, port);
- outb(0x55, port);
- outb((port == 0x4e) ? 0xaa : 0x55, port);
-}
+#include <superio/conf_mode.h>
-static void pnp_exit_ext_func_mode(struct device *dev)
-{
- pnp_write_config(dev, 0x02, 0x02);
-}
+#include "it8716f.h"
#if !CONFIG_SUPERIO_ITE_IT8716F_OVERRIDE_FANCTL
static void pnp_write_index(u16 port_base, u8 reg, u8 value)
@@ -93,18 +80,13 @@ static void it8716f_init(struct device *dev)
}
}
-static const struct pnp_mode_ops pnp_conf_mode_ops = {
- .enter_conf_mode = pnp_enter_ext_func_mode,
- .exit_conf_mode = pnp_exit_ext_func_mode,
-};
-
static struct device_operations ops = {
.read_resources = pnp_read_resources,
.set_resources = pnp_set_resources,
.enable_resources = pnp_enable_resources,
.enable = pnp_alt_enable,
.init = it8716f_init,
- .ops_pnp_mode = &pnp_conf_mode_ops,
+ .ops_pnp_mode = &pnp_conf_mode_870155_aa,
};
static struct pnp_info pnp_dev_info[] = {