From: Juergen Beisert <jbe@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCHv5] Enable a way to provide the reason for "being here"
Date: Wed, 18 Jul 2012 10:46:46 +0200 [thread overview]
Message-ID: <1342601210-17849-1-git-send-email-jbe@pengutronix.de> (raw)
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 reactivates the hanging system.
V2 includes Marc's suggesion.
V3 includes the detection for the i.MX28 SoC and fixes its usage for other
i.MX SoCs.
V4 includes Marc's recent suggestion.
V5 includes Sascha's comments.
Comments are still welcome.
Juergen
The following changes since commit 6e566b211351bba74d6118f983f5fcd29e78a5b6:
Merge branch 'for-next/imx-keypad' into next (2012-07-17 20:46:17 +0200)
are available in the git repository at:
git://git.pengutronix.de/git/jbe/barebox.git next_provide_reset_sourceV5
for you to fetch changes up to 92cc203ac2806fe0818d2aa4ad5bea04bdb4121b:
ARM/MXS: add reset cause detection (2012-07-18 10:40:22 +0200)
----------------------------------------------------------------
Juergen Beisert (4):
Enable a way to provide the reason for "being here"
ARM/Samsung: add support to detect the reset source
ARM/i.MX: add support to detect the reset source
ARM/MXS: add reset cause detection
arch/arm/mach-imx/Makefile | 1 +
arch/arm/mach-imx/reset_source.c | 72 ++++++++++++++++++++++++++++++++++
arch/arm/mach-samsung/Makefile | 1 +
arch/arm/mach-samsung/reset_source.c | 56 ++++++++++++++++++++++++++
common/Kconfig | 8 ++++
common/Makefile | 1 +
common/reset_source.c | 44 +++++++++++++++++++++
drivers/watchdog/im28wd.c | 25 ++++++++++++
include/reset_source.h | 27 +++++++++++++
9 files changed, 235 insertions(+)
create mode 100644 arch/arm/mach-imx/reset_source.c
create mode 100644 arch/arm/mach-samsung/reset_source.c
create mode 100644 common/reset_source.c
create mode 100644 include/reset_source.h
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next reply other threads:[~2012-07-18 8:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-18 8:46 Juergen Beisert [this message]
2012-07-18 8:46 ` [PATCH 1/4] " Juergen Beisert
2012-07-18 8:46 ` [PATCH 2/4] ARM/Samsung: add support to detect the reset source Juergen Beisert
2012-07-18 8:46 ` [PATCH 3/4] ARM/i.MX: " Juergen Beisert
2012-07-18 8:46 ` [PATCH 4/4] ARM/MXS: add reset cause detection Juergen Beisert
2012-07-18 14:22 ` [PATCHv5] Enable a way to provide the reason for "being here" Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1342601210-17849-1-git-send-email-jbe@pengutronix.de \
--to=jbe@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox