summaryrefslogtreecommitdiffstats
path: root/arch/arm/lib/bootm.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2012-02-13 13:51:21 +0000
committerWolfgang Denk <wd@denx.de>2012-03-18 21:43:17 +0100
commitf933e84e3497bddf29b8183ca6ee37a7a12e9ac3 (patch)
tree85217517391aed95264cf6bb9b8dd4186eaa1ffd /arch/arm/lib/bootm.c
parent573f14fe4ed5b803207824be9e3147e894b68f8b (diff)
downloadblackbird-obmc-uboot-f933e84e3497bddf29b8183ca6ee37a7a12e9ac3.tar.gz
blackbird-obmc-uboot-f933e84e3497bddf29b8183ca6ee37a7a12e9ac3.zip
bootstage: arm: Add bootstage calls in board and bootm
Add calls to bootstage before and after relocation, and just before jumping to the OS. The idea here is you can call bootstage_report() to get a report. Additionally, if you define CONFIG_BOOTSTAGE_REPORT then a report is printed automatically by U-Boot just before jumping to the kernel. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/arm/lib/bootm.c')
-rw-r--r--arch/arm/lib/bootm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c
index f114cd6a02..2961ab2ac6 100644
--- a/arch/arm/lib/bootm.c
+++ b/arch/arm/lib/bootm.c
@@ -83,6 +83,10 @@ void arch_lmb_reserve(struct lmb *lmb)
static void announce_and_cleanup(void)
{
printf("\nStarting kernel ...\n\n");
+ bootstage_mark_name(BOOTSTAGE_ID_BOOTM_HANDOFF, "start_kernel");
+#ifdef CONFIG_BOOTSTAGE_REPORT
+ bootstage_report();
+#endif
#ifdef CONFIG_USB_DEVICE
{
OpenPOWER on IntegriCloud