summaryrefslogtreecommitdiff
path: root/include/configs/sandbox.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2013-06-11 11:14:44 -0700
committerTom Rini <trini@ti.com>2013-06-26 10:16:41 -0400
commite2ee100fd81043da51fb5e301ba9555ae3522869 (patch)
tree1931b8ee8fb8f0c59ff9b454be549ca0ad964cd5 /include/configs/sandbox.h
parent6c887b2acb1e97509cb4e4ee6aa13a5fb91ac3e8 (diff)
downloadu-boot-imx-e2ee100fd81043da51fb5e301ba9555ae3522869.zip
u-boot-imx-e2ee100fd81043da51fb5e301ba9555ae3522869.tar.gz
u-boot-imx-e2ee100fd81043da51fb5e301ba9555ae3522869.tar.bz2
sandbox: Support trace feature
Support tracing on sandbox by adding suitable CONFIG options. To enable it, compile U-Boot with FTRACE=1. The timer functions are marked to skip tracing, since these are called from the tracing code itself, and we want to avoid an infinite loop. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/configs/sandbox.h')
-rw-r--r--include/configs/sandbox.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/configs/sandbox.h b/include/configs/sandbox.h
index 788207d..d704329 100644
--- a/include/configs/sandbox.h
+++ b/include/configs/sandbox.h
@@ -22,6 +22,19 @@
#ifndef __CONFIG_H
#define __CONFIG_H
+#ifdef FTRACE
+#define CONFIG_TRACE
+#define CONFIG_CMD_TRACE
+#define CONFIG_TRACE_BUFFER_SIZE (16 << 20)
+#define CONFIG_TRACE_EARLY_SIZE (8 << 20)
+#define CONFIG_TRACE_EARLY
+#define CONFIG_TRACE_EARLY_ADDR 0x00100000
+
+#endif
+
+#define CONFIG_BOOTSTAGE
+#define CONFIG_BOOTSTAGE_REPORT
+
/* Number of bits in a C 'long' on this architecture */
#define CONFIG_SANDBOX_BITS_PER_LONG 64