Lines Matching +full:timeout +full:- +full:ms
1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2008-2009 ST-Ericsson AB
6 * Watchdog driver for the ST-Ericsson AB COH 901 327 IP core
28 /* WDOG_FEED Register 32bit (-/W) */
34 /* WDOG_DISABLE1 Register 32bit (-/W) */
47 /* WDOG_COUNT Register 32bit (R/-) */
56 /* WDOG_RESTART Register 32bit (-/W) */
70 /* Default timeout in seconds = 1 minute */
83 static void coh901327_enable(u16 timeout) in coh901327_enable() argument
108 writew(timeout, virtbase + U300_WDOG_TR); in coh901327_enable()
148 coh901327_enable(wdt_dev->timeout * 100); in coh901327_start()
169 wdt_dev->timeout = time; in coh901327_settimeout()
170 /* Set new timeout value */ in coh901327_settimeout()
194 * This interrupt occurs 10 ms before the watchdog WILL bark.
204 * when the system is about to watchdog-reset, add them here! in coh901327_interrupt()
206 * NOTE: on future versions of this IP-block, it will be possible in coh901327_interrupt()
237 * Max timeout is 327 since the 10ms
238 * timeout register is max
239 * 0x7FFF = 327670ms ~= 327s.
243 .timeout = U300_WDOG_DEFAULT_TIMEOUT,
248 struct device *dev = &pdev->dev; in coh901327_probe()
306 ret = -EIO; in coh901327_probe()
317 dev_info(dev, "initialized. (timeout=%d sec)\n", in coh901327_probe()
318 coh901327_wdt.timeout); in coh901327_probe()
373 * Timeout = 5s, we have to wait for the watchdog reset to in coh901327_watchdog_reset()
384 * timeout to 10ms (value = 1) without any problems. in coh901327_watchdog_reset()