summaryrefslogtreecommitdiff
path: root/src/superio
diff options
context:
space:
mode:
authorStefan Reinauer <reinauer@chromium.org>2013-03-21 11:51:41 -0700
committerStefan Reinauer <stefan.reinauer@coreboot.org>2013-03-22 00:00:09 +0100
commit24d1d4b47274eb82893e6726472a991a36fce0aa (patch)
tree57126316330f6f9d407f605fa831ce530650f069 /src/superio
parent55ed3106556a9bcbe36d3389dc5230d4a4ee2a40 (diff)
x86: Unify arch/io.h and arch/romcc_io.h
Here's the great news: From now on you don't have to worry about hitting the right io.h include anymore. Just forget about romcc_io.h and use io.h instead. This cleanup has a number of advantages, like you don't have to guard device/ includes for SMM and pre RAM anymore. This allows to get rid of a number of ifdefs and will generally make the code more readable and understandable. Potentially in the future some of the code in the io.h __PRE_RAM__ path should move to device.h or other device/ includes instead, but that's another incremental change. Change-Id: I356f06110e2e355e9a5b4b08c132591f36fec7d9 Signed-off-by: Stefan Reinauer <reinauer@google.com> Reviewed-on: http://review.coreboot.org/2872 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'src/superio')
-rw-r--r--src/superio/fintek/f71805f/early_serial.c2
-rw-r--r--src/superio/fintek/f71859/early_serial.c2
-rw-r--r--src/superio/fintek/f71863fg/early_serial.c2
-rw-r--r--src/superio/fintek/f71872/early_serial.c2
-rw-r--r--src/superio/fintek/f71889/early_serial.c2
-rw-r--r--src/superio/fintek/f81865f/f81865f_early_serial.c2
-rw-r--r--src/superio/intel/i3100/early_serial.c2
-rw-r--r--src/superio/ite/it8661f/early_serial.c2
-rw-r--r--src/superio/ite/it8671f/early_serial.c2
-rw-r--r--src/superio/ite/it8673f/early_serial.c2
-rw-r--r--src/superio/ite/it8705f/early_serial.c2
-rw-r--r--src/superio/ite/it8712f/early_serial.c2
-rw-r--r--src/superio/ite/it8716f/early_init.c2
-rw-r--r--src/superio/ite/it8716f/early_serial.c2
-rw-r--r--src/superio/ite/it8718f/early_serial.c2
-rw-r--r--src/superio/ite/it8721f/early_serial.c2
-rw-r--r--src/superio/ite/it8772f/early_serial.c2
-rw-r--r--src/superio/nsc/pc8374/early_init.c2
-rw-r--r--src/superio/nsc/pc87309/early_serial.c2
-rw-r--r--src/superio/nsc/pc87351/early_serial.c2
-rw-r--r--src/superio/nsc/pc87360/early_serial.c2
-rw-r--r--src/superio/nsc/pc87366/early_serial.c2
-rw-r--r--src/superio/nsc/pc87392/early_serial.c2
-rw-r--r--src/superio/nsc/pc87417/early_init.c2
-rw-r--r--src/superio/nsc/pc87417/early_serial.c2
-rw-r--r--src/superio/nsc/pc87427/early_init.c2
-rw-r--r--src/superio/nsc/pc97317/early_serial.c2
-rw-r--r--src/superio/nuvoton/wpcm450/early_init.c1
-rw-r--r--src/superio/serverengines/pilot/early_serial.c2
-rw-r--r--src/superio/smsc/fdc37m60x/early_serial.c2
-rw-r--r--src/superio/smsc/kbc1100/kbc1100_early_init.c2
-rw-r--r--src/superio/smsc/lpc47b272/early_serial.c2
-rw-r--r--src/superio/smsc/lpc47b397/early_serial.c2
-rw-r--r--src/superio/smsc/lpc47m10x/early_serial.c2
-rw-r--r--src/superio/smsc/lpc47m15x/early_serial.c2
-rw-r--r--src/superio/smsc/lpc47n217/early_serial.c2
-rw-r--r--src/superio/smsc/lpc47n227/early_serial.c2
-rw-r--r--src/superio/smsc/sch4037/sch4037_early_init.c2
-rw-r--r--src/superio/smsc/sio1036/sio1036_early_init.c2
-rw-r--r--src/superio/smsc/smscsuperio/early_serial.c2
-rw-r--r--src/superio/winbond/w83627dhg/early_serial.c1
-rw-r--r--src/superio/winbond/w83627ehg/early_init.c2
-rw-r--r--src/superio/winbond/w83627ehg/early_serial.c2
-rw-r--r--src/superio/winbond/w83627hf/early_init.c2
-rw-r--r--src/superio/winbond/w83627hf/early_serial.c2
-rw-r--r--src/superio/winbond/w83627thg/early_serial.c2
-rw-r--r--src/superio/winbond/w83627uhg/early_serial.c3
-rw-r--r--src/superio/winbond/w83697hf/early_serial.c3
-rw-r--r--src/superio/winbond/w83977f/early_serial.c2
-rw-r--r--src/superio/winbond/w83977tf/early_serial.c2
50 files changed, 48 insertions, 52 deletions
diff --git a/src/superio/fintek/f71805f/early_serial.c b/src/superio/fintek/f71805f/early_serial.c
index e774f0c0f9..827f870a37 100644
--- a/src/superio/fintek/f71805f/early_serial.c
+++ b/src/superio/fintek/f71805f/early_serial.c
@@ -20,7 +20,7 @@
/* Pre-RAM driver for the Fintek F71805F/FG Super I/O chip. */
-#include <arch/romcc_io.h>
+#include <arch/io.h>
#include "f71805f.h"
static void pnp_enter_conf_state(device_t dev)
diff --git a/src/superio/fintek/f71859/early_serial.c b/src/superio/fintek/f71859/early_serial.c
index 6781ad7bd8..4401714b98 100644
--- a/src/superio/fintek/f71859/early_serial.c
+++ b/src/superio/fintek/f71859/early_serial.c
@@ -20,7 +20,7 @@
/* Pre-RAM driver for the Fintek F71859 Super I/O chip. */
-#include <arch/romcc_io.h>
+#include <arch/io.h>
#include "f71859.h"
static void pnp_enter_conf_state(device_t dev)
diff --git a/src/superio/fintek/f71863fg/early_serial.c b/src/superio/fintek/f71863fg/early_serial.c
index bf6c9ab43e..5d1cfb715e 100644
--- a/src/superio/fintek/f71863fg/early_serial.c
+++ b/src/superio/fintek/f71863fg/early_serial.c
@@ -20,7 +20,7 @@
/* Pre-RAM driver for the Fintek F71863FG Super I/O chip. */
-#include <arch/romcc_io.h>
+#include <arch/io.h>
#include "f71863fg.h"
static void pnp_enter_conf_state(device_t dev)
diff --git a/src/superio/fintek/f71872/early_serial.c b/src/superio/fintek/f71872/early_serial.c
index 55646a4a93..af5cdb3545 100644
--- a/src/superio/fintek/f71872/early_serial.c
+++ b/src/superio/fintek/f71872/early_serial.c
@@ -20,7 +20,7 @@
/* Pre-RAM driver for the Fintek F71872F/FG Super I/O chip. */
-#include <arch/romcc_io.h>
+#include <arch/io.h>
#include "f71872.h"
static void pnp_enter_conf_state(device_t dev)
diff --git a/src/superio/fintek/f71889/early_serial.c b/src/superio/fintek/f71889/early_serial.c
index 4548e1c01b..9623cbd2a3 100644
--- a/src/superio/fintek/f71889/early_serial.c
+++ b/src/superio/fintek/f71889/early_serial.c
@@ -19,7 +19,7 @@
*/
#include <stdint.h>
-#include <arch/romcc_io.h>
+#include <arch/io.h>
#include "f71889.h"
static void pnp_enter_conf_state(device_t dev)
diff --git a/src/superio/fintek/f81865f/f81865f_early_serial.c b/src/superio/fintek/f81865f/f81865f_early_serial.c
index 80af5aaaf6..2989b5f911 100644
--- a/src/superio/fintek/f81865f/f81865f_early_serial.c
+++ b/src/superio/fintek/f81865f/f81865f_early_serial.c
@@ -20,7 +20,7 @@
/* Pre-RAM driver for the Fintek F81865F/FG Super I/O chip. */
-#include <arch/romcc_io.h>
+#include <arch/io.h>
#include "f81865f.h"
static void pnp_enter_conf_state(device_t dev)
diff --git a/src/superio/intel/i3100/early_serial.c b/src/superio/intel/i3100/early_serial.c
index 9508bc3ad9..f95cf8a533 100644
--- a/src/superio/intel/i3100/early_serial.c
+++ b/src/superio/intel/i3100/early_serial.c
@@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <arch/romcc_io.h>
+#include <arch/io.h>
#include "i3100.h"
static void pnp_enter_ext_func_mode(device_t dev)
diff --git a/src/superio/ite/it8661f/early_serial.c b/src/superio/ite/it8661f/early_serial.c
index 4bc88b15b3..ee132fa077 100644
--- a/src/superio/ite/it8661f/early_serial.c
+++ b/src/superio/ite/it8661f/early_serial.c
@@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <arch/romcc_io.h>
+#include <arch/io.h>
#include "it8661f.h"
/* Perform MB PnP setup to put the SIO chip at 0x3f0. */
diff --git a/src/superio/ite/it8671f/early_serial.c b/src/superio/ite/it8671f/early_serial.c
index 7b9e1b5491..c2ba6e02a1 100644
--- a/src/superio/ite/it8671f/early_serial.c
+++ b/src/superio/ite/it8671f/early_serial.c
@@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <arch/romcc_io.h>
+#include <arch/io.h>
#include "it8671f.h"
/* The base address is 0x3f0, 0x3bd, or 0x370, depending on config bytes. */
diff --git a/src/superio/ite/it8673f/early_serial.c b/src/superio/ite/it8673f/early_serial.c
index 61e8effd08..987b5e6135 100644
--- a/src/superio/ite/it8673f/early_serial.c
+++ b/src/superio/ite/it8673f/early_serial.c
@@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <arch/romcc_io.h>
+#include <arch/io.h>
#include "it8673f.h"
/* The base address is 0x3f0, 0x3bd, or 0x370, depending on config bytes. */
diff --git a/src/superio/ite/it8705f/early_serial.c b/src/superio/ite/it8705f/early_serial.c
index d1e6b4f211..ccc92c2dbf 100644
--- a/src/superio/ite/it8705f/early_serial.c
+++ b/src/superio/ite/it8705f/early_serial.c
@@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <arch/romcc_io.h>
+#include <arch/io.h>
#include "it8705f.h"
/* The base address is 0x2e or 0x4e, depending on config bytes. */
diff --git a/src/superio/ite/it8712f/early_serial.c b/src/superio/ite/it8712f/early_serial.c
index 6cf5afd733..51564fce04 100644
--- a/src/superio/ite/it8712f/early_serial.c
+++ b/src/superio/ite/it8712f/early_serial.c
@@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <arch/romcc_io.h>
+#include <arch/io.h>
#include "it8712f.h"
/* The base address is 0x2e or 0x4e, depending on config bytes. */
diff --git a/src/superio/ite/it8716f/early_init.c b/src/superio/ite/it8716f/early_init.c
index 8d684b6e61..cfac2a9cbf 100644
--- a/src/superio/ite/it8716f/early_init.c
+++ b/src/superio/ite/it8716f/early_init.c
@@ -19,7 +19,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <arch/romcc_io.h>
+#include <arch/io.h>
#include "it8716f.h"
void it8716f_disable_dev(device_t dev)
diff --git a/src/superio/ite/it8716f/early_serial.c b/src/superio/ite/it8716f/early_serial.c
index 55047f8e8b..02f030449c 100644
--- a/src/superio/ite/it8716f/early_serial.c
+++ b/src/superio/ite/it8716f/early_serial.c
@@ -21,7 +21,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <arch/romcc_io.h>
+#include <arch/io.h>
#include "it8716f.h"
/* The base address is 0x2e or 0x4e, depending on config bytes. */
diff --git a/src/superio/ite/it8718f/early_serial.c b/src/superio/ite/it8718f/early_serial.c
index a4335f387e..308b67cd40 100644
--- a/src/superio/ite/it8718f/early_serial.c
+++ b/src/superio/ite/it8718f/early_serial.c
@@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <arch/romcc_io.h>
+#include <arch/io.h>
#include "it8718f.h"
/* The base address is 0x2e or 0x4e, depending on config bytes. */
diff --git a/src/superio/ite/it8721f/early_serial.c b/src/superio/ite/it8721f/early_serial.c
index 8272ef6278..20e19b65aa 100644
--- a/src/superio/ite/it8721f/early_serial.c
+++ b/src/superio/ite/it8721f/early_serial.c
@@ -19,7 +19,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <arch/romcc_io.h>
+#include <arch/io.h>
#include "it8721f.h"
/* The base address is 0x2e or 0x4e, depending on config bytes. */
diff --git a/src/superio/ite/it8772f/early_serial.c b/src/superio/ite/it8772f/early_serial.c
index 8cf459a3a3..8bf2964a50 100644
--- a/src/superio/ite/it8772f/early_serial.c
+++ b/src/superio/ite/it8772f/early_serial.c
@@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <arch/romcc_io.h>
+#include <arch/io.h>
#include <device/pnp_def.h>
#include "it8772f.h"
diff --git a/src/superio/nsc/pc8374/early_init.c b/src/superio/nsc/pc8374/early_init.c
index f5e4e80da7..d3f601df12 100644
--- a/src/superio/nsc/pc8374/early_init.c
+++ b/src/superio/nsc/pc8374/early_init.c
@@ -19,7 +19,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <arch/romcc_io.h>
+#include <arch/io.h>
#include "pc8374.h"
static void pc8374_enable(u16 iobase, u8 *init)
diff --git a/src/superio/nsc/pc87309/early_serial.c b/src/superio/nsc/pc87309/early_serial.c
index f6be3ed4dd..131f0aaeac 100644
--- a/src/superio/nsc/pc87309/early_serial.c
+++ b/src/superio/nsc/pc87309/early_serial.c
@@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <arch/romcc_io.h>
+#include <arch/io.h>
#include "pc87309.h"
static void pc87309_enable_serial(device_t dev, u16 iobase)
diff --git a/src/superio/nsc/pc87351/early_serial.c b/src/superio/nsc/pc87351/early_serial.c
index 6f97a76b99..c34538fd7c 100644
--- a/src/superio/nsc/pc87351/early_serial.c
+++ b/src/superio/nsc/pc87351/early_serial.c
@@ -19,7 +19,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <arch/romcc_io.h>
+#include <arch/io.h>
#include "pc87351.h"
static void pc87351_enable_serial(device_t dev, u16 iobase)
diff --git a/src/superio/nsc/pc87360/early_serial.c b/src/superio/nsc/pc87360/early_serial.c
index 657cd6859d..da4abdb330 100644
--- a/src/superio/nsc/pc87360/early_serial.c
+++ b/src/superio/nsc/pc87360/early_serial.c
@@ -19,7 +19,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <arch/romcc_io.h>
+#include <arch/io.h>
#include "pc87360.h"
static void pc87360_enable_serial(device_t dev, u16 iobase)
diff --git a/src/superio/nsc/pc87366/early_serial.c b/src/superio/nsc/pc87366/early_serial.c
index e0bc2c5268..e173afd632 100644
--- a/src/superio/nsc/pc87366/early_serial.c
+++ b/src/superio/nsc/pc87366/early_serial.c
@@ -19,7 +19,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <arch/romcc_io.h>
+#include <arch/io.h>
#include "pc87366.h"
static void pc87366_enable_serial(device_t dev, u16 iobase)
diff --git a/src/superio/nsc/pc87392/early_serial.c b/src/superio/nsc/pc87392/early_serial.c
index a485ddbfad..6e85fb96b8 100644
--- a/src/superio/nsc/pc87392/early_serial.c
+++ b/src/superio/nsc/pc87392/early_serial.c
@@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <arch/romcc_io.h>
+#include <arch/io.h>
#include "pc87392.h"
static void pc87392_enable_serial(device_t dev, u16 iobase)
diff --git a/src/superio/nsc/pc87417/early_init.c b/src/superio/nsc/pc87417/early_init.c
index 59f1ab61e8..d1870f9cba 100644
--- a/src/superio/nsc/pc87417/early_init.c
+++ b/src/superio/nsc/pc87417/early_init.c
@@ -20,7 +20,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <arch/romcc_io.h>
+#include <arch/io.h>
#include "pc87417.h"
static void pc87417_disable_dev(device_t dev)
diff --git a/src/superio/nsc/pc87417/early_serial.c b/src/superio/nsc/pc87417/early_serial.c
index 0e87fc576d..33bae7e071 100644
--- a/src/superio/nsc/pc87417/early_serial.c
+++ b/src/superio/nsc/pc87417/early_serial.c
@@ -20,7 +20,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <arch/romcc_io.h>
+#include <arch/io.h>
#include "pc87417.h"
void pc87417_enable_serial(device_t dev, u16 iobase)
diff --git a/src/superio/nsc/pc87427/early_init.c b/src/superio/nsc/pc87427/early_init.c
index 512e440c11..6df1b9f88d 100644
--- a/src/superio/nsc/pc87427/early_init.c
+++ b/src/superio/nsc/pc87427/early_init.c
@@ -19,7 +19,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <arch/romcc_io.h>
+#include <arch/io.h>
#include "pc87427.h"
static void pc87427_disable_dev(device_t dev)
diff --git a/src/superio/nsc/pc97317/early_serial.c b/src/superio/nsc/pc97317/early_serial.c
index 593c22eca2..0c215611bc 100644
--- a/src/superio/nsc/pc97317/early_serial.c
+++ b/src/superio/nsc/pc97317/early_serial.c
@@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <arch/romcc_io.h>
+#include <arch/io.h>
#include "pc97317.h"
#define PM_DEV PNP_DEV(0x2e, PC97317_PM)
diff --git a/src/superio/nuvoton/wpcm450/early_init.c b/src/superio/nuvoton/wpcm450/early_init.c
index a90f2662e0..d95eaaea41 100644
--- a/src/superio/nuvoton/wpcm450/early_init.c
+++ b/src/superio/nuvoton/wpcm450/early_init.c
@@ -19,7 +19,6 @@
*/
#include <arch/io.h>
-#include <arch/romcc_io.h>
#include <device/pnp_def.h>
#include "wpcm450.h"
diff --git a/src/superio/serverengines/pilot/early_serial.c b/src/superio/serverengines/pilot/early_serial.c
index f339d8e272..4112901c4d 100644
--- a/src/superio/serverengines/pilot/early_serial.c
+++ b/src/superio/serverengines/pilot/early_serial.c
@@ -21,7 +21,7 @@
/* PILOT Super I/O is only based on LPC observation done on factory system. */
-#include <arch/romcc_io.h>
+#include <arch/io.h>
#include "pilot.h"
/* Pilot uses 0x5A/0xA5 pattern to actiavte deactivate config access. */
diff --git a/src/superio/smsc/fdc37m60x/early_serial.c b/src/superio/smsc/fdc37m60x/early_serial.c
index a3539b15d1..38cb0f8f27 100644
--- a/src/superio/smsc/fdc37m60x/early_serial.c
+++ b/src/superio/smsc/fdc37m60x/early_serial.c
@@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <arch/romcc_io.h>
+#include <arch/io.h>
#include "fdc37m60x.h"
/* The base address is 0x3f0 or 0x370, depending on the SYSOPT pin. */
diff --git a/src/superio/smsc/kbc1100/kbc1100_early_init.c b/src/superio/smsc/kbc1100/kbc1100_early_init.c
index e12db31d0f..5d74c3230e 100644
--- a/src/superio/smsc/kbc1100/kbc1100_early_init.c
+++ b/src/superio/smsc/kbc1100/kbc1100_early_init.c
@@ -19,7 +19,7 @@
/* Pre-RAM driver for the SMSC KBC1100 Super I/O chip */
-#include <arch/romcc_io.h>
+#include <arch/io.h>
#include "kbc1100.h"
static inline void pnp_enter_conf_state(device_t dev)
diff --git a/src/superio/smsc/lpc47b272/early_serial.c b/src/superio/smsc/lpc47b272/early_serial.c
index 54e854c65e..b2f0d1b724 100644
--- a/src/superio/smsc/lpc47b272/early_serial.c
+++ b/src/superio/smsc/lpc47b272/early_serial.c
@@ -20,7 +20,7 @@
/* Pre-RAM driver for SMSC LPC47B272 Super I/O chip. */
-#include <arch/romcc_io.h>
+#include <arch/io.h>
#include "lpc47b272.h"
static void pnp_enter_conf_state(device_t dev)
diff --git a/src/superio/smsc/lpc47b397/early_serial.c b/src/superio/smsc/lpc47b397/early_serial.c
index 930e41a331..31d515b5c0 100644
--- a/src/superio/smsc/lpc47b397/early_serial.c
+++ b/src/superio/smsc/lpc47b397/early_serial.c
@@ -20,7 +20,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <arch/romcc_io.h>
+#include <arch/io.h>
#include "lpc47b397.h"
static void pnp_enter_conf_state(device_t dev)
diff --git a/src/superio/smsc/lpc47m10x/early_serial.c b/src/superio/smsc/lpc47m10x/early_serial.c
index 99aebbc84d..fc6efb91d8 100644
--- a/src/superio/smsc/lpc47m10x/early_serial.c
+++ b/src/superio/smsc/lpc47m10x/early_serial.c
@@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <arch/romcc_io.h>
+#include <arch/io.h>
#include "lpc47m10x.h"
static void pnp_enter_conf_state(device_t dev)
diff --git a/src/superio/smsc/lpc47m15x/early_serial.c b/src/superio/smsc/lpc47m15x/early_serial.c
index bd57a28b70..7d75baecbe 100644
--- a/src/superio/smsc/lpc47m15x/early_serial.c
+++ b/src/superio/smsc/lpc47m15x/early_serial.c
@@ -19,7 +19,7 @@
/* Pre-RAM driver for the SMSC LPC47M15X Super I/O chip */
-#include <arch/romcc_io.h>
+#include <arch/io.h>
#include "lpc47m15x.h"
static void pnp_enter_conf_state(device_t dev)
diff --git a/src/superio/smsc/lpc47n217/early_serial.c b/src/superio/smsc/lpc47n217/early_serial.c
index 6c0276970b..451628a449 100644
--- a/src/superio/smsc/lpc47n217/early_serial.c
+++ b/src/superio/smsc/lpc47n217/early_serial.c
@@ -20,7 +20,7 @@
/* Pre-RAM driver for SMSC LPC47N217 Super I/O chip. */
-#include <arch/romcc_io.h>
+#include <arch/io.h>
#include <assert.h>
#include "lpc47n217.h"
diff --git a/src/superio/smsc/lpc47n227/early_serial.c b/src/superio/smsc/lpc47n227/early_serial.c
index b20bc80156..4aea7c57fc 100644
--- a/src/superio/smsc/lpc47n227/early_serial.c
+++ b/src/superio/smsc/lpc47n227/early_serial.c
@@ -20,7 +20,7 @@
/* Pre-RAM driver for SMSC LPC47N227 Super I/O chip. */
-#include <arch/romcc_io.h>
+#include <arch/io.h>
#include "lpc47n227.h"
static void pnp_enter_conf_state(device_t dev)
diff --git a/src/superio/smsc/sch4037/sch4037_early_init.c b/src/superio/smsc/sch4037/sch4037_early_init.c
index fc9aaf5eab..dfacd24aca 100644
--- a/src/superio/smsc/sch4037/sch4037_early_init.c
+++ b/src/superio/smsc/sch4037/sch4037_early_init.c
@@ -18,7 +18,7 @@
*/
-#include <arch/romcc_io.h>
+#include <arch/io.h>
#include "sch4037.h"
static inline void pnp_enter_conf_state(device_t dev)
diff --git a/src/superio/smsc/sio1036/sio1036_early_init.c b/src/superio/smsc/sio1036/sio1036_early_init.c
index 289d83f1ab..314ea7541b 100644
--- a/src/superio/smsc/sio1036/sio1036_early_init.c
+++ b/src/superio/smsc/sio1036/sio1036_early_init.c
@@ -19,7 +19,7 @@
/* Pre-RAM driver for the SMSC KBC1100 Super I/O chip */
-#include <arch/romcc_io.h>
+#include <arch/io.h>
#include "sio1036.h"
#ifndef CONFIG_TTYS0_BASE
diff --git a/src/superio/smsc/smscsuperio/early_serial.c b/src/superio/smsc/smscsuperio/early_serial.c
index 85f7b461c1..5e9aadb7e3 100644
--- a/src/superio/smsc/smscsuperio/early_serial.c
+++ b/src/superio/smsc/smscsuperio/early_serial.c
@@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <arch/romcc_io.h>
+#include <arch/io.h>
#include <device/pnp_def.h>
/* All known/supported SMSC Super I/Os have the same logical device IDs
diff --git a/src/superio/winbond/w83627dhg/early_serial.c b/src/superio/winbond/w83627dhg/early_serial.c
index 8ea29eaa36..ec9e81e00a 100644
--- a/src/superio/winbond/w83627dhg/early_serial.c
+++ b/src/superio/winbond/w83627dhg/early_serial.c
@@ -20,7 +20,6 @@
*/
#include <arch/io.h>
-#include <arch/romcc_io.h>
#include <device/pnp_def.h>
#include <stdint.h>
#include "w83627dhg.h"
diff --git a/src/superio/winbond/w83627ehg/early_init.c b/src/superio/winbond/w83627ehg/early_init.c
index 24cc451704..7be5e37ad3 100644
--- a/src/superio/winbond/w83627ehg/early_init.c
+++ b/src/superio/winbond/w83627ehg/early_init.c
@@ -20,7 +20,7 @@
*/
#include <stdint.h>
-#include <arch/romcc_io.h>
+#include <arch/io.h>
#include "w83627ehg.h"
void w83627ehg_disable_dev(device_t dev)
diff --git a/src/superio/winbond/w83627ehg/early_serial.c b/src/superio/winbond/w83627ehg/early_serial.c
index 03e72f3a33..1a895c6bd9 100644
--- a/src/superio/winbond/w83627ehg/early_serial.c
+++ b/src/superio/winbond/w83627ehg/early_serial.c
@@ -19,7 +19,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <arch/romcc_io.h>
+#include <arch/io.h>
#include "w83627ehg.h"
static void pnp_enter_ext_func_mode(device_t dev)
diff --git a/src/superio/winbond/w83627hf/early_init.c b/src/superio/winbond/w83627hf/early_init.c
index b61922dba8..66b40980a2 100644
--- a/src/superio/winbond/w83627hf/early_init.c
+++ b/src/superio/winbond/w83627hf/early_init.c
@@ -20,7 +20,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <arch/romcc_io.h>
+#include <arch/io.h>
#include "w83627hf.h"
void w83627hf_disable_dev(device_t dev)
diff --git a/src/superio/winbond/w83627hf/early_serial.c b/src/superio/winbond/w83627hf/early_serial.c
index 0e857cfbed..db2827bfdb 100644
--- a/src/superio/winbond/w83627hf/early_serial.c
+++ b/src/superio/winbond/w83627hf/early_serial.c
@@ -21,7 +21,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <arch/romcc_io.h>
+#include <arch/io.h>
#include "w83627hf.h"
static void pnp_enter_ext_func_mode(device_t dev)
diff --git a/src/superio/winbond/w83627thg/early_serial.c b/src/superio/winbond/w83627thg/early_serial.c
index 6803aabb89..8ba1a308ae 100644
--- a/src/superio/winbond/w83627thg/early_serial.c
+++ b/src/superio/winbond/w83627thg/early_serial.c
@@ -20,7 +20,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <arch/romcc_io.h>
+#include <arch/io.h>
#include "w83627thg.h"
static void pnp_enter_ext_func_mode(device_t dev)
diff --git a/src/superio/winbond/w83627uhg/early_serial.c b/src/superio/winbond/w83627uhg/early_serial.c
index 43946bd0d9..bfd08a3766 100644
--- a/src/superio/winbond/w83627uhg/early_serial.c
+++ b/src/superio/winbond/w83627uhg/early_serial.c
@@ -18,8 +18,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <arch/romcc_io.h>
-#include <stdint.h>
+#include <arch/io.h>
#include "w83627uhg.h"
static void pnp_enter_ext_func_mode(device_t dev)
diff --git a/src/superio/winbond/w83697hf/early_serial.c b/src/superio/winbond/w83697hf/early_serial.c
index e26168e800..e435645453 100644
--- a/src/superio/winbond/w83697hf/early_serial.c
+++ b/src/superio/winbond/w83697hf/early_serial.c
@@ -18,8 +18,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <stdint.h>
-#include <arch/romcc_io.h>
+#include <arch/io.h>
#include "w83697hf.h"
static void pnp_enter_ext_func_mode(device_t dev)
diff --git a/src/superio/winbond/w83977f/early_serial.c b/src/superio/winbond/w83977f/early_serial.c
index 400cb86b91..c572dcb959 100644
--- a/src/superio/winbond/w83977f/early_serial.c
+++ b/src/superio/winbond/w83977f/early_serial.c
@@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <arch/romcc_io.h>
+#include <arch/io.h>
#include "w83977f.h"
static void pnp_enter_ext_func_mode(device_t dev)
diff --git a/src/superio/winbond/w83977tf/early_serial.c b/src/superio/winbond/w83977tf/early_serial.c
index 208bc6859c..c016515531 100644
--- a/src/superio/winbond/w83977tf/early_serial.c
+++ b/src/superio/winbond/w83977tf/early_serial.c
@@ -20,7 +20,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <arch/romcc_io.h>
+#include <arch/io.h>
#include "w83977tf.h"
static void pnp_enter_ext_func_mode(device_t dev)