]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
sandbox: Support iotrace feature
authorSimon Glass <sjg@chromium.org>
Thu, 12 Jun 2014 05:29:43 +0000 (23:29 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 20 Jun 2014 17:54:42 +0000 (11:54 -0600)
Support the iotrace feature for sandbox, and enable it, using some dummy
I/O access methods.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/sandbox/include/asm/io.h
include/configs/sandbox.h

index 7956041171f52beaaeb5b263da17926414d5dcdd..895fcb872f6a375876fdd05c5fe73714871fbc00 100644 (file)
@@ -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
index a14509404253fd78b0d47131e4d6888953d54dc7..12b69d9a249f08d4991189c2a28cb2bd02eb8ee6 100644 (file)
@@ -16,6 +16,9 @@
 
 #endif
 
+#define CONFIG_IO_TRACE
+#define CONFIG_CMD_IOTRACE
+
 #define CONFIG_SYS_TIMER_RATE          1000000
 
 #define CONFIG_BOOTSTAGE