[linux-yocto] [PATCH 06/11] watchdog: iTCO-wdt handle 5th variation

Yong, Jonathan jonathan.yong at intel.com
Mon Jun 27 18:28:21 PDT 2016


From: Jonathan Yong <jonathan.yong at intel.com>

Apollo Lake Watchdog is not on the SMBUS, but on the PMC, most
register locations remains unchanged except for the NO_REBOOT bit
in the SMI_EN register.

Signed-off-by: Jonathan Yong <jonathan.yong at intel.com>
---
 drivers/watchdog/iTCO_wdt.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/watchdog/iTCO_wdt.c b/drivers/watchdog/iTCO_wdt.c
index 0acc6c5..54cab18 100644
--- a/drivers/watchdog/iTCO_wdt.c
+++ b/drivers/watchdog/iTCO_wdt.c
@@ -150,6 +150,7 @@ static inline u32 no_reboot_bit(void)
 	u32 enable_bit;
 
 	switch (iTCO_wdt_private.iTCO_version) {
+	case 5:
 	case 3:
 		enable_bit = 0x00000010;
 		break;
@@ -512,6 +513,7 @@ static int iTCO_wdt_probe(struct platform_device *dev)
 
 	/* Clear out the (probably old) status */
 	switch (iTCO_wdt_private.iTCO_version) {
+	case 5:
 	case 4:
 		outw(0x0008, TCO1_STS);	/* Clear the Time Out Status bit */
 		outw(0x0002, TCO2_STS);	/* Clear SECOND_TO_STS bit */
-- 
2.7.3



More information about the linux-yocto mailing list