summaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2011-09-22 19:02:57 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2011-09-22 19:03:05 +0200
commit3ee7877a489be6e5b74b7deba91f2eecddba4e06 (patch)
treeca714429de18eb01c939705958c6f41409f8e1dd /arch/x86
parent0972e837c3631c4fbbf16080c76ebad0c94086d7 (diff)
downloadbarebox-3ee7877a489be6e5b74b7deba91f2eecddba4e06.tar.gz
barebox-3ee7877a489be6e5b74b7deba91f2eecddba4e06.tar.xz
introduce io.h
To allow for some generic io accessors introduce io.h and use this instead of asm/io.h throughout the tree. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/boot/a20.c2
-rw-r--r--arch/x86/boot/prepare_uboot.c2
-rw-r--r--arch/x86/mach-i386/generic.c2
-rw-r--r--arch/x86/mach-i386/pit_timer.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86/boot/a20.c b/arch/x86/boot/a20.c
index 4b61d91930..ddb40ee5c2 100644
--- a/arch/x86/boot/a20.c
+++ b/arch/x86/boot/a20.c
@@ -14,7 +14,7 @@
*/
#include <asm/segment.h>
-#include <asm/io.h>
+#include <io.h>
#include "boot.h"
#define MAX_8042_LOOPS 100000
diff --git a/arch/x86/boot/prepare_uboot.c b/arch/x86/boot/prepare_uboot.c
index a68aceddb6..79e6fb0cbe 100644
--- a/arch/x86/boot/prepare_uboot.c
+++ b/arch/x86/boot/prepare_uboot.c
@@ -13,7 +13,7 @@
*/
#include <asm/segment.h>
#include <asm/modes.h>
-#include <asm/io.h>
+#include <io.h>
#include "boot.h"
/* be aware of: */
diff --git a/arch/x86/mach-i386/generic.c b/arch/x86/mach-i386/generic.c
index edeacc4275..376de58964 100644
--- a/arch/x86/mach-i386/generic.c
+++ b/arch/x86/mach-i386/generic.c
@@ -23,7 +23,7 @@
* @brief x86 Architecture Initialization routines
*/
-#include <asm/io.h>
+#include <io.h>
/** to work with the 8250 UART driver implementation we need this function */
unsigned int x86_uart_read(unsigned long base, unsigned char reg_idx)
diff --git a/arch/x86/mach-i386/pit_timer.c b/arch/x86/mach-i386/pit_timer.c
index ec97cee49b..36019b0ede 100644
--- a/arch/x86/mach-i386/pit_timer.c
+++ b/arch/x86/mach-i386/pit_timer.c
@@ -32,7 +32,7 @@
#include <init.h>
#include <clock.h>
-#include <asm/io.h>
+#include <io.h>
/** base address of the PIT in a standard PC */
#define PIT 0x40