Home
last modified time | relevance | path

Searched +full:watchdog +full:- +full:timeout +full:- +full:ms (Results 1 – 25 of 140) sorted by relevance

123456

/Linux-v5.10/drivers/watchdog/
Dcoh901327_wdt.c1 // 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
12 #include <linux/watchdog.h>
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
[all …]
Dsc520_wdt.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * AMD Elan SC520 processor Watchdog Timer driver
9 * any of this software. This material is provided "AS-IS" in
13 * 9/27 - 2001 [Initial release]
16 * - Fixed formatting
17 * - Removed debug printks
18 * - Fixed SMP built kernel deadlock
19 * - Switched to private locks not lock_kernel
20 * - Used ioremap/writew/readw
21 * - Added NOWAYOUT support
[all …]
Dshwdt.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * drivers/watchdog/shwdt.c
5 * Watchdog driver for integrated watchdog in the SuperH processors.
7 * Copyright (C) 2001 - 2012 Paul Mundt <lethal@linux-sh.org>
9 * 14-Dec-2001 Matt Domsch <Matt_Domsch@dell.com>
12 * 19-Apr-2002 Rob Radez <rob@osinvestor.com>
13 * Added expect close support, made emulated timeout runtime changeable
25 #include <linux/watchdog.h>
33 #include <asm/watchdog.h>
35 #define DRV_NAME "sh-wdt"
[all …]
Dux500_wdt.c1 // 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
16 #include <linux/watchdog.h>
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);
[all …]
Drave-sp-wdt.c1 // SPDX-License-Identifier: GPL-2.0+
4 * Driver for watchdog aspect of for Zodiac Inflight Innovations RAVE
13 #include <linux/mfd/rave-sp.h>
15 #include <linux/nvmem-consumer.h>
20 #include <linux/watchdog.h>
29 * struct rave_sp_wdt_variant - RAVE SP watchdog variant
31 * @max_timeout: Largest possible watchdog timeout setting
32 * @min_timeout: Smallest possible watchdog timeout setting
46 * struct rave_sp_wdt - RAVE SP watchdog
48 * @wdd: Underlying watchdog device
[all …]
Dsun4v_wdt.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * sun4v watchdog timer
6 * Implement a simple watchdog driver using the built-in sun4v hypervisor
7 * watchdog support. If time expires, the hypervisor stops or bounces
18 #include <linux/watchdog.h>
27 static unsigned int timeout; variable
28 module_param(timeout, uint, 0);
29 MODULE_PARM_DESC(timeout, "Watchdog timeout in seconds (default="
34 MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default="
49 * HV watchdog timer will round up the timeout in sun4v_wdt_ping()
[all …]
Dimx_sc_wdt.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright 2018-2019 NXP.
6 #include <linux/arm-smccc.h>
14 #include <linux/watchdog.h>
18 * Software timer tick implemented in scfw side, support 10ms to 0xffffffff ms
40 MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default="
65 return -EACCES; in imx_sc_wdt_start()
70 return res.a0 ? -EACCES : 0; in imx_sc_wdt_start()
80 return res.a0 ? -EACCES : 0; in imx_sc_wdt_stop()
84 unsigned int timeout) in imx_sc_wdt_set_timeout() argument
[all …]
Dda9063_wdt.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Watchdog driver for DA9063 PMICs.
13 #include <linux/watchdog.h>
23 * Watchdog selector to timeout in seconds.
25 * others: timeout = 2048 ms * 2^(TWDSCALE-1).
30 #define DA9063_TWDSCALE_MAX (ARRAY_SIZE(wdt_timeout) - 1)
49 * Read the currently active timeout.
50 * Zero means the watchdog is disabled.
56 regmap_read(da9063->regmap, DA9063_REG_CONTROL_D, &val); in da9063_wdt_read_timeout()
63 return regmap_update_bits(da9063->regmap, DA9063_REG_CONTROL_D, in da9063_wdt_disable_timer()
[all …]
Dpnx4008_wdt.c1 // SPDX-License-Identifier: GPL-2.0
3 * drivers/char/watchdog/pnx4008_wdt.c
5 * Watchdog driver for PNX4008 board
12 * 2005-2006 (c) MontaVista Software, Inc.
23 #include <linux/watchdog.h>
34 /* WatchDog Timer - Chapter 23 Page 207 */
39 /* Watchdog timer register set definition */
98 /* the longest pulse period 65541/(13*10^6) seconds ~ 5 ms. */ in pnx4008_wdt_start()
100 writel(wdd->timeout * WDOG_COUNTER_RATE, WDTIM_MATCH0(wdt_base)); in pnx4008_wdt_start()
121 wdd->timeout = new_timeout; in pnx4008_wdt_set_timeout()
[all …]
Dts4800_wdt.c2 * Watchdog driver for TS-4800 based boards
4 * Copyright (c) 2015 - Savoir-faire Linux
17 #include <linux/watchdog.h>
22 "Watchdog cannot be stopped once started (default="
38 * TS-4800 supports the following timeout values:
41 * ---------------------
42 * 0 feed for 338ms
45 * 3 disable watchdog
47 * Keep the regmap/timeout map ordered by timeout
50 const int timeout; member
[all …]
Dmenf21bmc_wdt.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * MEN 14F021P00 Board Management Controller (BMC) Watchdog Driver.
11 #include <linux/watchdog.h>
30 MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default="
42 rst_rsn = i2c_smbus_read_byte_data(data->i2c_client, BMC_CMD_RST_RSN); in menf21bmc_wdt_set_bootstatus()
47 data->wdt.bootstatus |= WDIOF_CARDRESET; in menf21bmc_wdt_set_bootstatus()
49 data->wdt.bootstatus |= WDIOF_EXTERN1; in menf21bmc_wdt_set_bootstatus()
51 data->wdt.bootstatus |= WDIOF_EXTERN2; in menf21bmc_wdt_set_bootstatus()
53 data->wdt.bootstatus |= WDIOF_POWERUNDER; in menf21bmc_wdt_set_bootstatus()
62 return i2c_smbus_write_byte(drv_data->i2c_client, BMC_CMD_WD_ON); in menf21bmc_wdt_start()
[all …]
Dvia_wdt.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * VIA Chipset Watchdog Driver
10 * Caveat: PnP must be enabled in BIOS to allow full access to watchdog
11 * control registers. If not, the watchdog must be configured in BIOS manually.
22 #include <linux/watchdog.h>
26 #define VIA_WDT_CONF 0xec /* watchdog enable state */
29 #define VIA_WDT_CONF_ENABLE 0x01 /* 1: enable watchdog */
30 #define VIA_WDT_CONF_MMIO 0x02 /* 1: enable watchdog MMIO */
33 * The MMIO region contains the watchdog control register and the
42 #define VIA_WDT_FIRED 0x02 /* 1: restarted by expired watchdog */
[all …]
Dmt7621_wdt.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Ralink MT7621/MT7628 built-in hardware watchdog timer
7 * This driver was based on: drivers/watchdog/rt2880_wdt.c
14 #include <linux/watchdog.h>
19 #include <asm/mach-ralink/ralink_regs.h>
40 "Watchdog cannot be stopped once started (default="
62 w->timeout = t; in mt7621_wdt_set_timeout()
73 /* set the prescaler to 1ms == 1000us */ in mt7621_wdt_start()
76 mt7621_wdt_set_timeout(w, w->timeout); in mt7621_wdt_start()
112 .identity = "Mediatek Watchdog",
[all …]
Dwdat_wdt.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * ACPI Hardware Watchdog (WDAT) driver.
14 #include <linux/watchdog.h>
19 * struct wdat_instruction - Single ACPI WDAT instruction
31 * struct wdat_wdt - ACPI WDAT watchdog device
33 * @wdd: Watchdog core device
34 * @period: How long is one watchdog period in ms
35 * @stopped_in_sleep: Is this watchdog stopped by the firmware in S1-S5
36 * @stopped: Was the watchdog stopped by the driver in suspend
54 MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default="
[all …]
Df71808e_wdt.c1 // SPDX-License-Identifier: GPL-2.0-or-later
4 * Copyright (C) 2007-2009 Hans de Goede <hdegoede@redhat.com> *
22 #include <linux/watchdog.h>
26 #define SIO_F71808FG_LD_WDT 0x07 /* Watchdog timer logical device */
27 #define SIO_UNLOCK_KEY 0x87 /* Key to enable Super-I/O */
28 #define SIO_LOCK_KEY 0xAA /* Key to disable Super-I/O */
36 #define SIO_F81866_REG_PORT_SEL 0x27 /* F81866 Multi-Function Register */
73 #define WATCHDOG_TIMEOUT 60 /* 1 minute default timeout */
75 #define WATCHDOG_PULSE_WIDTH 125 /* 125 ms, default pulse width for
76 watchdog signal */
[all …]
Die6xx_wdt.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Intel Atom E6xx Watchdog driver
6 * <alexander.stein@systec-electronic.com>
15 #include <linux/watchdog.h>
48 static unsigned int timeout = DEFAULT_TIME; variable
49 module_param(timeout, uint, 0);
50 MODULE_PARM_DESC(timeout,
51 "Default Watchdog timer setting ("
58 "Watchdog cannot be stopped once started (default="
101 /* Watchdog clock is PCI Clock (33MHz) */ in ie6xx_wdt_set_timeout()
[all …]
Dsbc60xxwdt.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * 60xx Single Board Computer Watchdog Timer driver for Linux 2.2.x
8 * any of this software. This material is provided "AS-IS" in
13 * 12/4 - 2000 [Initial revision]
14 * 25/4 - 2000 Added /dev/watchdog support
15 * 09/5 - 2001 [smj@oro.net] fixed fop_write to "return 1"
17 * 12/4 - 2002 [rob@osinvestor.com] eliminate fop_read
28 * 09/8 - 2003 [wim@iguana.be] cleanup of trailing spaces
30 * made timeout (the emulated heartbeat) a
39 * *) The driver will ping the watchdog by itself, because this
[all …]
Dw83877f_wdt.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * W83877F Computer Watchdog Timer driver
9 * any of this software. This material is provided "AS-IS" in
14 * 4/19 - 2001 [Initial revision]
15 * 9/27 - 2001 Added spinlocking
16 * 4/12 - 2002 [rob@osinvestor.com] Eliminate extra comments
27 * 09/8 - 2003 [wim@iguana.be] cleanup of trailing spaces
30 * made timeout (the emulated heartbeat) a
35 * drivers in that the driver will ping the watchdog by itself,
36 * because this particular WDT has a very short timeout (1.6
[all …]
/Linux-v5.10/Documentation/devicetree/bindings/watchdog/
Dziirave-wdt.txt1 Zodiac RAVE Watchdog Timer
4 - compatible: must be "zii,rave-wdt"
5 - reg: i2c slave address of device, usually 0x38
8 - timeout-sec: Watchdog timeout value in seconds.
9 - reset-duration-ms: Duration of the pulse generated when the watchdog times
14 watchdog@38 {
15 compatible = "zii,rave-wdt";
17 timeout-sec = <30>;
18 reset-duration-ms = <30>;
Dnuvoton,npcm-wdt.txt1 Nuvoton NPCM Watchdog
3 Nuvoton NPCM timer module provides five 24-bit timer counters, and a watchdog.
4 The watchdog supports a pre-timeout interrupt that fires 10ms before the
8 - compatible : "nuvoton,npcm750-wdt" for NPCM750 (Poleg).
9 - reg : Offset and length of the register set for the device.
10 - interrupts : Contain the timer interrupt with flags for
14 - clocks : phandle of timer reference clock.
15 - clock-frequency : The frequency in Hz of the clock that drives the NPCM7xx
19 - timeout-sec : Contains the watchdog timeout in seconds
24 compatible = "nuvoton,npcm750-wdt";
/Linux-v5.10/drivers/staging/comedi/drivers/
Daddi_watchdog.c1 // SPDX-License-Identifier: GPL-2.0+
3 * COMEDI driver for the watchdog subdevice found on some addi-data boards
6 * Based on implementations in various addi-data COMEDI drivers.
8 * COMEDI - Linux Control and Measurement Device Interface
23 * The watchdog subdevice is configured with two INSN_CONFIG instructions:
25 * Enable the watchdog and set the reload timeout:
27 * data[1] = timeout reload value
29 * Disable the watchdog:
37 struct addi_watchdog_private *spriv = s->private; in addi_watchdog_insn_config()
42 spriv->wdog_ctrl = ADDI_TCW_CTRL_ENA; in addi_watchdog_insn_config()
[all …]
/Linux-v5.10/Documentation/watchdog/
Dwatchdog-parameters.rst2 WatchDog Module Parameters
6 the Linux watchdog drivers. Watchdog driver parameter specs should
7 be listed here unless the driver has its own driver-specific information
10 See Documentation/admin-guide/kernel-parameters.rst for information on
14 -------------------------------------------------
16 watchdog core:
18 Maximum time, in seconds, for which the watchdog framework will take
19 care of pinging a running hardware watchdog until userspace opens the
21 timeout. Setting this to a non-zero value can be useful to ensure that
25 -------------------------------------------------
[all …]
/Linux-v5.10/drivers/spi/
Dspi-sprd-adi.c4 * SPDX-License-Identifier: GPL-2.0
37 #define REG_ADI_CHN_ADDR(id) (0x44 + (id - 2) * 4)
60 /* Timeout (ms) for the trylock of hardware spinlocks */
72 /* Registers definitions for PMIC watchdog controller */
105 /* Use default timeout 50 ms that converts to watchdog values */
122 if (paddr < sadi->slave_pbase || paddr > in sprd_adi_check_paddr()
123 (sadi->slave_pbase + ADI_SLAVE_ADDR_SIZE)) { in sprd_adi_check_paddr()
124 dev_err(sadi->dev, in sprd_adi_check_paddr()
127 return -EINVAL; in sprd_adi_check_paddr()
135 return (paddr - sadi->slave_pbase + sadi->slave_vbase); in sprd_adi_to_vaddr()
[all …]
/Linux-v5.10/drivers/usb/host/
Dehci-timer.c1 // SPDX-License-Identifier: GPL-2.0+
6 /* This file is part of ehci-hcd.c */
8 /*-------------------------------------------------------------------------*/
13 ehci->command |= bit; in ehci_set_command_bit()
14 ehci_writel(ehci, ehci->command, &ehci->regs->command); in ehci_set_command_bit()
17 ehci_readl(ehci, &ehci->regs->command); in ehci_set_command_bit()
23 ehci->command &= ~bit; in ehci_clear_command_bit()
24 ehci_writel(ehci, ehci->command, &ehci->regs->command); in ehci_clear_command_bit()
27 ehci_readl(ehci, &ehci->regs->command); in ehci_clear_command_bit()
30 /*-------------------------------------------------------------------------*/
[all …]
/Linux-v5.10/drivers/hwmon/
Dsch56xx-common.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (C) 2010-2012 Hans de Goede <hdegoede@redhat.com> *
17 #include <linux/watchdog.h>
20 #include "sch56xx-common.h"
25 MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default="
29 #define SIO_UNLOCK_KEY 0x55 /* Key to enable Super-I/O */
30 #define SIO_LOCK_KEY 0xAA /* Key to disable Super-I/O */
45 /* Watchdog registers */
76 return -EBUSY; in superio_enter()
102 * the EM to respond is 15 ms, but testing shows in practice it in sch56xx_send_cmd()
[all …]

123456