Lines Matching +full:reset +full:- +full:on +full:- +full:timeout
1 // SPDX-License-Identifier: GPL-2.0-or-later
8 * Heavily based upon - IndyDog 0.3
13 * based on softdog.c by Alan Cox <alan@redhat.com>
29 #include <asm/mach-pnx833x/pnx833x.h>
31 #define WATCHDOG_TIMEOUT 30 /* 30 sec Maximum timeout */
42 /** RESET block */
48 /* Set default timeout in MHZ.*/
51 MODULE_PARM_DESC(timeout, "Watchdog timeout in Mhz. (68Mhz clock), default="
62 MODULE_PARM_DESC(start_enabled, "Watchdog is started on module insertion "
67 /* Enable watchdog causing reset. */ in pnx833x_wdt_start()
69 /* Set timeout.*/ in pnx833x_wdt_start()
81 /* Disable watchdog causing reset. */ in pnx833x_wdt_stop()
102 return -EBUSY; in pnx833x_wdt_open()
142 uint32_t timeout, timeout_left = 0; in pnx833x_wdt_ioctl() local
152 return -ENOTTY; in pnx833x_wdt_ioctl()
157 return -EFAULT; in pnx833x_wdt_ioctl()
166 return -EFAULT; in pnx833x_wdt_ioctl()
183 return -EFAULT; in pnx833x_wdt_ioctl()
192 timeout = PNX833X_REG(PNX833X_CONFIG + in pnx833x_wdt_ioctl()
194 return put_user(timeout, (int *)arg); in pnx833x_wdt_ioctl()
237 /* Lets check the reason for the reset.*/ in watchdog_init()
239 /*If bit 31 is set then watchdog was cause of reset.*/ in watchdog_init()
241 pr_info("The system was previously reset due to the watchdog firing - please investigate...\n"); in watchdog_init()
252 pr_err("cannot register miscdev on minor=%d (err=%d)\n", in watchdog_init()