summaryrefslogtreecommitdiff
path: root/arch/sandbox/include/asm
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-06-11 23:29:43 -0600
committerSimon Glass <sjg@chromium.org>2014-06-20 11:54:42 -0600
commit42d3b29d9ea7d93da4bae7058711c56b12ebf23c (patch)
treed878a0f77736e6fcbb042c8b7c1562e740bf1e2d /arch/sandbox/include/asm
parentad827e1649de85904e8eaacb96ad8a0fa870a3cf (diff)
downloadu-boot-imx-42d3b29d9ea7d93da4bae7058711c56b12ebf23c.zip
u-boot-imx-42d3b29d9ea7d93da4bae7058711c56b12ebf23c.tar.gz
u-boot-imx-42d3b29d9ea7d93da4bae7058711c56b12ebf23c.tar.bz2
sandbox: Support iotrace feature
Support the iotrace feature for sandbox, and enable it, using some dummy I/O access methods. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/sandbox/include/asm')
-rw-r--r--arch/sandbox/include/asm/io.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/sandbox/include/asm/io.h b/arch/sandbox/include/asm/io.h
index 7956041..895fcb8 100644
--- a/arch/sandbox/include/asm/io.h
+++ b/arch/sandbox/include/asm/io.h
@@ -40,4 +40,14 @@ static inline void unmap_sysmem(const void *vaddr)
/* Map from a pointer to our RAM buffer */
phys_addr_t map_to_sysmem(const void *ptr);
+/* Define nops for sandbox I/O access */
+#define readb(addr) 0
+#define readw(addr) 0
+#define readl(addr) 0
+#define writeb(v, addr)
+#define writew(v, addr)
+#define writel(v, addr)
+
+#include <iotrace.h>
+
#endif