Patchwork [U-Boot,v3,3/3] MX31: mx31pdk: Print the cause of reset

login
register
mail settings
Submitter Fabio Estevam
Date April 15, 2011, 2:21 a.m.
Message ID <1302834109-15171-3-git-send-email-festevam@gmail.com>
Download mbox | patch
Permalink /patch/91316/
State Superseded
Headers show

Comments

Fabio Estevam - April 15, 2011, 2:21 a.m.
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 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/board/freescale/mx31pdk/mx31pdk.c b/board/freescale/mx31pdk/mx31pdk.c
index 3f291fc..b3f2c09 100644
--- a/board/freescale/mx31pdk/mx31pdk.c
+++ b/board/freescale/mx31pdk/mx31pdk.c
@@ -70,7 +70,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;
 }