From: Albert ARIBAUD <albert.u.boot@aribaud.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v4 3/3] MX31: mx31pdk: Print the cause of reset
Date: Sat, 16 Apr 2011 05:34:09 +0200 [thread overview]
Message-ID: <4DA90E31.1010809@aribaud.net> (raw)
In-Reply-To: <1302922492-25505-3-git-send-email-festevam@gmail.com>
Le 16/04/2011 04:54, Fabio Estevam a ?crit :
> Print the cause of reset and also change the board name to only 'MX31PDK'.
>
> Signed-off-by: Fabio Estevam<fabio.estevam@freescale.com>
> ---
> board/freescale/mx31pdk/mx31pdk.c | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/board/freescale/mx31pdk/mx31pdk.c b/board/freescale/mx31pdk/mx31pdk.c
> index 3f291fc..b21f7e5 100644
> --- a/board/freescale/mx31pdk/mx31pdk.c
> +++ b/board/freescale/mx31pdk/mx31pdk.c
> @@ -28,6 +28,7 @@
> #include<netdev.h>
> #include<asm/arch/clock.h>
> #include<asm/arch/imx-regs.h>
> +#include<asm/arch/sys_proto.h>
>
> DECLARE_GLOBAL_DATA_PTR;
>
> @@ -70,7 +71,7 @@ int board_init(void)
>
> int checkboard(void)
> {
> - printf("Board: i.MX31 MAX PDK (3DS)\n");
> + printf("Board: MX31PDK [%s]\n", get_reset_cause());
> return 0;
> }
>
Maybe a clearer message, rather than just '[%s]', something like '[reset
cause: %s]'?
Amicalement,
--
Albert.
next prev parent reply other threads:[~2011-04-16 3:34 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-16 2:54 [U-Boot] [PATCH v4 1/3] ARM: MX31: Fix file name label Fabio Estevam
2011-04-16 2:54 ` [U-Boot] [PATCH v4 2/3] MX31: Introduce get_reset_cause() Fabio Estevam
2011-04-16 2:54 ` [U-Boot] [PATCH v4 3/3] MX31: mx31pdk: Print the cause of reset Fabio Estevam
2011-04-16 3:34 ` Albert ARIBAUD [this message]
2011-04-16 3:28 ` [U-Boot] [PATCH v4 1/3] ARM: MX31: Fix file name label Albert ARIBAUD
2011-04-16 3:31 ` Albert ARIBAUD
2011-04-21 17:43 ` Stefano Babic
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4DA90E31.1010809@aribaud.net \
--to=albert.u.boot@aribaud.net \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox