Skip to contentSkip to conversation

[2.4] Watchdog wdt83627 (Winbond W83627HF/F/HG/G) driver, 2.6 backport

PATCH Tal Kelrich 1 participant 1 message Apr 1, 2007 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

Hello,

Tested and working on Kontron JREX-PM.
fairly straightforward backport of w83627hf_wdt.c from 2.6.20.1

Changes from 2.6 version
Default timeout set to 120 seconds Nonstandard read only proc interface (/proc/watchdog) Always reset timer on driver load
Changed timeout limit to 255
Ignores failure to acquire IO port

Caveats:
Ignores failure to acquire IO port since it is always taken, there's probably a better way around that.
Releases IO port regardless of having acquired it.

Signature · 7 lines
Tal Kelrich
PGP fingerprint: 3EDF FCC5 60BB 4729 AB2F  CAE6 FEC1 9AAC 12B9 AA69
Key Available at: http://www.hasturkun.com/pub.txt
----
The real reason psychology is hard is that psychologists are trying to
do the impossible.
----
drivers/char/Config.in +1 -0
@@ -263,6 +263,7 @@
    tristate '  W83877F (EMACS) Watchdog Timer' CONFIG_W83877F_WDT
    tristate '  WDT Watchdog timer' CONFIG_WDT
    tristate '  WDT PCI Watchdog timer' CONFIG_WDTPCI
+   tristate '  W83627HF/F/HG/G Watchdog' CONFIG_WDT_W83627
    if [ "$CONFIG_WDT" != "n" ]; then
       bool '    WDT501 features' CONFIG_WDT_501
       if [ "$CONFIG_WDT_501" = "y" ]; then
drivers/char/Makefile +1 -0
@@ -323,6 +323,7 @@
 obj-$(CONFIG_SOFT_WATCHDOG) += softdog.o
 obj-$(CONFIG_INDYDOG) += indydog.o
 obj-$(CONFIG_8xx_WDT) += mpc8xx_wdt.o
+obj-$(CONFIG_WDT_W83627) += wdt83627.o
 
 subdir-$(CONFIG_MWAVE) += mwave
 ifeq ($(CONFIG_MWAVE),y)
drivers/char/wdt83627.c +416 -0

416 lines not on this page · raw message