From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-pf0-x241.google.com ([2607:f8b0:400e:c00::241]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1f7PKB-0001dB-F7 for barebox@lists.infradead.org; Sat, 14 Apr 2018 17:50:57 +0000 Received: by mail-pf0-x241.google.com with SMTP id a2so8523401pff.8 for ; Sat, 14 Apr 2018 10:50:47 -0700 (PDT) From: Andrey Smirnov Date: Sat, 14 Apr 2018 10:50:20 -0700 Message-Id: <20180414175024.9962-7-andrew.smirnov@gmail.com> In-Reply-To: <20180414175024.9962-1-andrew.smirnov@gmail.com> References: <20180414175024.9962-1-andrew.smirnov@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 06/10] ARM: i.MX: Log detected reset reason To: barebox@lists.infradead.org Cc: Andrey Smirnov Log detected reset reason as well as raw value of SRSR for better clarity. Signed-off-by: Andrey Smirnov --- arch/arm/mach-imx/imx.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-imx/imx.c b/arch/arm/mach-imx/imx.c index e860e298a..b7465875e 100644 --- a/arch/arm/mach-imx/imx.c +++ b/arch/arm/mach-imx/imx.c @@ -195,4 +195,7 @@ void imx_set_reset_reason(void __iomem *srsr) reset_source_set_instance(type, 2); break; } + + pr_info("i.MX reset reason %s (SRSR: 0x%08x)\n", + reset_source_name(), reg); } -- 2.14.3 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox