From 6167365530e0b8b2369077cf599a66b64bb07871 Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Tue, 11 Oct 2016 11:56:32 +0200 Subject: sio/ite/common: Export pnp_enter/exit_conf_state() Change-Id: I8cbfe49516e685c1b3e150b23f9fcac513f1f3dc Signed-off-by: Nico Huber Reviewed-on: https://review.coreboot.org/17285 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich --- src/superio/ite/common/early_serial.c | 4 ++-- src/superio/ite/common/ite.h | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'src/superio/ite') 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 */ -- cgit v1.2.3