From: Anatolij Gustschin <agust@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/2] MX31: mx31pdk: Print the cause of reset
Date: Sat, 12 Mar 2011 14:26:42 +0100 [thread overview]
Message-ID: <20110312142642.18f2cfcf@wker> (raw)
In-Reply-To: <1299688544-13635-2-git-send-email-fabio.estevam@freescale.com>
On Wed, 9 Mar 2011 13:35:44 -0300
Fabio Estevam <fabio.estevam@freescale.com> wrote:
...
> +++ b/board/freescale/mx31pdk/mx31pdk.c
> @@ -86,7 +86,30 @@ int board_late_init(void)
>
> int checkboard(void)
> {
> - printf("Board: i.MX31 MAX PDK (3DS)\n");
> + u32 cause;
> + struct clock_control_regs *ccm =
> + (struct clock_control_regs *)CCM_BASE;
> + puts("Board: MX31PDK [");
> +
> + cause = ccm->rcsr & 0x03;
The mask should be 0x07, since ...
> + case 0x0006:
> + puts("JTAG");
> + break;
we check if bit 2 is set here.
Best regards,
Anatolij
next prev parent reply other threads:[~2011-03-12 13:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-09 16:35 [U-Boot] [PATCH 1/2] MX31: mx31pdk: Add watchdog support Fabio Estevam
2011-03-09 16:35 ` [U-Boot] [PATCH 2/2] MX31: mx31pdk: Print the cause of reset Fabio Estevam
2011-03-12 13:26 ` Anatolij Gustschin [this message]
2011-04-10 15:45 ` [U-Boot] [PATCH 1/2] MX31: mx31pdk: Add watchdog support Stefano Babic
2011-04-26 5:45 ` Stefano Babic
2011-04-27 11:38 ` Detlev Zundel
2011-04-27 12:37 ` Fabio Estevam
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=20110312142642.18f2cfcf@wker \
--to=agust@denx.de \
--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