summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2012-09-28 08:56:37 +0000
committerAnatolij Gustschin <agust@denx.de>2012-10-02 22:39:33 +0200
commit94fd1316b75896b668d22ce846785d92c0340100 (patch)
tree39d8044fa76e189b0247efc2949895689c92542b /include
parent0e9967735869a4e2bbc92d5d0eea0e2136180d49 (diff)
downloadu-boot-imx-94fd1316b75896b668d22ce846785d92c0340100.zip
u-boot-imx-94fd1316b75896b668d22ce846785d92c0340100.tar.gz
u-boot-imx-94fd1316b75896b668d22ce846785d92c0340100.tar.bz2
bootstage: Store boot timings in device tree
Add an option, CONFIG_BOOTSTAGE_FDT to pass boot timings to the kernel in the device tree, if available. To use this, you must have CONFIG_OF_LIBFDT defined. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/bootstage.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/bootstage.h b/include/bootstage.h
index 127c94f..9113852 100644
--- a/include/bootstage.h
+++ b/include/bootstage.h
@@ -277,6 +277,13 @@ uint32_t bootstage_accum(enum bootstage_id id);
/* Print a report about boot time */
void bootstage_report(void);
+/**
+ * Add bootstage information to the device tree
+ *
+ * @return 0 if ok, -ve on error
+ */
+int bootstage_fdt_add_report(void);
+
#else
/*
* This is a dummy implementation which just calls show_boot_progress(),