summaryrefslogtreecommitdiff
path: root/cleopatre/linux-2.6.25.10-spc300/include
diff options
context:
space:
mode:
authorYacine Belkadi2012-04-03 15:03:15 +0200
committerYacine Belkadi2012-05-03 09:31:52 +0200
commit1b794dc3e4f74eeaded589164d708d5b2d723d38 (patch)
tree1083e99c380724a3b3e24e477885dc94891d894e /cleopatre/linux-2.6.25.10-spc300/include
parent9958c79aab74a900c23301931175485d1f12c167 (diff)
cleo/linux/spc300: add /proc/reset_cause, refs #3051
Add "/proc/reset_cause" to expose what caused the last reset. The objective is to replace the current way for applications to get that info, which is to analyze some hardware registers exposed via /proc/net/plc/regbank. Because determining the reset cause is low level and hardware related, it seems appropriate to hide that in the kernel, and only expose the final cause to userspace.
Diffstat (limited to 'cleopatre/linux-2.6.25.10-spc300/include')
-rw-r--r--cleopatre/linux-2.6.25.10-spc300/include/asm-arm/arch-spc300/hardware/import/pkg_maria_regbank.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cleopatre/linux-2.6.25.10-spc300/include/asm-arm/arch-spc300/hardware/import/pkg_maria_regbank.h b/cleopatre/linux-2.6.25.10-spc300/include/asm-arm/arch-spc300/hardware/import/pkg_maria_regbank.h
index 2b0b214f04..c7131d4a1d 100644
--- a/cleopatre/linux-2.6.25.10-spc300/include/asm-arm/arch-spc300/hardware/import/pkg_maria_regbank.h
+++ b/cleopatre/linux-2.6.25.10-spc300/include/asm-arm/arch-spc300/hardware/import/pkg_maria_regbank.h
@@ -318,6 +318,7 @@
#define RST_GSRC_EXT (0x2)
#define RST_GSRC_WDOG (0x4)
#define RST_GSRC_SOFT (0x8)
+#define RST_GSRC_VOLT (0x10)
#define RB_RST_GLOBAL (MARIA_REGBANK_BASE+0x704)
#define RST_GLOBAL (0x1)
#define RB_RST_GROUP (MARIA_REGBANK_BASE+0x708)