hw/arm/stellaris: Implement watchdog timer
authorMichel Heily <michelheily@gmail.com>
Mon, 4 Mar 2019 23:16:22 +0000 (01:16 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 5 Mar 2019 15:55:09 +0000 (15:55 +0000)
commit566528f823d1a2e9eb2d7b2ed839547cb31bfc34
tree6053513cce22b4be037227e99a16f1487e711307
parent50a17297e2f0c4d621c7bb23fee239c0a3fd3128
hw/arm/stellaris: Implement watchdog timer

Implement the watchdog timer for the stellaris boards.
This device is a close variant of the CMSDK APB watchdog
device, so we can model it by subclassing that device and
tweaking the behaviour of some of its registers.

Signed-off-by: Michel Heily <michelheily@gmail.com>
Reviewed-by: Peter Maydell <petser.maydell@linaro.org>
[PMM: rewrote commit message, fixed a few checkpatch nits,
 added comment giving the URL of the spec for the Stellaris
 variant of the watchdog device]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/stellaris.c
hw/watchdog/cmsdk-apb-watchdog.c
include/hw/watchdog/cmsdk-apb-watchdog.h