aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2019-04-03 07:37:40 +0200
committerEugen Hristev <eugen.hristev@microchip.com>2019-04-09 09:28:50 +0300
commit256c2ff0cc6cdc8cf7c225bc6e03b92afae353b4 (patch)
tree2ee19c4cdb862e194900282f1efe0377135895b4 /drivers
parent05d4b8e4ad9b24a2dace09d86c39b2b4f056f613 (diff)
downloadu-boot-256c2ff0cc6cdc8cf7c225bc6e03b92afae353b4.zip
u-boot-256c2ff0cc6cdc8cf7c225bc6e03b92afae353b4.tar.gz
u-boot-256c2ff0cc6cdc8cf7c225bc6e03b92afae353b4.tar.bz2
arm: at91: Enable watchdog support
This patch enables and starts the watchdog on the AT91 platform if configured. The WD timeout value is read in the AT91 WD device driver from the DT, using the "timeout-sec" DT property. If not provided in the DT, the default value of 2 seconds is used. Signed-off-by: Stefan Roese <sr@denx.de> Cc: Heiko Schocher <hs@denx.de> Cc: Andreas Bießmann <andreas@biessmann.org> Cc: Eugen Hristev <eugen.hristev@microchip.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/watchdog/at91sam9_wdt.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/watchdog/at91sam9_wdt.c b/drivers/watchdog/at91sam9_wdt.c
index a9fd547..000769d 100644
--- a/drivers/watchdog/at91sam9_wdt.c
+++ b/drivers/watchdog/at91sam9_wdt.c
@@ -31,16 +31,6 @@ DECLARE_GLOBAL_DATA_PTR;
*/
#define WDT_SEC2TICKS(s) (((s) << 8) - 1)
-/* Hardware timeout in seconds */
-#define WDT_MAX_TIMEOUT 16
-#define WDT_DEFAULT_TIMEOUT 2
-
-struct at91_wdt_priv {
- void __iomem *regs;
- u32 regval;
- u32 timeout;
-};
-
/*
* Set the watchdog time interval in 1/256Hz (write-once)
* Counter is 12 bit.