mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCHv3] Enable a way to provide the reason for "being here"
@ 2012-07-12 13:47 Juergen Beisert
  2012-07-12 13:47 ` [PATCH 1/4] " Juergen Beisert
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Juergen Beisert @ 2012-07-12 13:47 UTC (permalink / raw)
  To: barebox

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.

V3 includes the detection for the i.MX28 SoC and fixes its usage for other
i.MX SoCs.

Comments are welcome.

Juergen

The following changes since commit 279d3c29437ff84d4542ba4fc81de4fff0381233:

  Merge branch 'for-next/tqma53' into next (2012-07-09 09:24:04 +0200)

are available in the git repository at:

  git://git.pengutronix.de/git/jbe/barebox.git next_provide_reset_sourceV3

for you to fetch changes up to 9fdad67311d1eb320242407b9e5eaca9d13f1b49:

  ARM/MXS: add reset cause detection (2012-07-12 14:32:46 +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/Makefile                      |    2 +-
 common/reset_source.c                |   44 +++++++++++++++++++++
 drivers/watchdog/im28wd.c            |   25 ++++++++++++
 include/reset_source.h               |   27 +++++++++++++
 8 files changed, 227 insertions(+), 1 deletion(-)
 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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-07-13  5:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-12 13:47 [PATCHv3] Enable a way to provide the reason for "being here" Juergen Beisert
2012-07-12 13:47 ` [PATCH 1/4] " Juergen Beisert
2012-07-12 13:47 ` [PATCH 2/4] ARM/Samsung: add support to detect the reset source Juergen Beisert
2012-07-12 13:47 ` [PATCH 3/4] ARM/i.MX: " Juergen Beisert
2012-07-12 13:47 ` [PATCH 4/4] ARM/MXS: add reset cause detection Juergen Beisert
2012-07-12 19:56   ` Marc Kleine-Budde
2012-07-13  5:31     ` Juergen Beisert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox