From patchwork Tue Nov 20 14:33:52 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 13011 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id EBE4A23FC2 for ; Tue, 20 Nov 2012 14:34:17 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id A054EA191A1 for ; Tue, 20 Nov 2012 14:34:17 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so8234104iej.11 for ; Tue, 20 Nov 2012 06:34:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=Ue2oSjOv7erVp6iKlI3QAFTEtue0BdWq9f4qwPImLwM=; b=mWMCSQS4fgD0gUpudxSFT5lL8tDAX4isCGukIwalx16dwQHGhXeY/DzAIS5TkY18Q0 10qlMf/MdkhQHBYz1H0II1wjMDAD8rzJxqO+awoGLQKGC7iDo6qY/jBgcA/vmOCGpW98 78mV7b4yOZ76bKiSq0FVMMnZPVa7H1gg5pRBB4nNygXONpf7GE8blr96unznyqlqQ51a 7E9dj/LaCy98UI+150Xjlpcq3aw09FGymE3hCuLwFFfp7bv/ToguhWcrcrCzWdbR+kk4 sG4njmJ7hOOWlmVC7cDxgSTxNS1y0aCxpz48JfzmXmpf7rzNj0UrLOaqz8rYd93k1dUE h3Xg== Received: by 10.50.91.195 with SMTP id cg3mr10142265igb.57.1353422057184; Tue, 20 Nov 2012 06:34:17 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.67.148 with SMTP id n20csp326852igt; Tue, 20 Nov 2012 06:34:16 -0800 (PST) Received: by 10.216.29.19 with SMTP id h19mr6168847wea.210.1353422056038; Tue, 20 Nov 2012 06:34:16 -0800 (PST) Received: from mail-wg0-f48.google.com (mail-wg0-f48.google.com [74.125.82.48]) by mx.google.com with ESMTPS id h65si7143363weo.87.2012.11.20.06.34.15 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 20 Nov 2012 06:34:16 -0800 (PST) Received-SPF: neutral (google.com: 74.125.82.48 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=74.125.82.48; Authentication-Results: mx.google.com; spf=neutral (google.com: 74.125.82.48 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) smtp.mail=lee.jones@linaro.org Received: by mail-wg0-f48.google.com with SMTP id es5so2938261wgb.17 for ; Tue, 20 Nov 2012 06:34:15 -0800 (PST) Received: by 10.180.100.132 with SMTP id ey4mr14808013wib.9.1353422055554; Tue, 20 Nov 2012 06:34:15 -0800 (PST) Received: from localhost.localdomain (cpc1-aztw13-0-0-cust473.18-1.cable.virginmedia.com. [77.102.241.218]) by mx.google.com with ESMTPS id bn7sm20254052wib.8.2012.11.20.06.34.14 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 20 Nov 2012 06:34:14 -0800 (PST) From: Lee Jones To: u-boot@lists.denx.de Cc: Lee Jones Subject: [PATCH 6/8] arm: Add some boottime tags into prime booting locations Date: Tue, 20 Nov 2012 14:33:52 +0000 Message-Id: <1353422034-28107-7-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1353422034-28107-1-git-send-email-lee.jones@linaro.org> References: <1353422034-28107-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQkpypVBNkEbcVWn/TfYaPgRHf6KQW56cpNmFReVfEr8pCs48nhC/gBAbngWAqIUTizCi5Ip 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 --- arch/arm/lib/board.c | 3 +++ arch/arm/lib/bootm.c | 3 +++ 2 files changed, 6 insertions(+) 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 #include #include +#include #ifdef CONFIG_BITBANGMII #include @@ -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;