Lines Matching +full:timeout +full:- +full:secs
1 // SPDX-License-Identifier: GPL-2.0+
19 /* default timeout (secs) */
22 static unsigned int timeout; variable
23 module_param(timeout, uint, 0);
24 MODULE_PARM_DESC(timeout,
25 "Watchdog timeout in seconds. (1<=timeout<=4096, default="
39 iowrite8(0x81, priv->io_base + TQMX86_WDCS); in tqmx86_wdt_start()
52 iowrite8(val, priv->io_base + TQMX86_WDCFG); in tqmx86_wdt_set_timeout()
54 wdd->timeout = t; in tqmx86_wdt_set_timeout()
73 struct device *dev = &pdev->dev; in tqmx86_wdt_probe()
80 return -ENOMEM; in tqmx86_wdt_probe()
84 return -ENODEV; in tqmx86_wdt_probe()
86 priv->io_base = devm_ioport_map(dev, res->start, resource_size(res)); in tqmx86_wdt_probe()
87 if (!priv->io_base) in tqmx86_wdt_probe()
88 return -ENOMEM; in tqmx86_wdt_probe()
90 watchdog_set_drvdata(&priv->wdd, priv); in tqmx86_wdt_probe()
92 priv->wdd.parent = dev; in tqmx86_wdt_probe()
93 priv->wdd.info = &tqmx86_wdt_info; in tqmx86_wdt_probe()
94 priv->wdd.ops = &tqmx86_wdt_ops; in tqmx86_wdt_probe()
95 priv->wdd.min_timeout = 1; in tqmx86_wdt_probe()
96 priv->wdd.max_timeout = 4096; in tqmx86_wdt_probe()
97 priv->wdd.max_hw_heartbeat_ms = 4096*1000; in tqmx86_wdt_probe()
98 priv->wdd.timeout = WDT_TIMEOUT; in tqmx86_wdt_probe()
100 watchdog_init_timeout(&priv->wdd, timeout, dev); in tqmx86_wdt_probe()
101 watchdog_set_nowayout(&priv->wdd, WATCHDOG_NOWAYOUT); in tqmx86_wdt_probe()
103 tqmx86_wdt_set_timeout(&priv->wdd, priv->wdd.timeout); in tqmx86_wdt_probe()
105 err = devm_watchdog_register_device(dev, &priv->wdd); in tqmx86_wdt_probe()
116 .name = "tqmx86-wdt",
125 MODULE_ALIAS("platform:tqmx86-wdt");