Skip to contentSkip to conversation

GE Fanuc's FPGA based watchdog

PATCH New Martyn Welch 1 participant 3 messages Nov 10, 2008

Subsystems (3)
lore
Share & tools
lore
#1 lore raw

PATCH 1/2 watchdog: Basic support for GE Fanuc's FPGA based watchdog timer

In reply to Martyn Welch

GE Fanuc SBC610

Support for the FPGA based watchdog timer as found on GE Fanuc's SBC310, SBC610 and PPC9A Single Board Computers.

This patch adds support for the watchdog timer found in one of the devices FPGAs. There are two identical watchdog timers at different offsets in the above mentioned boards, this driver is 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.

---

 drivers/watchdog/Kconfig   |    6 +
 drivers/watchdog/Makefile  |    1 
 drivers/watchdog/gef_wdt.c |  333 ++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 340 insertions(+), 0 deletions(-)
 create mode 100644 drivers/watchdog/gef_wdt.c
drivers/watchdog/Kconfig +6 -0
index 1a22fe7..df91e88 100644
@@ -778,6 +778,12 @@ config BOOKE_WDT
 	  Please see Documentation/watchdog/watchdog-api.txt for
 	  more information.
 
+config GEF_WDT
+	tristate "GE Fanuc Watchdog Timer"
+	depends on GEF_SBC610
+	---help---
+	  Watchdog timer found in a number of GE Fanuc single board computers.
+
 # PPC64 Architecture
 
 config WATCHDOG_RTAS
drivers/watchdog/Makefile +1 -0
index e352bbb..be7e1d3 100644
@@ -114,6 +114,7 @@ obj-$(CONFIG_MPC5200_WDT) += mpc5200_wdt.o
 obj-$(CONFIG_8xxx_WDT) += mpc8xxx_wdt.o
 obj-$(CONFIG_MV64X60_WDT) += mv64x60_wdt.o
 obj-$(CONFIG_BOOKE_WDT) += booke_wdt.o
+obj-$(CONFIG_GEF_WDT) += gef_wdt.o
 
 # PPC64 Architecture
 obj-$(CONFIG_WATCHDOG_RTAS) += wdrtas.o
drivers/watchdog/gef_wdt.c new file +333 -0

333 lines not on this page · raw message

#2 lore raw

PATCH 2/2 powerpc: Enable watchdog timer on GE Fanuc's SBC610

In reply to Martyn Welch

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.

---

 arch/powerpc/boot/dts/gef_sbc610.dts           |   15 +++++++++++++++
 arch/powerpc/configs/86xx/gef_sbc610_defconfig |    1 +
 2 files changed, 16 insertions(+), 0 deletions(-)
arch/powerpc/boot/dts/gef_sbc610.dts +15 -0
index 1f7833c..2458690 100644
@@ -88,6 +88,21 @@
 			compatible = "gef,fpga-regs";
 			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 {
 			#interrupt-cells = <1>;
 			interrupt-controller;
arch/powerpc/configs/86xx/gef_sbc610_defconfig +1 -0
index 312d7af..99fe882 100644
@@ -1109,6 +1109,7 @@ CONFIG_WATCHDOG=y
 # Watchdog Device Drivers
 #
 # CONFIG_SOFT_WATCHDOG is not set
+CONFIG_GEF_WDT=y
 
 #
 # PCI-based Watchdog Cards
#0 lore raw

cover GE Fanuc's FPGA based watchdog

The following series implements and enables support for the FPGA based watchdog timers found on GE Fanuc's 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.

---

Martyn Welch (2):
powerpc: Enable watchdog timer on GE Fanuc's SBC610
watchdog: Basic support for GE Fanuc's FPGA based watchdog timer

 arch/powerpc/boot/dts/gef_sbc610.dts           |   15 +
 arch/powerpc/configs/86xx/gef_sbc610_defconfig |    1 
 drivers/watchdog/Kconfig                       |    6 
 drivers/watchdog/Makefile                      |    1 
 drivers/watchdog/gef_wdt.c                     |  333 ++++++++++++++++++++++++
 5 files changed, 356 insertions(+), 0 deletions(-)
 create mode 100644 drivers/watchdog/gef_wdt.c
Signature · 1 line
Signature