]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm: at91: Enable watchdog support
authorStefan Roese <sr@denx.de>
Wed, 3 Apr 2019 05:37:40 +0000 (07:37 +0200)
committerEugen Hristev <eugen.hristev@microchip.com>
Tue, 9 Apr 2019 06:28:50 +0000 (09:28 +0300)
commit256c2ff0cc6cdc8cf7c225bc6e03b92afae353b4
tree2ee19c4cdb862e194900282f1efe0377135895b4
parent05d4b8e4ad9b24a2dace09d86c39b2b4f056f613
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>
arch/arm/mach-at91/clock.c
arch/arm/mach-at91/include/mach/at91_wdt.h
drivers/watchdog/at91sam9_wdt.c