diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2013-04-01 22:14:14 +0000 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-04-02 16:23:35 -0400 |
commit | b2da80384ed197ea17c1d910813e3c105a9c656c (patch) | |
tree | 1c1d4d25a18850ce7c245faffc96609168e06c33 /drivers/bios_emulator | |
parent | 9fd383724cf49b5fd787c62169569d870857d611 (diff) | |
download | u-boot-b2da80384ed197ea17c1d910813e3c105a9c656c.tar.gz u-boot-b2da80384ed197ea17c1d910813e3c105a9c656c.tar.bz2 u-boot-b2da80384ed197ea17c1d910813e3c105a9c656c.zip |
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.c | 2 | ||||
-rw-r--r-- | drivers/bios_emulator/bios.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/drivers/bios_emulator/besys.c b/drivers/bios_emulator/besys.c index 84724b7125..ad88a53f0c 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 7cf48792eb..bcc192fb2e 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" |