Commit dee00abb authored by Giel van Schijndel's avatar Giel van Schijndel Committed by Wim Van Sebroeck

watchdog: f71808e_wdt: add support for the F71889FG

Signed-off-by: default avatarGiel van Schijndel <me@mortis.eu>
Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
parent 29c3e8c8
...@@ -409,11 +409,11 @@ config ALIM7101_WDT ...@@ -409,11 +409,11 @@ config ALIM7101_WDT
Most people will say N. Most people will say N.
config F71808E_WDT config F71808E_WDT
tristate "Fintek F71808E and F71882FG Watchdog" tristate "Fintek F71808E, F71882FG and F71889FG Watchdog"
depends on X86 && EXPERIMENTAL depends on X86 && EXPERIMENTAL
help help
This is the driver for the hardware watchdog on the Fintek This is the driver for the hardware watchdog on the Fintek
F71808E and F71882FG Super I/O controllers. F71808E, F71882FG and F71889FG Super I/O controllers.
You can compile this driver directly into the kernel, or use You can compile this driver directly into the kernel, or use
it as a module. The module will be called f71808e_wdt. it as a module. The module will be called f71808e_wdt.
......
...@@ -308,6 +308,12 @@ static int watchdog_start(void) ...@@ -308,6 +308,12 @@ static int watchdog_start(void)
superio_set_bit(watchdog.sioaddr, 0x29, 1); superio_set_bit(watchdog.sioaddr, 0x29, 1);
break; break;
case f71889fg:
/* set pin 40 to WDTRST# */
superio_outb(watchdog.sioaddr, 0x2b,
superio_inb(watchdog.sioaddr, 0x2b) & 0xcf);
break;
default: default:
/* /*
* 'default' label to shut up the compiler and catch * 'default' label to shut up the compiler and catch
...@@ -708,8 +714,10 @@ static int __init f71808e_find(int sioaddr) ...@@ -708,8 +714,10 @@ static int __init f71808e_find(int sioaddr)
case SIO_F71882_ID: case SIO_F71882_ID:
watchdog.type = f71882fg; watchdog.type = f71882fg;
break; break;
case SIO_F71862_ID:
case SIO_F71889_ID: case SIO_F71889_ID:
watchdog.type = f71889fg;
break;
case SIO_F71862_ID:
/* These have a watchdog, though it isn't implemented (yet). */ /* These have a watchdog, though it isn't implemented (yet). */
err = -ENOSYS; err = -ENOSYS;
goto exit; goto exit;
......
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