hw/watchdog: Allwinner WDT emulation for system reset
authorStrahinja Jankovic <strahinjapjankovic@gmail.com>
Thu, 20 Apr 2023 09:21:13 +0000 (10:21 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 20 Apr 2023 09:21:13 +0000 (10:21 +0100)
commit17b9730f9828c5ee2b443533db936a1def4341b3
treec14035c9d8810cae28411d880cfb98b172e940ff
parentc47a80cd14309727f5a0a0eb0fd26d4aa1b5c14c
hw/watchdog: Allwinner WDT emulation for system reset

This patch adds basic support for Allwinner WDT.
Both sun4i and sun6i variants are supported.
However, interrupt generation is not supported, so WDT can be used only to trigger system reset.

Signed-off-by: Strahinja Jankovic <strahinja.p.jankovic@gmail.com>
Reviewed-by: Niek Linnenbank <nieklinnenbank@gmail.com>
Tested-by: Niek Linnenbank <nieklinnenbank@gmail.com>
Message-id: 20230326202256.22980-2-strahinja.p.jankovic@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/watchdog/Kconfig
hw/watchdog/allwinner-wdt.c [new file with mode: 0644]
hw/watchdog/meson.build
hw/watchdog/trace-events
include/hw/watchdog/allwinner-wdt.h [new file with mode: 0644]