From patchwork Sat Apr 16 02:54:52 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [U-Boot,v4,3/3] MX31: mx31pdk: Print the cause of reset X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 91472 X-Patchwork-Delegate: sbabic@denx.de Message-Id: <1302922492-25505-3-git-send-email-festevam@gmail.com> To: u-boot@lists.denx.de Cc: Fabio Estevam , Fabio Estevam Date: Fri, 15 Apr 2011 23:54:52 -0300 From: Fabio Estevam List-Id: U-Boot discussion Print the cause of reset and also change the board name to only 'MX31PDK'. Signed-off-by: Fabio Estevam --- 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 #include #include +#include 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; }