summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2018-04-20 18:05:34 -0700
committerSascha Hauer <s.hauer@pengutronix.de>2018-05-08 08:04:19 +0200
commitc6489935da8ddbd71f95fe11fe317b79439ffd86 (patch)
treede109cd781b8c7956ae744446a21b3f42476af89
parent307da7d4ffabd1ab514742259744ad09f0bdeddd (diff)
downloadbarebox-c6489935da8ddbd71f95fe11fe317b79439ffd86.tar.gz
barebox-c6489935da8ddbd71f95fe11fe317b79439ffd86.tar.xz
ARM: i.MX: Log detected reset reason
Log detected reset reason as well as raw value of SRSR for better clarity. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/arm/mach-imx/imx.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/imx.c b/arch/arm/mach-imx/imx.c
index 29dad9a412..7dee1433bd 100644
--- a/arch/arm/mach-imx/imx.c
+++ b/arch/arm/mach-imx/imx.c
@@ -179,4 +179,7 @@ void imx_set_reset_reason(void __iomem *srsr,
reset_source_set_priority(type,
RESET_SOURCE_DEFAULT_PRIORITY + 1);
reset_source_set_instance(type, instance);
+
+ pr_info("i.MX reset reason %s (SRSR: 0x%08x)\n",
+ reset_source_name(), reg);
}