diff options
author | Keith Hui <buurin@gmail.com> | 2017-08-13 16:31:18 -0400 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2017-08-21 17:02:45 +0000 |
commit | bb73c98d24f10941b060df983b0c8b7169f6a25e (patch) | |
tree | 2b966409a4119e57ec24f3a1a971dbeb24988d4a /src/mainboard/ibase/mb899 | |
parent | 928c6c6336f2f04a7bd2d489ac9901aa0d7dfa2a (diff) |
Boards w/ Winbond superios: Use common config entry code
Six mainboards with Winbond superios directly configure
them in romstage.c. All use the common Winbond romstage
code. Change them to use the common config entry code to
allow for code refactoring such as [1]. Build tested.
[1] https://review.coreboot.org/20988
Change-Id: Icecd52ec622b9da86edb07c52893f4db001e5562
Signed-off-by: Keith Hui <buurin@gmail.com>
Reviewed-on: https://review.coreboot.org/20989
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'src/mainboard/ibase/mb899')
-rw-r--r-- | src/mainboard/ibase/mb899/romstage.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mainboard/ibase/mb899/romstage.c b/src/mainboard/ibase/mb899/romstage.c index 7088f1deea..43c56778ba 100644 --- a/src/mainboard/ibase/mb899/romstage.c +++ b/src/mainboard/ibase/mb899/romstage.c @@ -62,7 +62,7 @@ static void early_superio_config_w83627ehg(void) pnp_devfn_t dev; dev = DUMMY_DEV; - pnp_enter_ext_func_mode(dev); + pnp_enter_conf_state(dev); pnp_write_config(dev, 0x24, 0xc4); // PNPCSV @@ -121,7 +121,7 @@ static void early_superio_config_w83627ehg(void) pnp_set_iobase(dev, PNP_IDX_IO0, 0xa00); pnp_set_enable(dev, 1); - pnp_exit_ext_func_mode(dev); + pnp_exit_conf_state(dev); } static void rcba_config(void) |