diff options
author | Knud Poulsen <knpo@ieee.org> | 2016-04-26 02:44:16 -0400 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2016-05-14 10:24:34 -0400 |
commit | b97cb21a46341575c6cbe3d327a08b99030c3aee (patch) | |
tree | e80dba787223b56962b364025a7e65e298308c29 | |
parent | 85c130a8bf542205a84edbca225972375fcb07eb (diff) |
watchdog: f71808e_wdt: Fix WDTMOUT_STS register read
Tested and verified on Lanner LEC-3030 Industrial PC (with F81865)
Datasheet verified for
F71808, F71858, F71862, F71869, F71869A, F71882, F71889, F81865
Datasheet references:
F71808A:
http://www.electronicsdatasheets.com/download/534cf560e34e2406135f4658.pdf?format=pdf
F71858:
http://www.electronicsdatasheets.com/download/534cf55fe34e2406135f4635.pdf?format=pdf
F71862:
http://www.hardwaresecrets.com/datasheets/F71862_V027P.pdf
F71869:
http://www.clubedohardware.com.br/datasheets/366451_F71869.pdf
F71869A:
http://www.chipset-ic.com/datasheet/F71869AD.pdf
F71882:
http://www.digchip.com/datasheets/parts/datasheet/931/F71882-pdf.php
F71889:
http://pdf1.alldatasheet.com/datasheet-pdf/view/406312/FINTEK/F71889.html
F81865:
http://www.hardwaresecrets.com/datasheets/F81865_V028P.pdf
http://www.alldatasheet.com/datasheet-pdf/pdf/406317/FINTEK/F81865.html
Signed-off-by: Knud Poulsen <knpo@ieee.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
-rw-r--r-- | drivers/watchdog/f71808e_wdt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/watchdog/f71808e_wdt.c b/drivers/watchdog/f71808e_wdt.c index c1e95bcdf911..d4ba262da7ba 100644 --- a/drivers/watchdog/f71808e_wdt.c +++ b/drivers/watchdog/f71808e_wdt.c | |||
@@ -67,7 +67,7 @@ | |||
67 | 67 | ||
68 | #define F71808FG_FLAG_WDOUT_EN 7 | 68 | #define F71808FG_FLAG_WDOUT_EN 7 |
69 | 69 | ||
70 | #define F71808FG_FLAG_WDTMOUT_STS 5 | 70 | #define F71808FG_FLAG_WDTMOUT_STS 6 |
71 | #define F71808FG_FLAG_WD_EN 5 | 71 | #define F71808FG_FLAG_WD_EN 5 |
72 | #define F71808FG_FLAG_WD_PULSE 4 | 72 | #define F71808FG_FLAG_WD_PULSE 4 |
73 | #define F71808FG_FLAG_WD_UNIT 3 | 73 | #define F71808FG_FLAG_WD_UNIT 3 |
@@ -670,7 +670,7 @@ static int __init watchdog_init(int sioaddr) | |||
670 | superio_select(watchdog.sioaddr, SIO_F71808FG_LD_WDT); | 670 | superio_select(watchdog.sioaddr, SIO_F71808FG_LD_WDT); |
671 | 671 | ||
672 | wdt_conf = superio_inb(sioaddr, F71808FG_REG_WDT_CONF); | 672 | wdt_conf = superio_inb(sioaddr, F71808FG_REG_WDT_CONF); |
673 | watchdog.caused_reboot = wdt_conf & F71808FG_FLAG_WDTMOUT_STS; | 673 | watchdog.caused_reboot = wdt_conf & BIT(F71808FG_FLAG_WDTMOUT_STS); |
674 | 674 | ||
675 | superio_exit(sioaddr); | 675 | superio_exit(sioaddr); |
676 | 676 | ||