summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2017-06-11 00:04:36 -0400
committerWim Van Sebroeck <wim@iguana.be>2017-07-03 04:58:59 -0400
commitcddda07c7b31828f08c18f5898df0e457d280ada (patch)
tree548757da16456fad7bc4ea39ab9f662b416f692e
parent1123c514b11201758674e2b34f297b94509d81db (diff)
watchdog: it87: Add support for various Super-IO chips
Add support for IT8607, IT8622, IT8625, IT8628, IT8655, IT8665, and IT8686. Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
-rw-r--r--drivers/watchdog/Kconfig7
-rw-r--r--drivers/watchdog/it87_wdt.c19
2 files changed, 21 insertions, 5 deletions
diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig
index e5749515d3ce..5ca9fb7c1180 100644
--- a/drivers/watchdog/Kconfig
+++ b/drivers/watchdog/Kconfig
@@ -1071,9 +1071,10 @@ config IT87_WDT
1071 depends on X86 1071 depends on X86
1072 select WATCHDOG_CORE 1072 select WATCHDOG_CORE
1073 ---help--- 1073 ---help---
1074 This is the driver for the hardware watchdog on the ITE IT8620, 1074 This is the driver for the hardware watchdog on the ITE IT8607,
1075 IT8702, IT8712, IT8716, IT8718, IT8720, IT8721, IT8726 and IT8728 1075 IT8620, IT8622, IT8625, IT8628, IT8655, IT8665, IT8686, IT8702,
1076 Super I/O chips. 1076 IT8712, IT8716, IT8718, IT8720, IT8721, IT8726, IT8728, and
1077 IT8783 Super I/O chips.
1077 1078
1078 This watchdog simply watches your kernel to make sure it doesn't 1079 This watchdog simply watches your kernel to make sure it doesn't
1079 freeze, and if it does, it reboots your computer after a certain 1080 freeze, and if it does, it reboots your computer after a certain
diff --git a/drivers/watchdog/it87_wdt.c b/drivers/watchdog/it87_wdt.c
index 07f4727eb7f4..dd1e7eaef50f 100644
--- a/drivers/watchdog/it87_wdt.c
+++ b/drivers/watchdog/it87_wdt.c
@@ -12,8 +12,9 @@
12 * http://www.ite.com.tw/ 12 * http://www.ite.com.tw/
13 * 13 *
14 * Support of the watchdog timers, which are available on 14 * Support of the watchdog timers, which are available on
15 * IT8620, IT8702, IT8712, IT8716, IT8718, IT8720, IT8721, IT8726, 15 * IT8607, IT8620, IT8622, IT8625, IT8628, IT8655, IT8665, IT8686,
16 * IT8728 and IT8783. 16 * IT8702, IT8712, IT8716, IT8718, IT8720, IT8721, IT8726, IT8728,
17 * and IT8783.
17 * 18 *
18 * This program is free software; you can redistribute it and/or 19 * This program is free software; you can redistribute it and/or
19 * modify it under the terms of the GNU General Public License 20 * modify it under the terms of the GNU General Public License
@@ -57,7 +58,14 @@
57 58
58/* Chip Id numbers */ 59/* Chip Id numbers */
59#define NO_DEV_ID 0xffff 60#define NO_DEV_ID 0xffff
61#define IT8607_ID 0x8607
60#define IT8620_ID 0x8620 62#define IT8620_ID 0x8620
63#define IT8622_ID 0x8622
64#define IT8625_ID 0x8625
65#define IT8628_ID 0x8628
66#define IT8655_ID 0x8655
67#define IT8665_ID 0x8665
68#define IT8686_ID 0x8686
61#define IT8702_ID 0x8702 69#define IT8702_ID 0x8702
62#define IT8705_ID 0x8705 70#define IT8705_ID 0x8705
63#define IT8712_ID 0x8712 71#define IT8712_ID 0x8712
@@ -282,7 +290,14 @@ static int __init it87_wdt_init(void)
282 case IT8726_ID: 290 case IT8726_ID:
283 max_units = 65535; 291 max_units = 65535;
284 break; 292 break;
293 case IT8607_ID:
285 case IT8620_ID: 294 case IT8620_ID:
295 case IT8622_ID:
296 case IT8625_ID:
297 case IT8628_ID:
298 case IT8655_ID:
299 case IT8665_ID:
300 case IT8686_ID:
286 case IT8718_ID: 301 case IT8718_ID:
287 case IT8720_ID: 302 case IT8720_ID:
288 case IT8721_ID: 303 case IT8721_ID: