OSDN Git Service

[PATCH] Watchdog w83977ef (Winbond W83977EF) driver
authorTal Kelrich <tal@musicgenome.com>
Tue, 10 Apr 2007 11:54:32 +0000 (14:54 +0300)
committerWilly Tarreau <w@1wt.eu>
Wed, 18 Apr 2007 09:09:53 +0000 (11:09 +0200)
This driver has been derived from Netwinder's in order not to
modify it. Tested and working on AAEON GENE-6310B Subcompact
Board (also configured for same by default, should work elsewhere)
patch is against kernel 2.4.34.2

Changes/Features:

 - Added ioctl support
 - Disables watchdog on driver load
 - Supports timeout in seconds
 - Timeout defaults to 2 minutes
 - No longer under NetWinder arch
 - Configurable output GP (defaults to GP16)
 - Configurable base IO address
 - Non standard read only proc interface for status (/proc/watchdog)

Caveats:

 - Only tested with GP16
 - Utterly ignores inability to get its IO port, mostly because it's
   already taken. I didn't know a way around that.
 - release_region is called regardless of having acquired the region,
   this might be trouble.

drivers/char/Makefile

index 203c4ad..2f570f7 100644 (file)
@@ -324,6 +324,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
+obj-$(CONFIG_W83977EF_WDT) += wdt83977.o
 
 subdir-$(CONFIG_MWAVE) += mwave
 ifeq ($(CONFIG_MWAVE),y)