Lines Matching +full:timeout +full:- +full:ms
1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) ST-Ericsson SA 2011-2013
5 * Author: Mathieu Poirier <mathieu.poirier@linaro.org> for ST-Ericsson
6 * Author: Jonas Aaberg <jonas.aberg@stericsson.com> for ST-Ericsson
20 #include <linux/mfd/dbx500-prcmu.h>
25 #define WATCHDOG_MAX28 268435 /* 28 bit resolution in ms == 268435.455 s */
26 #define WATCHDOG_MAX32 4294967 /* 32 bit resolution in ms == 4294967.295 s */
28 static unsigned int timeout = WATCHDOG_TIMEOUT; variable
29 module_param(timeout, uint, 0);
30 MODULE_PARM_DESC(timeout,
31 "Watchdog timeout in seconds. default="
56 unsigned int timeout) in ux500_wdt_set_timeout() argument
59 prcmu_load_a9wdog(PRCMU_WDOG_ALL, timeout * 1000); in ux500_wdt_set_timeout()
88 struct device *dev = &pdev->dev; in ux500_wdt_probe()
93 if (pdata->timeout > 0) in ux500_wdt_probe()
94 timeout = pdata->timeout; in ux500_wdt_probe()
95 if (pdata->has_28_bits_resolution) in ux500_wdt_probe()
106 prcmu_load_a9wdog(PRCMU_WDOG_ALL, timeout * 1000); in ux500_wdt_probe()
125 prcmu_load_a9wdog(PRCMU_WDOG_ALL, timeout * 1000); in ux500_wdt_suspend()
137 prcmu_load_a9wdog(PRCMU_WDOG_ALL, timeout * 1000); in ux500_wdt_resume()