summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorMela Custodio <sessyargc@gmail.com>2014-02-20 00:16:57 +0900
committerYork Sun <yorksun@freescale.com>2014-03-07 14:52:31 -0800
commitb892465dae6afc5528724c044991a76f241cd177 (patch)
tree272ea23547331666ce40c069a0b38bcb03a5e1b9 /arch
parent9c641a872aa54edc97d69281f705819e96a5c90e (diff)
downloadu-boot-imx-b892465dae6afc5528724c044991a76f241cd177.zip
u-boot-imx-b892465dae6afc5528724c044991a76f241cd177.tar.gz
u-boot-imx-b892465dae6afc5528724c044991a76f241cd177.tar.bz2
bootstage: powerpc: support fdt stash and reporting
This implements stashing of bootstage timing data to FDT and automatic timing reporting. To enable define CONFIG_BOOTSTAGE_FDT and CONFIG_BOOTSTAGE_REPORT respectively. Signed-off-by: Rommel G Custodio <sessyargc+u-boot@gmail.com> Reviewed-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/lib/bootm.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/powerpc/lib/bootm.c b/arch/powerpc/lib/bootm.c
index c08b62c..33099a4 100644
--- a/arch/powerpc/lib/bootm.c
+++ b/arch/powerpc/lib/bootm.c
@@ -53,6 +53,13 @@ static void boot_jump_linux(bootm_headers_t *images)
bootstage_mark(BOOTSTAGE_ID_RUN_OS);
+#ifdef CONFIG_BOOTSTAGE_FDT
+ bootstage_fdt_add_report();
+#endif
+#ifdef CONFIG_BOOTSTAGE_REPORT
+ bootstage_report();
+#endif
+
#if defined(CONFIG_SYS_INIT_RAM_LOCK) && !defined(CONFIG_E500)
unlock_ram_in_cache();
#endif