aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/Kconfig
diff options
context:
space:
mode:
authorWenyou Yang <wenyou.yang@atmel.com>2015-08-06 06:16:46 -0400
committerWim Van Sebroeck <wim@iguana.be>2015-09-09 15:38:29 -0400
commit76534860f108b812926a4fbfbdadbfa9cdec89d0 (patch)
treec8eccc6ed7907af62386a4b280b179d698819763 /drivers/watchdog/Kconfig
parentf8c33e9717150f7b8063d6d77a8ea90adad434e9 (diff)
watchdog: add a driver to support SAMA5D4 watchdog timer
From SAMA5D4, the watchdog timer is upgrated with a new feature, which is describled as in the datasheet, "WDT_MR can be written until a LOCKMR command is issued in WDT_CR". That is to say, as long as the bootstrap and u-boot don't issue a LOCKMR command, WDT_MR can be written more than once in the driver. So the SAMA5D4 watchdog driver's implementation is different from the at91sam9260 watchdog driver implemented in file at91sam9_wdt.c. The user application open the device file to enable the watchdog timer hardware, and close to disable it, and set the watchdog timer timeout by seting WDV and WDD fields of WDT_MR register, and ping the watchdog by issuing WDRSTT command to WDT_CR register with hard-coded key. Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog/Kconfig')
-rw-r--r--drivers/watchdog/Kconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig
index cd99fcce3bab..ce0658c92fe8 100644
--- a/drivers/watchdog/Kconfig
+++ b/drivers/watchdog/Kconfig
@@ -188,6 +188,15 @@ config AT91SAM9X_WATCHDOG
188 Watchdog timer embedded into AT91SAM9X and AT91CAP9 chips. This will 188 Watchdog timer embedded into AT91SAM9X and AT91CAP9 chips. This will
189 reboot your system when the timeout is reached. 189 reboot your system when the timeout is reached.
190 190
191config SAMA5D4_WATCHDOG
192 tristate "Atmel SAMA5D4 Watchdog Timer"
193 depends on ARCH_AT91
194 select WATCHDOG_CORE
195 help
196 Atmel SAMA5D4 watchdog timer is embedded into SAMA5D4 chips.
197 Its Watchdog Timer Mode Register can be written more than once.
198 This will reboot your system when the timeout is reached.
199
191config CADENCE_WATCHDOG 200config CADENCE_WATCHDOG
192 tristate "Cadence Watchdog Timer" 201 tristate "Cadence Watchdog Timer"
193 depends on HAS_IOMEM 202 depends on HAS_IOMEM