aboutsummaryrefslogtreecommitdiff
path: root/src/superio/winbond
diff options
context:
space:
mode:
authorDave Frodin <dave.frodin@se-eng.com>2015-05-12 06:53:11 -0600
committerDave Frodin <dave.frodin@se-eng.com>2015-05-14 20:49:24 +0200
commit2d3964ec29ecc5df5783f8c7366fb1416f83f68c (patch)
treeba00d786f3e007c89a8bb051a64bc973c9d745df /src/superio/winbond
parentd3b194e6fe0a9d2d730ca9520f9883ce3fa763d7 (diff)
superio: Replace the indexed I/O functions
Replace the multiple indexed I/O read and write functions with common functions. Change-Id: Idfe7a8784c28d51b3fbcb2f4e26beaa0b91741a8 Signed-off-by: Dave Frodin <dave.frodin@se-eng.com> Reviewed-on: http://review.coreboot.org/10145 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/superio/winbond')
-rw-r--r--src/superio/winbond/w83627ehg/superio.c12
-rw-r--r--src/superio/winbond/w83627hf/superio.c12
2 files changed, 0 insertions, 24 deletions
diff --git a/src/superio/winbond/w83627ehg/superio.c b/src/superio/winbond/w83627ehg/superio.c
index 73ab022859..7c91a4214f 100644
--- a/src/superio/winbond/w83627ehg/superio.c
+++ b/src/superio/winbond/w83627ehg/superio.c
@@ -32,18 +32,6 @@
#include <stdlib.h>
#include "w83627ehg.h"
-static void pnp_write_index(u16 port, u8 reg, u8 value)
-{
- outb(reg, port);
- outb(value, port + 1);
-}
-
-static u8 pnp_read_index(u16 port, u8 reg)
-{
- outb(reg, port);
- return inb(port + 1);
-}
-
static void enable_hwm_smbus(struct device *dev)
{
u8 reg8;
diff --git a/src/superio/winbond/w83627hf/superio.c b/src/superio/winbond/w83627hf/superio.c
index 2d69fad201..9ac2683f0e 100644
--- a/src/superio/winbond/w83627hf/superio.c
+++ b/src/superio/winbond/w83627hf/superio.c
@@ -32,18 +32,6 @@
#include <stdlib.h>
#include "w83627hf.h"
-static void pnp_write_index(u16 port, u8 reg, u8 value)
-{
- outb(reg, port);
- outb(value, port + 1);
-}
-
-static u8 pnp_read_index(u16 port, u8 reg)
-{
- outb(reg, port);
- return inb(port + 1);
-}
-
static void enable_hwm_smbus(struct device *dev)
{
u8 reg8;