summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2013-04-17 16:13:47 +0000
committerSimon Glass <sjg@chromium.org>2013-05-13 13:33:22 -0700
commit5397d8058c15eafc227eb7ff8703008b5c89b4a9 (patch)
tree2620b7d723afe61a6acf695235e338d7d286f84f /arch/x86/include/asm
parent04dbf77d6275ce7bfba748c603957b0ebbb07b64 (diff)
downloadu-boot-imx-5397d8058c15eafc227eb7ff8703008b5c89b4a9.zip
u-boot-imx-5397d8058c15eafc227eb7ff8703008b5c89b4a9.tar.gz
u-boot-imx-5397d8058c15eafc227eb7ff8703008b5c89b4a9.tar.bz2
x86: Support adding coreboot timestanps to bootstage
Coreboot provides a lot of useful timing information. Provide a facility to add this to bootstage on start-up. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86/include/asm')
-rw-r--r--arch/x86/include/asm/arch-coreboot/timestamp.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/x86/include/asm/arch-coreboot/timestamp.h b/arch/x86/include/asm/arch-coreboot/timestamp.h
index d104912..fcfc1d5 100644
--- a/arch/x86/include/asm/arch-coreboot/timestamp.h
+++ b/arch/x86/include/asm/arch-coreboot/timestamp.h
@@ -49,4 +49,11 @@ void timestamp_init(void);
void timestamp_add(enum timestamp_id id, uint64_t ts_time);
void timestamp_add_now(enum timestamp_id id);
+/**
+ * timestamp_add_to_bootstage - Add important coreboot timestamps to bootstage
+ *
+ * @return 0 if ok, -1 if no timestamps were found
+ */
+int timestamp_add_to_bootstage(void);
+
#endif