summaryrefslogtreecommitdiff
path: root/src/superio/winbond
diff options
context:
space:
mode:
authorTimothy Pearson <tpearson@raptorengineeringinc.com>2016-05-18 13:31:05 -0500
committerTimothy Pearson <tpearson@raptorengineering.com>2016-05-20 04:11:58 +0200
commit9891b4a28b929b82d4121e2d31652af4bdd118ea (patch)
tree445d0b00cf1fbbb8ca9b1943343f48667eb8f79d /src/superio/winbond
parent09210a14870a9d3a2a607fa616b8ebc1d8661f6c (diff)
sio/winbond: Expose enter/exit configuration state functions
Certain mainboards, e.g. the ASUS KGPE-D16/KCMA-D8, require board-specific configuration changes to the SuperIO. Expose the functions needed to enter and exit configuration mode on Winbond devices. Change-Id: Ic86651872ecafcfe1398201be2b0768bbe460975 Signed-off-by: Timothy Pearson <tpearson@raptorengineeringinc.com> Reviewed-on: https://review.coreboot.org/14891 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com> Tested-by: Raptor Engineering Automated Test Stand <noreply@raptorengineeringinc.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/superio/winbond')
-rw-r--r--src/superio/winbond/common/early_serial.c4
-rw-r--r--src/superio/winbond/common/winbond.h3
2 files changed, 5 insertions, 2 deletions
diff --git a/src/superio/winbond/common/early_serial.c b/src/superio/winbond/common/early_serial.c
index 7bd1707f95..6482a94838 100644
--- a/src/superio/winbond/common/early_serial.c
+++ b/src/superio/winbond/common/early_serial.c
@@ -42,7 +42,7 @@
#define WINBOND_EXIT_KEY 0xAA
/* Enable configuration: pass entry key '0x87' into index port dev. */
-static void pnp_enter_conf_state(pnp_devfn_t dev)
+void pnp_enter_conf_state(pnp_devfn_t dev)
{
u16 port = dev >> 8;
outb(WINBOND_ENTRY_KEY, port);
@@ -50,7 +50,7 @@ static void pnp_enter_conf_state(pnp_devfn_t dev)
}
/* Disable configuration: pass exit key '0xAA' into index port dev. */
-static void pnp_exit_conf_state(pnp_devfn_t dev)
+void pnp_exit_conf_state(pnp_devfn_t dev)
{
u16 port = dev >> 8;
outb(WINBOND_EXIT_KEY, port);
diff --git a/src/superio/winbond/common/winbond.h b/src/superio/winbond/common/winbond.h
index ad5e4510f9..1f7e7b1794 100644
--- a/src/superio/winbond/common/winbond.h
+++ b/src/superio/winbond/common/winbond.h
@@ -22,4 +22,7 @@
void winbond_enable_serial(pnp_devfn_t dev, u16 iobase);
+void pnp_enter_conf_state(pnp_devfn_t dev);
+void pnp_exit_conf_state(pnp_devfn_t dev);
+
#endif /* SUPERIO_WINBOND_COMMON_ROMSTAGE_H */