Skip to content

Commit e11cfc6

Browse files
skrishnakarWim Van Sebroeck
authored andcommitted
watchdog: w83627hf_wdt: Support NCT6116D
The watchdog controller on NCT6116D is compatible with NCT6102D. Extend the support to enable SuperIO based NCT6116D watchdog device. Signed-off-by: Srikanth Krishnakar <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]>
1 parent 31f4f5b commit e11cfc6

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

drivers/watchdog/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1485,6 +1485,7 @@ config W83627HF_WDT
14851485
NCT6791
14861486
NCT6792
14871487
NCT6102D/04D/06D
1488+
NCT6116D
14881489

14891490
This watchdog simply watches your kernel to make sure it doesn't
14901491
freeze, and if it does, it reboots your computer after a certain

drivers/watchdog/w83627hf_wdt.c

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ static int wdt_cfg_leave = 0xAA;/* key to lock configuration space */
4949
enum chips { w83627hf, w83627s, w83697hf, w83697ug, w83637hf, w83627thf,
5050
w83687thf, w83627ehf, w83627dhg, w83627uhg, w83667hg, w83627dhg_p,
5151
w83667hg_b, nct6775, nct6776, nct6779, nct6791, nct6792, nct6793,
52-
nct6795, nct6796, nct6102 };
52+
nct6795, nct6796, nct6102, nct6116 };
5353

5454
static int timeout; /* in seconds */
5555
module_param(timeout, int, 0);
@@ -94,6 +94,7 @@ MODULE_PARM_DESC(early_disable, "Disable watchdog at boot time (default=0)");
9494
#define NCT6775_ID 0xb4
9595
#define NCT6776_ID 0xc3
9696
#define NCT6102_ID 0xc4
97+
#define NCT6116_ID 0xd2
9798
#define NCT6779_ID 0xc5
9899
#define NCT6791_ID 0xc8
99100
#define NCT6792_ID 0xc9
@@ -211,6 +212,7 @@ static int w83627hf_init(struct watchdog_device *wdog, enum chips chip)
211212
case nct6795:
212213
case nct6796:
213214
case nct6102:
215+
case nct6116:
214216
/*
215217
* These chips have a fixed WDTO# output pin (W83627UHG),
216218
* or support more than one WDTO# output pin.
@@ -417,6 +419,12 @@ static int wdt_find(int addr)
417419
cr_wdt_control = NCT6102D_WDT_CONTROL;
418420
cr_wdt_csr = NCT6102D_WDT_CSR;
419421
break;
422+
case NCT6116_ID:
423+
ret = nct6102;
424+
cr_wdt_timeout = NCT6102D_WDT_TIMEOUT;
425+
cr_wdt_control = NCT6102D_WDT_CONTROL;
426+
cr_wdt_csr = NCT6102D_WDT_CSR;
427+
break;
420428
case 0xff:
421429
ret = -ENODEV;
422430
break;
@@ -482,6 +490,7 @@ static int __init wdt_init(void)
482490
"NCT6795",
483491
"NCT6796",
484492
"NCT6102",
493+
"NCT6116",
485494
};
486495

487496
/* Apply system-specific quirks */

0 commit comments

Comments
 (0)