summaryrefslogtreecommitdiff
path: root/drivers/bios_emulator
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2013-04-01 22:14:14 (GMT)
committerTom Rini <trini@ti.com>2013-04-02 20:23:35 (GMT)
commitb2da80384ed197ea17c1d910813e3c105a9c656c (patch)
tree1c1d4d25a18850ce7c245faffc96609168e06c33 /drivers/bios_emulator
parent9fd383724cf49b5fd787c62169569d870857d611 (diff)
downloadu-boot-fsl-qoriq-b2da80384ed197ea17c1d910813e3c105a9c656c.tar.xz
biosemu: include <asm/io.h> header
This makes sure we have inline functions such as inb/outb that are used in these two files by including the arch-specific <asm/io.h> header. However the ARM version does not provide the accessors unless the config symbol __io is also defined so add that in front of the include. After this the bios emulator will compile on ARM systems. Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/bios_emulator')
-rw-r--r--drivers/bios_emulator/besys.c2
-rw-r--r--drivers/bios_emulator/bios.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/drivers/bios_emulator/besys.c b/drivers/bios_emulator/besys.c
index 84724b7..ad88a53 100644
--- a/drivers/bios_emulator/besys.c
+++ b/drivers/bios_emulator/besys.c
@@ -47,6 +47,8 @@
*
****************************************************************************/
+#define __io
+#include <asm/io.h>
#include <common.h>
#include "biosemui.h"
diff --git a/drivers/bios_emulator/bios.c b/drivers/bios_emulator/bios.c
index 7cf4879..bcc192f 100644
--- a/drivers/bios_emulator/bios.c
+++ b/drivers/bios_emulator/bios.c
@@ -41,6 +41,8 @@
*
****************************************************************************/
+#define __io
+#include <asm/io.h>
#include <common.h>
#include "biosemui.h"