Re: [PATCH] watchdog: it87_wdt: add IT8782_ID

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/08/2016 06:07 AM, Liu Qishuai wrote:
Add watchdog support for IT8782 chip.

Tested on SV3-26026 mainboard.

Signed-off-by: Liu Qishuai <lqs@xxxxxx>


Almost the same, but not quite. This ends up programming LDN=0x0a, register 0x70,
which is Consumer Infrared on other chips but serial port 5 configuration on IT8782.
This ends up reprogramming and thus affecting interrupt support for this serial port.
It also force-enables this serial port, and reprograms its IO base address.

Guenter


diff --git a/drivers/watchdog/it87_wdt.c b/drivers/watchdog/it87_wdt.c
index e54839b..c9b2b80 100644
--- a/drivers/watchdog/it87_wdt.c
+++ b/drivers/watchdog/it87_wdt.c
@@ -13,7 +13,7 @@
  *
  *	Support of the watchdog timers, which are available on
  *	IT8702, IT8712, IT8716, IT8718, IT8720, IT8721, IT8726,
- *	IT8728 and IT8783.
+ *	IT8728, IT8782 and IT8783.
  *
  *	This program is free software; you can redistribute it and/or
  *	modify it under the terms of the GNU General Public License
@@ -87,6 +87,7 @@
 #define IT8721_ID	0x8721
 #define IT8726_ID	0x8726	/* the data sheet suggest wrongly 0x8716 */
 #define IT8728_ID	0x8728
+#define IT8782_ID	0x8782
 #define IT8783_ID	0x8783

 /* GPIO Configuration Registers LDN=0x07 */
@@ -634,6 +635,7 @@ static int __init it87_wdt_init(void)
 	case IT8720_ID:
 	case IT8721_ID:
 	case IT8728_ID:
+	case IT8782_ID:
 	case IT8783_ID:
 		max_units = 65535;
 		try_gameport = 0;
--
To unsubscribe from this list: send the line "unsubscribe linux-watchdog" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


--
To unsubscribe from this list: send the line "unsubscribe linux-watchdog" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux