diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2019-06-11 11:43:15 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-06-13 08:22:47 +0200 |
commit | 2352352d49f8d10276f257f49efdb055a4480b64 (patch) | |
tree | 48e714aba45b9a26c1a46ffbabca9859ca9ab4dd | |
parent | 09c9203cac8728926db8457ddaa88856afe014d9 (diff) | |
download | barebox-2352352d49f8d10276f257f49efdb055a4480b64.tar.gz barebox-2352352d49f8d10276f257f49efdb055a4480b64.tar.xz |
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.c | 1 | ||||
-rw-r--r-- | include/reset_source.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/common/reset_source.c b/common/reset_source.c index 338d7b9acb..1955d3f87e 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 86e415abcf..13bc3bcfde 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 |