Commit 6ec9eae6 authored by Martyn Welch's avatar Martyn Welch Committed by Wim Van Sebroeck

[WATCHDOG] Enable watchdog timer on GE Fanuc's SBC610

Support for the FPGA based watchdog timer on GE Fanuc's SBC610.

This patch enables one of the watchdog timers found on the SBC610. There are
two identical watchdog timers at different offsets in the above mentioned
boards, however the current driver is only capable of supporting one of them.

The watchdog timers are also capable of generating interrupts at a
user-configurable threshold, though support for this operation is currently
not supported by the driver.
Signed-off-by: default avatarMartyn Welch <martyn.welch@gefanuc.com>
Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
parent 3268b561
...@@ -88,6 +88,21 @@ fpga@4,0 { ...@@ -88,6 +88,21 @@ fpga@4,0 {
compatible = "gef,fpga-regs"; compatible = "gef,fpga-regs";
reg = <0x4 0x0 0x40>; reg = <0x4 0x0 0x40>;
}; };
wdt@4,2000 {
compatible = "gef,fpga-wdt";
reg = <0x4 0x2000 0x8>;
interrupts = <0x1a 0x4>;
interrupt-parent = <&gef_pic>;
};
/* Second watchdog available, driver currently supports one.
wdt@4,2010 {
compatible = "gef,fpga-wdt";
reg = <0x4 0x2010 0x8>;
interrupts = <0x1b 0x4>;
interrupt-parent = <&gef_pic>;
};
*/
gef_pic: pic@4,4000 { gef_pic: pic@4,4000 {
#interrupt-cells = <1>; #interrupt-cells = <1>;
interrupt-controller; interrupt-controller;
......
...@@ -1164,6 +1164,7 @@ CONFIG_WATCHDOG=y ...@@ -1164,6 +1164,7 @@ CONFIG_WATCHDOG=y
# CONFIG_SOFT_WATCHDOG is not set # CONFIG_SOFT_WATCHDOG is not set
# CONFIG_ALIM7101_WDT is not set # CONFIG_ALIM7101_WDT is not set
# CONFIG_8xxx_WDT is not set # CONFIG_8xxx_WDT is not set
CONFIG_GEF_WDT=y
# #
# PCI-based Watchdog Cards # PCI-based Watchdog Cards
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment