diff mbox

[6/8] arm: Add some boottime tags into prime booting locations

Message ID 1353422034-28107-7-git-send-email-lee.jones@linaro.org
State New
Headers show

Commit Message

Lee Jones Nov. 20, 2012, 2:33 p.m. UTC
This will provide a more verbose bootgraph when viewed within debugfs.
It will also ensure that we have a tag at the latest possible point
in the bootloader, right before we pass the ATAGs though to the kernel.

Signed-off-by: Lee Jones <lee.jones@linaro.org>
---
 arch/arm/lib/board.c |    3 +++
 arch/arm/lib/bootm.c |    3 +++
 2 files changed, 6 insertions(+)
diff mbox

Patch

diff --git a/arch/arm/lib/board.c b/arch/arm/lib/board.c
index 92cad9a..f8c7b5d 100644
--- a/arch/arm/lib/board.c
+++ b/arch/arm/lib/board.c
@@ -52,6 +52,7 @@ 
 #include <fdtdec.h>
 #include <post.h>
 #include <logbuff.h>
+#include <boottime.h>
 
 #ifdef CONFIG_BITBANGMII
 #include <miiphy.h>
@@ -486,6 +487,8 @@  void board_init_r(gd_t *id, ulong dest_addr)
 	ulong flash_size;
 #endif
 
+	boottime_tag("board_init");
+
 	gd = id;
 
 	gd->flags |= GD_FLG_RELOC;	/* tell others: relocation done */
diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c
index 03774c8..fa3291c 100644
--- a/arch/arm/lib/bootm.c
+++ b/arch/arm/lib/bootm.c
@@ -333,6 +333,7 @@  static void boot_prep_linux(bootm_headers_t *images)
 	defined(CONFIG_REVISION_TAG) || \
 	defined (CONFIG_BOOTTIME)
 		debug("using: ATAGS\n");
+		boottime_tag("passing_atags");
 		setup_start_tag(gd->bd);
 #ifdef CONFIG_BOOTTIME
 		setup_boottime_tags();
@@ -402,6 +403,8 @@  static void boot_jump_linux(bootm_headers_t *images)
  */
 int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images)
 {
+	boottime_tag("do_bootm_linux");
+
 	/* No need for those on ARM */
 	if (flag & BOOTM_STATE_OS_BD_T || flag & BOOTM_STATE_OS_CMDLINE)
 		return -1;