[U-Boot] [PATCH 2/2] MX31: mx31pdk: Print the cause of reset
Anatolij Gustschin
agust at denx.de
Sat Mar 12 14:26:42 CET 2011
On Wed, 9 Mar 2011 13:35:44 -0300
Fabio Estevam <fabio.estevam at 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
More information about the U-Boot
mailing list