summaryrefslogtreecommitdiffstats
path: root/include/watchdog.h
Commit message (Collapse)AuthorAgeFilesLines
* watchdog: add watchdog pollerOleksij Rempel2018-03-261-0/+4
| | | | | | | | | | In some cases it is practical to supervise as much as possible of the barebox execution with a watchdog (or multiple watchdogs). This patch provides an async poller for watchdog core framework which can be enabled by the user and stores this configuration to nv. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* watchdog: provide timeout_cur valueOleksij Rempel2018-03-231-0/+1
| | | | | | | | | | timeout_cur will be used for watchdog poller. Provided values should be good enough for most users and still can be changed for separate projects and fit to needed requirements. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* watchdog: move max timeout test in to wd_coreOleksij Rempel2018-03-231-0/+1
| | | | | | | this also will be needed for watchdog poller as well Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* watchdog: register watchdog virtual device with short name wdogOleksij Rempel2018-03-231-0/+1
| | | | | | | | | | | | the watchdog hwdev is usually named with devicetree schema which is not practical for CLI. On device registration "wdog" will be extended with some index number extracted from devicetree (if awailable) or automatically assigned first available number. End result will be "wdog0" .. etc. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* watchdog: rename dev to hwdevSascha Hauer2018-03-221-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* wd: add stub for of_get_watchdog_priorityLucas Stach2015-09-041-2/+6
| | | | | | | Allow drivers to build even if WD core isn't enabled. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/restart'Sascha Hauer2015-09-011-0/+8
|\
| * watchdog: Give watchdogs a nameSascha Hauer2015-08-271-0/+2
| | | | | | | | | | | | | | This adds a dev and name member to struct watchdog which helps distinguishing between different watchdogs. Also add some debugging aids. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * watchdog: Allow multiple watchdogsSascha Hauer2015-08-271-0/+6
| | | | | | | | | | | | | | | | | | Put watchdogs on a list to allow multiple watchdogs. Add a priority field to be able to pick the highest priority watchdog. This patch also provides a of_get_watchdog_priority() function to allow configuring the watchdog priority from the device tree. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | watchdog: Fix static inline opsSascha Hauer2015-08-281-2/+2
|/ | | | | | ...by actually making them static inline. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* watchdog: add static inline no-ops if WD is disabledMarc Kleine-Budde2015-05-151-0/+17
| | | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add a simple watchdog frameworkJuergen Beisert2012-06-291-0/+24
| | | | | | | | This patch adds a simple wd command which can setup, trigger and stop a watchdog on the platform. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* remove unused watchdog headerSascha Hauer2011-12-151-92/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Cleanup (PPC4xx is AMCC now)Wolfgang Denk2005-09-231-1/+1
|
* * Patch by Peter Ryser, 20 Feb 2004:wdenk2004-02-231-0/+4
| | | | | | | | | | | | | Add support for the Xilinx ML300 platform * Patch by Stephan Linz, 17 Feb 2004: Fix watchdog support for NIOS * Patch by Josh Fryman, 16 Feb 2004: Fix byte-swapping for cfi_flash.c for different bus widths * Patch by Jon Diekema, 14 Jeb 2004: Remove duplicate "FPGA Support" notes from the README file
* Add I2C and RTC support for RMU board using software I2C driverwdenk2003-08-291-12/+0
| | | | | (because of better response to iprobe command); fix problem with "reset" command
* * Code cleanup:wdenk2003-06-271-1/+0
| | | | | | | | | - remove trailing white space, trailing empty lines, C++ comments, etc. - split cmd_boot.c (separate cmd_bdinfo.c and cmd_load.c) * Patches by Kenneth Johansson, 25 Jun 2003: - major rework of command structure (work done mostly by Michal Cendrowski and Joakim Kristiansen)
* * Patch by Martin Winistoerfer, 23 Mar 2003wdenk2003-03-311-0/+5
| | | | | | | | | - Add port to MPC555/556 microcontrollers - Add support for cmi customer board with Intel 28F128J3A, 28F320J3A or 28F640J3A flash. * Patch by Rick Bronson, 28 Mar 2003: - fix common/cmd_nand.c
* Initial revisionwdenk2002-03-081-0/+96