summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFelix Held <felix-github@felixheld.de>2019-01-21 14:50:28 +0100
committerFelix Held <felix-coreboot@felixheld.de>2019-01-25 17:53:59 +0000
commitdacf083c2f72ab194e8462520800e11f42f089cf (patch)
tree217af7d7203b3964f93461c0e1721fecd0e21cb3 /src
parenta6450d7b761ea62201d83a99584e84d754e667b8 (diff)
superio/common/conf_mode: use pnp_write_config instead of outb calls
Change-Id: Ibab8e798bd6bee14ef4141373e48100504d6cb46 Signed-off-by: Felix Held <felix-github@felixheld.de> Reviewed-on: https://review.coreboot.org/c/31061 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'src')
-rw-r--r--src/superio/common/conf_mode.c3
1 files changed, 1 insertions, 2 deletions
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));
}