hc
2024-05-14 bedbef8ad3e75a304af6361af235302bcc61d06b
kernel/drivers/watchdog/it87_wdt.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Watchdog Timer Driver
34 * for ITE IT87xx Environment Control - Low Pin Count Input / Output
....@@ -14,17 +15,7 @@
1415 * Support of the watchdog timers, which are available on
1516 * IT8607, IT8620, IT8622, IT8625, IT8628, IT8655, IT8665, IT8686,
1617 * IT8702, IT8712, IT8716, IT8718, IT8720, IT8721, IT8726, IT8728,
17
- * and IT8783.
18
- *
19
- * This program is free software; you can redistribute it and/or
20
- * modify it under the terms of the GNU General Public License
21
- * as published by the Free Software Foundation; either version
22
- * 2 of the License, or (at your option) any later version.
23
- *
24
- * This program is distributed in the hope that it will be useful,
25
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
26
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27
- * GNU General Public License for more details.
18
+ * IT8772, IT8783 and IT8784.
2819 */
2920
3021 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
....@@ -75,7 +66,10 @@
7566 #define IT8721_ID 0x8721
7667 #define IT8726_ID 0x8726 /* the data sheet suggest wrongly 0x8716 */
7768 #define IT8728_ID 0x8728
69
+#define IT8772_ID 0x8772
7870 #define IT8783_ID 0x8783
71
+#define IT8784_ID 0x8784
72
+#define IT8786_ID 0x8786
7973
8074 /* GPIO Configuration Registers LDN=0x07 */
8175 #define WDTCTRL 0x71
....@@ -302,7 +296,10 @@
302296 case IT8720_ID:
303297 case IT8721_ID:
304298 case IT8728_ID:
299
+ case IT8772_ID:
305300 case IT8783_ID:
301
+ case IT8784_ID:
302
+ case IT8786_ID:
306303 max_units = 65535;
307304 break;
308305 case IT8705_ID: