summaryrefslogtreecommitdiff
path: root/src/superio/winbond/w83627uhg
diff options
context:
space:
mode:
Diffstat (limited to 'src/superio/winbond/w83627uhg')
-rw-r--r--src/superio/winbond/w83627uhg/superio.c19
1 files changed, 2 insertions, 17 deletions
diff --git a/src/superio/winbond/w83627uhg/superio.c b/src/superio/winbond/w83627uhg/superio.c
index d2cbdc945c..3f1ca38d30 100644
--- a/src/superio/winbond/w83627uhg/superio.c
+++ b/src/superio/winbond/w83627uhg/superio.c
@@ -21,6 +21,7 @@
#include <arch/io.h>
#include <device/device.h>
#include <device/pnp.h>
+#include <superio/conf_mode.h>
#include <console/console.h>
#include <string.h>
#include <stdint.h>
@@ -30,17 +31,6 @@
#include "chip.h"
#include "w83627uhg.h"
-static void w83627uhg_enter_ext_func_mode(device_t dev)
-{
- outb(0x87, dev->path.pnp.port);
- outb(0x87, dev->path.pnp.port);
-}
-
-static void w83627uhg_exit_ext_func_mode(device_t dev)
-{
- outb(0xaa, dev->path.pnp.port);
-}
-
/*
* Set the UART clock source.
*
@@ -101,18 +91,13 @@ static void w83627uhg_init(device_t dev)
}
}
-static const struct pnp_mode_ops pnp_conf_mode_ops = {
- .enter_conf_mode = w83627uhg_enter_ext_func_mode,
- .exit_conf_mode = w83627uhg_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_enable,
.init = w83627uhg_init,
- .ops_pnp_mode = &pnp_conf_mode_ops,
+ .ops_pnp_mode = &pnp_conf_mode_8787_aa,
};
static struct pnp_info pnp_dev_info[] = {