diff options
author | David Daney <ddaney@caviumnetworks.com> | 2010-07-24 13:16:05 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2010-08-05 08:26:22 -0400 |
commit | 4c076fb41ac93bc0cbd55f2a731cc31337804acb (patch) | |
tree | 679bfb3a2177a9ffa9b07be44903f44418b84bd4 /drivers/watchdog/Kconfig | |
parent | 96ffa02d219f50a52e0482ad85130858c61efc63 (diff) |
WATCHDOG: Add watchdog driver for OCTEON SOCs
The OCTEON is a MIPS64 based SOC family with an on chip watchdog unit.
The driver is split into two source files one for the C code and one
for assembly. Assembly is needed to handle the NMI and then print the
machine state before the reboot is triggered.
Signed-off-by: David Daney <ddaney@caviumnetworks.com>
Cc: Wim Van Sebroeck <wim@iguana.be>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Russell King <rmk+kernel@arm.linux.org.uk>
Cc: Tony Lindgren <tony@atomide.com>
Cc: Marc Zyngier <maz@misterjones.org>
Cc: Thierry Reding <thierry.reding@avionic-design.de>
Cc: Sam Ravnborg <sam@ravnborg.org>
To: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org,
Patchwork: https://patchwork.linux-mips.org/patch/1503/
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
create mode 100644 drivers/watchdog/octeon-wdt-main.c
create mode 100644 drivers/watchdog/octeon-wdt-nmi.S
Diffstat (limited to 'drivers/watchdog/Kconfig')
-rw-r--r-- | drivers/watchdog/Kconfig | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig index afcfacc9bbe2..b04b18468932 100644 --- a/drivers/watchdog/Kconfig +++ b/drivers/watchdog/Kconfig | |||
@@ -875,6 +875,24 @@ config TXX9_WDT | |||
875 | help | 875 | help |
876 | Hardware driver for the built-in watchdog timer on TXx9 MIPS SoCs. | 876 | Hardware driver for the built-in watchdog timer on TXx9 MIPS SoCs. |
877 | 877 | ||
878 | config OCTEON_WDT | ||
879 | tristate "Cavium OCTEON SOC family Watchdog Timer" | ||
880 | depends on CPU_CAVIUM_OCTEON | ||
881 | default y | ||
882 | select EXPORT_UASM if OCTEON_WDT = m | ||
883 | help | ||
884 | Hardware driver for OCTEON's on chip watchdog timer. | ||
885 | Enables the watchdog for all cores running Linux. It | ||
886 | installs a NMI handler and pokes the watchdog based on an | ||
887 | interrupt. On first expiration of the watchdog, the | ||
888 | interrupt handler pokes it. The second expiration causes an | ||
889 | NMI that prints a message. The third expiration causes a | ||
890 | global soft reset. | ||
891 | |||
892 | When userspace has /dev/watchdog open, no poking is done | ||
893 | from the first interrupt, it is then only poked when the | ||
894 | device is written. | ||
895 | |||
878 | # PARISC Architecture | 896 | # PARISC Architecture |
879 | 897 | ||
880 | # POWERPC Architecture | 898 | # POWERPC Architecture |