From dacf083c2f72ab194e8462520800e11f42f089cf Mon Sep 17 00:00:00 2001 From: Felix Held Date: Mon, 21 Jan 2019 14:50:28 +0100 Subject: superio/common/conf_mode: use pnp_write_config instead of outb calls Change-Id: Ibab8e798bd6bee14ef4141373e48100504d6cb46 Signed-off-by: Felix Held Reviewed-on: https://review.coreboot.org/c/31061 Tested-by: build bot (Jenkins) Reviewed-by: Arthur Heymans --- src/superio/common/conf_mode.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/superio/common') diff --git a/src/superio/common/conf_mode.c b/src/superio/common/conf_mode.c index cbe1a9efb7..dec630bfa4 100644 --- a/src/superio/common/conf_mode.c +++ b/src/superio/common/conf_mode.c @@ -67,8 +67,7 @@ void pnp_enter_conf_mode_870155aa(struct device *dev) void pnp_exit_conf_mode_0202(struct device *dev) { - outb(0x02, dev->path.pnp.port); - outb(0x02, dev->path.pnp.port + 1); + pnp_write_config(dev, 0x02, (1 << 1)); } -- cgit v1.2.3