Lines Matching +full:stop +full:- +full:mode
1 // SPDX-License-Identifier: GPL-2.0
12 * 2005-2006 (c) MontaVista Software, Inc.
34 /* WatchDog Timer - Chapter 23 Page 207 */
87 /* stop counter, initiate counter reset */ in pnx4008_wdt_start()
92 /* internal and external reset, stop after that */ in pnx4008_wdt_start()
100 writel(wdd->timeout * WDOG_COUNTER_RATE, WDTIM_MATCH0(wdt_base)); in pnx4008_wdt_start()
101 /*enable counter, stop when debugger active */ in pnx4008_wdt_start()
112 writel(0, WDTIM_CTRL(wdt_base)); /*stop counter */ in pnx4008_wdt_stop()
121 wdd->timeout = new_timeout; in pnx4008_wdt_set_timeout()
126 unsigned long mode, void *cmd) in pnx4008_restart_handler() argument
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()
138 mode = REBOOT_HARD; in pnx4008_restart_handler()
140 mode = REBOOT_SOFT; in pnx4008_restart_handler()
143 if (mode == REBOOT_SOFT) { in pnx4008_restart_handler()
169 .stop = pnx4008_wdt_stop,
184 struct device *dev = &pdev->dev; in pnx4008_wdt_probe()
217 { .compatible = "nxp,pnx4008-wdt" },
225 .name = "pnx4008-watchdog",
248 MODULE_ALIAS("platform:pnx4008-watchdog");