summaryrefslogtreecommitdiffstats
path: root/common/Kconfig
diff options
context:
space:
mode:
authorJuergen Beisert <jbe@pengutronix.de>2012-07-18 10:46:47 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-07-18 16:21:43 +0200
commit106956783018635cef9a35bcb109073513d1ead4 (patch)
tree5da8351337dfb29de6a0567c00d8767ba2dd6299 /common/Kconfig
parentb78e5fe9f3ce155065831d3aa8a480656a8f53c5 (diff)
downloadbarebox-106956783018635cef9a35bcb109073513d1ead4.tar.gz
barebox-106956783018635cef9a35bcb109073513d1ead4.tar.xz
Enable a way to provide the reason for "being here"
Many architectures support a way to detect why the bootloader is running. This patch adds a global variable to be able to use the cause in some kind of shell code to do special things on demand. For example to do an emergency boot, when the last boot fails and the watchdog reactivate the hanging system. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/Kconfig')
-rw-r--r--common/Kconfig8
1 files changed, 8 insertions, 0 deletions
diff --git a/common/Kconfig b/common/Kconfig
index b776031bad..59bd301858 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -548,6 +548,14 @@ config BAREBOXENV_TARGET
config POLLER
bool "generic polling infrastructure"
+config RESET_SOURCE
+ bool "detect Reset cause"
+ depends on GLOBALVAR
+ help
+ Provide a global variable at runtine which reflects the possible cause
+ of the reset and why the bootloader is currently running. It can be
+ useful for any kind of system recovery or repair.
+
endmenu
menu "Debugging "