Lines Matching +full:timeout +full:- +full:minutes
1 // SPDX-License-Identifier: GPL-2.0
3 * Watchdog timer driver for the WinSystems EBC-C384
18 #define MODULE_NAME "ebc-c384_wdt"
21 * The timeout value in minutes must fit in a single byte when sent to the
22 * watchdog timer; the maximum timeout possible is 15300 (255 * 60) seconds.
35 static unsigned timeout; variable
36 module_param(timeout, uint, 0);
37 MODULE_PARM_DESC(timeout, "Watchdog timeout in seconds (default="
42 unsigned t = wdev->timeout; in ebc_c384_wdt_start()
44 /* resolution is in minutes for timeouts greater than 255 seconds */ in ebc_c384_wdt_start()
62 /* resolution is in minutes for timeouts greater than 255 seconds */ in ebc_c384_wdt_set_timeout()
65 wdev->timeout = roundup(t, 60); in ebc_c384_wdt_set_timeout()
67 /* set watchdog timer for minutes */ in ebc_c384_wdt_set_timeout()
70 wdev->timeout = t; in ebc_c384_wdt_set_timeout()
95 dev_err(dev, "Unable to lock port addresses (0x%X-0x%X)\n", in ebc_c384_wdt_probe()
97 return -EBUSY; in ebc_c384_wdt_probe()
102 return -ENOMEM; in ebc_c384_wdt_probe()
104 wdd->info = &ebc_c384_wdt_info; in ebc_c384_wdt_probe()
105 wdd->ops = &ebc_c384_wdt_ops; in ebc_c384_wdt_probe()
106 wdd->timeout = WATCHDOG_TIMEOUT; in ebc_c384_wdt_probe()
107 wdd->min_timeout = 1; in ebc_c384_wdt_probe()
108 wdd->max_timeout = WATCHDOG_MAX_TIMEOUT; in ebc_c384_wdt_probe()
111 watchdog_init_timeout(wdd, timeout, dev); in ebc_c384_wdt_probe()
125 if (!dmi_match(DMI_BOARD_NAME, "EBC-C384 SBC")) in ebc_c384_wdt_init()
126 return -ENODEV; in ebc_c384_wdt_init()
140 MODULE_DESCRIPTION("WinSystems EBC-C384 watchdog timer driver");