hw/timer: Adding watchdog for NPCM7XX Timer.
commit7d378ed6e3b4a26f4da887fcccc4c6f1db3dcd42
authorHao Wu <wuhaotsh@google.com>
Fri, 23 Oct 2020 21:06:34 +0000 (23 14:06 -0700)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 27 Oct 2020 11:10:01 +0000 (27 11:10 +0000)
tree6770998f835720d3e7bc0879ad7a0705a9650cee
parent2ac88848cb03605e2fae6a035650eea461218af2
hw/timer: Adding watchdog for NPCM7XX Timer.

The watchdog is part of NPCM7XX's timer module. Its behavior is
controlled by the WTCR register in the timer.

When enabled, the watchdog issues an interrupt signal after a pre-set
amount of cycles, and issues a reset signal shortly after that.

Reviewed-by: Tyrone Ting <kfting@nuvoton.com>
Signed-off-by: Hao Wu <wuhaotsh@google.com>
Signed-off-by: Havard Skinnemoen <hskinnemoen@google.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
[PMM: deleted blank line at end of npcm_watchdog_timer-test.c]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
MAINTAINERS
hw/arm/npcm7xx.c
hw/misc/npcm7xx_clk.c
hw/timer/npcm7xx_timer.c
include/hw/misc/npcm7xx_clk.h
include/hw/timer/npcm7xx_timer.h
tests/qtest/meson.build
tests/qtest/npcm7xx_watchdog_timer-test.c [new file with mode: 0644]