summaryrefslogtreecommitdiff
path: root/cleopatre/linux-2.6.25.10-spc300/include/asm-arm/arch-spc300/spc300-reset_cause.h
diff options
context:
space:
mode:
authorYacine Belkadi2012-04-04 14:28:30 +0200
committerYacine Belkadi2012-05-03 09:31:53 +0200
commitf4f9d13c8daf76c54a73a0842891a67034aa6be2 (patch)
tree155d262b31c9716971b5c06fd13df560ba1f8cd2 /cleopatre/linux-2.6.25.10-spc300/include/asm-arm/arch-spc300/spc300-reset_cause.h
parent1b794dc3e4f74eeaded589164d708d5b2d723d38 (diff)
cleo/devkit/plcdrv: identify resets due to firmware watchdog, refs #3051
When the firmware watchdog complains, and there is no one to handle that, plcdrv performs a reset. The problem is that "/proc/reset_cause" will say it was due to software reset. So there is no distinction between 1) a soft reset and 2) a soft reset due to the complain of the firmware watchdog. With this commit, plcdrv informs that the real reason for the reset is the firmware watchdog.
Diffstat (limited to 'cleopatre/linux-2.6.25.10-spc300/include/asm-arm/arch-spc300/spc300-reset_cause.h')
-rw-r--r--cleopatre/linux-2.6.25.10-spc300/include/asm-arm/arch-spc300/spc300-reset_cause.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/cleopatre/linux-2.6.25.10-spc300/include/asm-arm/arch-spc300/spc300-reset_cause.h b/cleopatre/linux-2.6.25.10-spc300/include/asm-arm/arch-spc300/spc300-reset_cause.h
new file mode 100644
index 0000000000..68ce974740
--- /dev/null
+++ b/cleopatre/linux-2.6.25.10-spc300/include/asm-arm/arch-spc300/spc300-reset_cause.h
@@ -0,0 +1,31 @@
+#ifndef SPC300_RESET_CAUSE_H
+#define SPC300_RESET_CAUSE_H
+
+/*
+ * Copyright (C) 2012 SPiDCOM Technologies
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+#ifdef __KERNEL__
+
+/**
+ * Set that the next reset is caused by the firmware watchdog.
+ */
+void spc300_reset_cause_set_fw_wd(void);
+
+#endif /* __KERNEL__ */
+
+#endif /* SPC300_RESET_CAUSE_H */