summaryrefslogtreecommitdiff
path: root/src/superio/winbond/w83627hf
diff options
context:
space:
mode:
Diffstat (limited to 'src/superio/winbond/w83627hf')
-rw-r--r--src/superio/winbond/w83627hf/superio.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/superio/winbond/w83627hf/superio.c b/src/superio/winbond/w83627hf/superio.c
index 318eaa4b03..54120fbe0b 100644
--- a/src/superio/winbond/w83627hf/superio.c
+++ b/src/superio/winbond/w83627hf/superio.c
@@ -20,6 +20,7 @@
#include <device/device.h>
#include <device/pnp.h>
#include <superio/conf_mode.h>
+#include <superio/hwm5_conf.h>
#include <console/console.h>
#include <pc80/keyboard.h>
#include <pc80/mc146818rtc.h>
@@ -72,12 +73,12 @@ static void init_hwm(u16 base)
for (i = 0; i < ARRAY_SIZE(hwm_reg_values); i += 3) {
reg = hwm_reg_values[i];
- value = pnp_read_index(base, reg);
+ value = pnp_read_hwm5_index(base, reg);
value &= 0xff & hwm_reg_values[i + 1];
value |= 0xff & hwm_reg_values[i + 2];
printk(BIOS_DEBUG, "base = 0x%04x, reg = 0x%02x, "
"value = 0x%02x\n", base, reg, value);
- pnp_write_index(base, reg, value);
+ pnp_write_hwm5_index(base, reg, value);
}
}
@@ -94,8 +95,7 @@ static void w83627hf_init(struct device *dev)
break;
case W83627HF_HWM:
res0 = find_resource(dev, PNP_IDX_IO0);
-#define HWM_INDEX_PORT 5
- init_hwm(res0->base + HWM_INDEX_PORT);
+ init_hwm(res0->base);
break;
case W83627HF_ACPI:
init_acpi(dev);