]> git.dujemihanovic.xyz Git - u-boot.git/commit
board: ge: bx50v3: Enable hardware watchdog
authorMartyn Welch <martyn.welch@collabora.co.uk>
Wed, 10 Jan 2018 19:31:32 +0000 (20:31 +0100)
committerStefano Babic <sbabic@denx.de>
Sun, 4 Feb 2018 11:00:58 +0000 (12:00 +0100)
commit6d6564957ced9a29ca62adee68a6e24040dd54be
treea12113e64caee0a7c072657bced15d3533a81aa4
parent2850645cabef6d401415a9787736d642017ec3f5
board: ge: bx50v3: Enable hardware watchdog

Enable the hardware watchdog on bx50v3 to cause it to reset in the event
the board hangs.

Configure GPIO_9 pin as WDOG1_B so that a watchdog timeout results in a
full system reset.

The watchdog is used and reconfigured by systemd approximately 1.7 seconds
into boot. Adding a few seconds for U-Boot and a few more seconds as a
safety margin.

Note that the PCIe controller is _not_ put back into a safe state prior
to board reset.  This is a problem if board reset is implemented as CPU
reset.

Signed-off-by: Ian Ray <ian.ray@ge.com>
Signed-off-by: Martyn Welch <martyn.welch@collabora.co.uk>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
board/ge/bx50v3/bx50v3.c
include/configs/ge_bx50v3.h