diff options
author | Guenter Roeck <linux@roeck-us.net> | 2017-05-29 19:21:31 -0400 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2017-06-05 14:55:48 -0400 |
commit | 3a9aedb282acf1499a31834c457335e4535e4a1d (patch) | |
tree | 1dcb0fac0a913806f8c7bd7c5522e7597647c839 | |
parent | 2501b015313fe2fa40ed11fa4dd1748e09b7c773 (diff) |
watchdog: w83627hf: Add support for NCT6793D and NCT6795D
Both NCT6793D and NCT6795D are compatible to NCT6792D.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
-rw-r--r-- | drivers/watchdog/w83627hf_wdt.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/drivers/watchdog/w83627hf_wdt.c b/drivers/watchdog/w83627hf_wdt.c index 98fd186c6878..d9ba0496713c 100644 --- a/drivers/watchdog/w83627hf_wdt.c +++ b/drivers/watchdog/w83627hf_wdt.c | |||
@@ -49,7 +49,8 @@ static int cr_wdt_csr; /* WDT control & status register */ | |||
49 | 49 | ||
50 | enum chips { w83627hf, w83627s, w83697hf, w83697ug, w83637hf, w83627thf, | 50 | enum chips { w83627hf, w83627s, w83697hf, w83697ug, w83637hf, w83627thf, |
51 | w83687thf, w83627ehf, w83627dhg, w83627uhg, w83667hg, w83627dhg_p, | 51 | w83687thf, w83627ehf, w83627dhg, w83627uhg, w83667hg, w83627dhg_p, |
52 | w83667hg_b, nct6775, nct6776, nct6779, nct6791, nct6792, nct6102 }; | 52 | w83667hg_b, nct6775, nct6776, nct6779, nct6791, nct6792, nct6793, |
53 | nct6795, nct6102 }; | ||
53 | 54 | ||
54 | static int timeout; /* in seconds */ | 55 | static int timeout; /* in seconds */ |
55 | module_param(timeout, int, 0); | 56 | module_param(timeout, int, 0); |
@@ -97,6 +98,8 @@ MODULE_PARM_DESC(early_disable, "Disable watchdog at boot time (default=0)"); | |||
97 | #define NCT6779_ID 0xc5 | 98 | #define NCT6779_ID 0xc5 |
98 | #define NCT6791_ID 0xc8 | 99 | #define NCT6791_ID 0xc8 |
99 | #define NCT6792_ID 0xc9 | 100 | #define NCT6792_ID 0xc9 |
101 | #define NCT6793_ID 0xd1 | ||
102 | #define NCT6795_ID 0xd3 | ||
100 | 103 | ||
101 | #define W83627HF_WDT_TIMEOUT 0xf6 | 104 | #define W83627HF_WDT_TIMEOUT 0xf6 |
102 | #define W83697HF_WDT_TIMEOUT 0xf4 | 105 | #define W83697HF_WDT_TIMEOUT 0xf4 |
@@ -204,6 +207,8 @@ static int w83627hf_init(struct watchdog_device *wdog, enum chips chip) | |||
204 | case nct6779: | 207 | case nct6779: |
205 | case nct6791: | 208 | case nct6791: |
206 | case nct6792: | 209 | case nct6792: |
210 | case nct6793: | ||
211 | case nct6795: | ||
207 | case nct6102: | 212 | case nct6102: |
208 | /* | 213 | /* |
209 | * These chips have a fixed WDTO# output pin (W83627UHG), | 214 | * These chips have a fixed WDTO# output pin (W83627UHG), |
@@ -396,6 +401,12 @@ static int wdt_find(int addr) | |||
396 | case NCT6792_ID: | 401 | case NCT6792_ID: |
397 | ret = nct6792; | 402 | ret = nct6792; |
398 | break; | 403 | break; |
404 | case NCT6793_ID: | ||
405 | ret = nct6793; | ||
406 | break; | ||
407 | case NCT6795_ID: | ||
408 | ret = nct6795; | ||
409 | break; | ||
399 | case NCT6102_ID: | 410 | case NCT6102_ID: |
400 | ret = nct6102; | 411 | ret = nct6102; |
401 | cr_wdt_timeout = NCT6102D_WDT_TIMEOUT; | 412 | cr_wdt_timeout = NCT6102D_WDT_TIMEOUT; |
@@ -437,6 +448,8 @@ static int __init wdt_init(void) | |||
437 | "NCT6779", | 448 | "NCT6779", |
438 | "NCT6791", | 449 | "NCT6791", |
439 | "NCT6792", | 450 | "NCT6792", |
451 | "NCT6793", | ||
452 | "NCT6795", | ||
440 | "NCT6102", | 453 | "NCT6102", |
441 | }; | 454 | }; |
442 | 455 | ||