u-boot/board/xilinx/zynqmp
Stefan Roese 06985289d4 watchdog: Implement generic watchdog_reset() version
This patch tries to implement a generic watchdog_reset() function that
can be used by all boards that want to service the watchdog device in
U-Boot. This watchdog servicing is enabled via CONFIG_WATCHDOG.

Without this approach, new boards or platforms needed to implement a
board specific version of this functionality, mostly copy'ing the same
code over and over again into their board or platforms code base.

With this new generic function, the scattered other functions are now
removed to be replaced by the generic one. The new version also enables
the configuration of the watchdog timeout via the DT "timeout-sec"
property (if enabled via CONFIG_OF_CONTROL).

This patch also adds a new flag to the GD flags, to flag that the
watchdog is ready to use and adds the pointer to the watchdog device
to the GD. This enables us to remove the global "watchdog_dev"
variable, which was prone to cause problems because of its potentially
very early use in watchdog_reset(), even before the BSS is cleared.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Heiko Schocher <hs@denx.de>
Cc: Tom Rini <trini@konsulko.com>
Cc: Michal Simek <michal.simek@xilinx.com>
Cc: "Marek Behún" <marek.behun@nic.cz>
Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Cc: Maxim Sloyko <maxims@google.com>
Cc: Erik van Luijk <evanluijk@interact.nl>
Cc: Ryder Lee <ryder.lee@mediatek.com>
Cc: Weijie Gao <weijie.gao@mediatek.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: "Álvaro Fernández Rojas" <noltari@gmail.com>
Cc: Philippe Reynes <philippe.reynes@softathome.com>
Cc: Christophe Leroy <christophe.leroy@c-s.fr>
Reviewed-by: Michal Simek <michal.simek@xilinx.com>
Tested-by: Michal Simek <michal.simek@xilinx.com> (on zcu100)
2019-04-26 09:16:32 +02:00
..
zynqmp-zc1232-revA SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
zynqmp-zc1254-revA SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
zynqmp-zc1275-revB SPDX: Correct SPDX tags from recent xilinx merge 2018-05-11 14:54:57 -04:00
zynqmp-zc1751-xm015-dc1 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
zynqmp-zc1751-xm016-dc2 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
zynqmp-zc1751-xm017-dc3 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
zynqmp-zc1751-xm018-dc4 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
zynqmp-zc1751-xm019-dc5 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
zynqmp-zcu100-revC arm64: zynqmp: Reset FPD Watchdog on zcu100 2018-05-11 09:23:43 +02:00
zynqmp-zcu102-rev1.0 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
zynqmp-zcu102-revA SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
zynqmp-zcu104-revA SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
zynqmp-zcu106-revA SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
avnet-ultra96-rev1 arm64: zynqmp: Add support for Avnet Ultra96 2018-08-06 08:44:35 +02:00
cmds.c arm64: zynqmp: Fix tcminit help text alignment 2019-01-24 10:03:43 +01:00
Kconfig arm64: zynqmp: Add support for verifying secure images 2018-03-23 09:36:15 +01:00
MAINTAINERS zynqmp: Add avnet_ultra96_rev1_defconfig to the lits of boards 2018-08-07 11:36:39 -04:00
Makefile xilinx: Move zynq_board_read_rom_ethaddr to shared location 2019-02-14 14:31:09 +01:00
sleep.h arm64: zynqmp: Add empty sleep.h file for psu_init* compilation 2017-06-20 16:40:58 +02:00
tap_delays.c mmc: zynq_sdhci: Add support for SD3.0 2018-05-11 11:13:51 +02:00
xil_io.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
zynqmp-mini arm64: zynqmp: Add mini mtest configuration 2018-11-30 10:45:26 +01:00
zynqmp-mini-emmc0 arm64: zynqmp: Wire mini-emmc0 configuration with zcu100 2018-11-30 10:45:26 +01:00
zynqmp-mini-emmc1 arm64: zynqmp: Wire mini-emmc1 configuration with zcu102 2018-11-30 10:45:26 +01:00
zynqmp-mini-qspi arm64: zynqmp: Enable SPL for mini qspi configuration 2018-11-29 15:13:57 +01:00
zynqmp-zc1275-revA arm64: zynqmp: Add support for zc12xx boards 2018-04-09 12:14:52 +02:00
zynqmp-zcu104-revC arm64: zynqmp: Add support for zcu104 customer board 2018-04-09 12:14:52 +02:00
zynqmp.c watchdog: Implement generic watchdog_reset() version 2019-04-26 09:16:32 +02:00