Lines Matching +full:watchdog +full:- +full:timeout +full:- +full:ms
1 // SPDX-License-Identifier: GPL-2.0
3 * drivers/char/watchdog/pnx4008_wdt.c
5 * Watchdog driver for PNX4008 board
12 * 2005-2006 (c) MontaVista Software, Inc.
23 #include <linux/watchdog.h>
34 /* WatchDog Timer - Chapter 23 Page 207 */
39 /* Watchdog timer register set definition */
98 /* the longest pulse period 65541/(13*10^6) seconds ~ 5 ms. */ in pnx4008_wdt_start()
100 writel(wdd->timeout * WDOG_COUNTER_RATE, WDTIM_MATCH0(wdt_base)); in pnx4008_wdt_start()
121 wdd->timeout = new_timeout; in pnx4008_wdt_set_timeout()
133 * - For details, see the 'reboot' syscall in kernel/reboot.c in pnx4008_restart_handler()
134 * - If the received "cmd" is not supported, use the default mode. in pnx4008_restart_handler()
149 /* Instant assert of RESETOUT_N with pulse length 1mS */ in pnx4008_restart_handler()
154 /* Wait for watchdog to reset system */ in pnx4008_restart_handler()
163 .identity = "PNX4008 Watchdog",
177 .timeout = DEFAULT_HEARTBEAT,
184 struct device *dev = &pdev->dev; in pnx4008_wdt_probe()
210 dev_info(dev, "heartbeat %d sec\n", pnx4008_wdd.timeout); in pnx4008_wdt_probe()
217 { .compatible = "nxp,pnx4008-wdt" },
225 .name = "pnx4008-watchdog",
235 MODULE_DESCRIPTION("PNX4008 Watchdog Driver");
239 "Watchdog heartbeat period in seconds from 1 to "
245 "Set to 1 to keep watchdog running after device release");
248 MODULE_ALIAS("platform:pnx4008-watchdog");