]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
bootstage: powerpc: support fdt stash and reporting
authorMela Custodio <sessyargc@gmail.com>
Wed, 19 Feb 2014 15:16:57 +0000 (00:16 +0900)
committerYork Sun <yorksun@freescale.com>
Fri, 7 Mar 2014 22:52:31 +0000 (14:52 -0800)
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>
arch/powerpc/lib/bootm.c

index c08b62c47e353b277e033085d0df29a3092794e6..33099a492dbe92ac7b31f20fe26f3b625b22f6f6 100644 (file)
@@ -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