Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

watchdog: w83627hf_wdt: Add support for NCT6791 and NCT6792

The watchdog functionality in both chips is almost identical to NCT6779.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>

authored by

Guenter Roeck and committed by
Wim Van Sebroeck
a77841d5 1cc7495c

+15 -1
+2
drivers/watchdog/Kconfig
··· 1015 1015 NCT6775 1016 1016 NCT6776 1017 1017 NCT6779 1018 + NCT6791 1019 + NCT6792 1018 1020 1019 1021 This watchdog simply watches your kernel to make sure it doesn't 1020 1022 freeze, and if it does, it reboots your computer after a certain
+13 -1
drivers/watchdog/w83627hf_wdt.c
··· 50 50 51 51 enum chips { w83627hf, w83627s, w83697hf, w83697ug, w83637hf, w83627thf, 52 52 w83687thf, w83627ehf, w83627dhg, w83627uhg, w83667hg, w83627dhg_p, 53 - w83667hg_b, nct6775, nct6776, nct6779 }; 53 + w83667hg_b, nct6775, nct6776, nct6779, nct6791, nct6792 }; 54 54 55 55 static int timeout; /* in seconds */ 56 56 module_param(timeout, int, 0); ··· 95 95 #define NCT6775_ID 0xb4 96 96 #define NCT6776_ID 0xc3 97 97 #define NCT6779_ID 0xc5 98 + #define NCT6791_ID 0xc8 99 + #define NCT6792_ID 0xc9 98 100 99 101 #define W83627HF_WDT_TIMEOUT 0xf6 100 102 #define W83697HF_WDT_TIMEOUT 0xf4 ··· 197 195 case nct6775: 198 196 case nct6776: 199 197 case nct6779: 198 + case nct6791: 199 + case nct6792: 200 200 /* 201 201 * These chips have a fixed WDTO# output pin (W83627UHG), 202 202 * or support more than one WDTO# output pin. ··· 399 395 case NCT6779_ID: 400 396 ret = nct6779; 401 397 break; 398 + case NCT6791_ID: 399 + ret = nct6791; 400 + break; 401 + case NCT6792_ID: 402 + ret = nct6792; 403 + break; 402 404 case 0xff: 403 405 ret = -ENODEV; 404 406 break; ··· 438 428 "NCT6775", 439 429 "NCT6776", 440 430 "NCT6779", 431 + "NCT6791", 432 + "NCT6792", 441 433 }; 442 434 443 435 wdt_io = 0x2e;