[PATCH v2 06/10] ARM: i.MX: Log detected reset reason
Andrey Smirnov
andrew.smirnov at gmail.com
Fri Apr 20 18:05:34 PDT 2018
Log detected reset reason as well as raw value of SRSR for better
clarity.
Signed-off-by: Andrey Smirnov <andrew.smirnov at gmail.com>
---
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 29dad9a41..7dee1433b 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);
}
--
2.14.3
More information about the barebox
mailing list