summaryrefslogtreecommitdiffstats
path: root/drivers/bios_emulator/besys.c
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2013-04-01 22:14:14 +0000
committerTom Rini <trini@ti.com>2013-04-02 16:23:35 -0400
commitb2da80384ed197ea17c1d910813e3c105a9c656c (patch)
tree1c1d4d25a18850ce7c245faffc96609168e06c33 /drivers/bios_emulator/besys.c
parent9fd383724cf49b5fd787c62169569d870857d611 (diff)
downloadblackbird-obmc-uboot-b2da80384ed197ea17c1d910813e3c105a9c656c.tar.gz
blackbird-obmc-uboot-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/besys.c')
-rw-r--r--drivers/bios_emulator/besys.c2
1 files changed, 2 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"
OpenPOWER on IntegriCloud