Lines Matching +full:wdt +full:- +full:enable +full:- +full:once
1 // SPDX-License-Identifier: GPL-2.0+
3 * w83627hf/thf WDT driver
13 * Based on advantechwdt.c which is based on wdt.c.
16 * (c) Copyright 2000-2001 Marek Michalkiewicz <marekm@linux.org.pl>
23 * "AS-IS" and at no charge.
39 #define WATCHDOG_NAME "w83627hf/thf/hg/dhg WDT"
43 static int cr_wdt_timeout; /* WDT timeout register */
44 static int cr_wdt_control; /* WDT control register */
45 static int cr_wdt_csr; /* WDT control & status register */
63 "Watchdog cannot be stopped once started (default="
74 #define WDT_EFER (wdt_io+0) /* Extended Function Enable Registers */
135 return -EBUSY; in superio_enter()
193 t = superio_inb(0x2D) & ~0x01; /* PIN77 -> WDT0# */ in w83627hf_init()
196 t |= 0x02; /* enable the WDTO# output low pulse in w83627hf_init()
203 t = superio_inb(0x2C) & ~0x80; /* PIN47 -> WDT0# */ in w83627hf_init()
227 t |= 0x02; /* enable the WDTO# output low pulse in w83627hf_init()
242 wdog->timeout); in w83627hf_init()
243 superio_outb(cr_wdt_timeout, wdog->timeout); in w83627hf_init()
253 wdog->bootstatus |= WDIOF_CARDRESET; in w83627hf_init()
281 return wdt_set_time(wdog->timeout); in wdt_start()
291 wdog->timeout = timeout; in wdt_set_timeout()
338 * The WDT needs to learn about soft shutdowns in order to
437 ret = -ENODEV; in wdt_find()
440 ret = -ENODEV; in wdt_find()
490 "W83667DHG-P", in wdt_init()
491 "W83667HG-B", in wdt_init()
504 /* Apply system-specific quirks */ in wdt_init()
516 pr_info("WDT driver for %s Super I/O chip initialising\n", in wdt_init()
549 MODULE_DESCRIPTION("w83627hf/thf WDT driver");