summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2019-06-11 11:43:15 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-06-13 08:22:47 +0200
commit2352352d49f8d10276f257f49efdb055a4480b64 (patch)
tree48e714aba45b9a26c1a46ffbabca9859ca9ab4dd
parent09c9203cac8728926db8457ddaa88856afe014d9 (diff)
downloadbarebox-2352352d49f8d10276f257f49efdb055a4480b64.tar.gz
reset_source: add new Brownout reset (BOR) source
The STM32MP1 can report brown out as reason for a reset, which doesn't fit into existing reasons. Thus add a new one to the enumeration. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--common/reset_source.c1
-rw-r--r--include/reset_source.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/common/reset_source.c b/common/reset_source.c
index 338d7b9..1955d3f 100644
--- a/common/reset_source.c
+++ b/common/reset_source.c
@@ -28,6 +28,7 @@ static const char * const reset_src_names[] = {
[RESET_JTAG] = "JTAG",
[RESET_THERM] = "THERM",
[RESET_EXT] = "EXT",
+ [RESET_BROWNOUT] = "BROWNOUT",
};
static enum reset_src_type reset_source;
diff --git a/include/reset_source.h b/include/reset_source.h
index 86e415a..13bc3bc 100644
--- a/include/reset_source.h
+++ b/include/reset_source.h
@@ -22,6 +22,7 @@ enum reset_src_type {
RESET_JTAG, /* JTAG reset */
RESET_THERM, /* SoC shut down because of overtemperature */
RESET_EXT, /* External reset through device pin */
+ RESET_BROWNOUT, /* Brownout Reset */
};
#ifdef CONFIG_RESET_SOURCE