summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNico Huber <nico.huber@secunet.com>2016-10-11 11:56:32 +0200
committerNico Huber <nico.h@gmx.de>2016-12-07 20:00:57 +0100
commit6167365530e0b8b2369077cf599a66b64bb07871 (patch)
treec755b1c2d66288425143e9ba2fae960bbf04430c
parent56c848cdc9cd0d8d022c3b828c200cfa51affe56 (diff)
sio/ite/common: Export pnp_enter/exit_conf_state()
Change-Id: I8cbfe49516e685c1b3e150b23f9fcac513f1f3dc Signed-off-by: Nico Huber <nico.huber@secunet.com> Reviewed-on: https://review.coreboot.org/17285 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
-rw-r--r--src/superio/ite/common/early_serial.c4
-rw-r--r--src/superio/ite/common/ite.h3
2 files changed, 5 insertions, 2 deletions
diff --git a/src/superio/ite/common/early_serial.c b/src/superio/ite/common/early_serial.c
index a3150093b1..24d5937ce7 100644
--- a/src/superio/ite/common/early_serial.c
+++ b/src/superio/ite/common/early_serial.c
@@ -36,7 +36,7 @@ static void ite_sio_write(pnp_devfn_t dev, u8 reg, u8 value)
}
/* Enable configuration */
-static void pnp_enter_conf_state(pnp_devfn_t dev)
+void pnp_enter_conf_state(pnp_devfn_t dev)
{
u16 port = dev >> 8;
@@ -47,7 +47,7 @@ static void pnp_enter_conf_state(pnp_devfn_t dev)
}
/* Disable configuration */
-static void pnp_exit_conf_state(pnp_devfn_t dev)
+void pnp_exit_conf_state(pnp_devfn_t dev)
{
ite_sio_write(dev, ITE_CONFIG_REG_CC, 0x02);
}
diff --git a/src/superio/ite/common/ite.h b/src/superio/ite/common/ite.h
index 02700a61e2..7e0e80ec96 100644
--- a/src/superio/ite/common/ite.h
+++ b/src/superio/ite/common/ite.h
@@ -31,4 +31,7 @@ void ite_reg_write(pnp_devfn_t dev, u8 reg, u8 value);
void ite_enable_3vsbsw(pnp_devfn_t dev);
void ite_kill_watchdog(pnp_devfn_t dev);
+void pnp_enter_conf_state(pnp_devfn_t dev);
+void pnp_exit_conf_state(pnp_devfn_t dev);
+
#endif /* SUPERIO_ITE_COMMON_ROMSTAGE_H */