summaryrefslogtreecommitdiff
path: root/src/superio/winbond/w83667hg-a
diff options
context:
space:
mode:
authorPatrick Rudolph <patrick.rudolph@9elements.com>2019-12-10 12:08:37 +0100
committerPatrick Georgi <pgeorgi@google.com>2019-12-13 09:04:55 +0000
commit98b72dadf07bf8694f78384d21a4add7ac76c1f2 (patch)
treec062709bc8a6565629bb08da8f0abe629216ba6a /src/superio/winbond/w83667hg-a
parent8a2204896a4bd784a34d3c4a0bba1b5415aecf52 (diff)
superio/*: Don't use conf_mode directly
Use the functions defined in device/pnp.h instead of using the conf_mode directly. This will make future refactoring easier. Change-Id: Ibb94d86b3ee861f44cded469ff58b545dd7311fd Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/37638 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src/superio/winbond/w83667hg-a')
-rw-r--r--src/superio/winbond/w83667hg-a/superio.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/superio/winbond/w83667hg-a/superio.c b/src/superio/winbond/w83667hg-a/superio.c
index 4a995d6b5d..69ab91bf98 100644
--- a/src/superio/winbond/w83667hg-a/superio.c
+++ b/src/superio/winbond/w83667hg-a/superio.c
@@ -43,29 +43,29 @@ static void w83667hg_a_init(struct device *dev)
/* TODO: Might potentially need code for HWM or FDC etc. */
case W83667HG_A_KBC:
/* Enable mouse controller */
- pnp_enter_conf_mode_8787(dev);
+ pnp_enter_conf_mode(dev);
byte = pnp_read_config(dev, 0x2a);
byte &= ~(0x1 << 1);
pnp_write_config(dev, 0x2a, byte);
- pnp_exit_conf_mode_aa(dev);
+ pnp_exit_conf_mode(dev);
mouse_detected = pc_keyboard_init(PROBE_AUX_DEVICE);
if (!mouse_detected && !acpi_is_wakeup_s3()) {
printk(BIOS_INFO, "%s: Disable mouse controller.",
__func__);
- pnp_enter_conf_mode_8787(dev);
+ pnp_enter_conf_mode(dev);
byte = pnp_read_config(dev, 0x2a);
byte |= 0x1 << 1;
pnp_write_config(dev, 0x2a, byte);
- pnp_exit_conf_mode_aa(dev);
+ pnp_exit_conf_mode(dev);
}
break;
case W83667HG_A_ACPI:
/* Set power state after power fail */
power_status = CONFIG_MAINBOARD_POWER_FAILURE_STATE;
get_option(&power_status, "power_on_after_fail");
- pnp_enter_conf_mode_8787(dev);
+ pnp_enter_conf_mode(dev);
pnp_set_logical_device(dev);
byte = pnp_read_config(dev, 0xe4);
byte &= ~0x60;
@@ -74,7 +74,7 @@ static void w83667hg_a_init(struct device *dev)
else if (power_status == MAINBOARD_POWER_KEEP)
byte |= (0x2 << 5);
pnp_write_config(dev, 0xe4, byte);
- pnp_exit_conf_mode_aa(dev);
+ pnp_exit_conf_mode(dev);
printk(BIOS_INFO, "set power %s after power fail\n", power_status ? "on" : "off");
break;
}