aspeed: Link SCU to the watchdog
commit3059c2f5a813ea2af0761705abc18848cd4e3c85
authorJoel Stanley <joel@jms.id.au>
Mon, 1 Jul 2019 16:26:18 +0000 (1 17:26 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 1 Jul 2019 16:29:00 +0000 (1 17:29 +0100)
tree25e1a6d582bf59a68dad83d34458e179cb74ebb0
parentebd205c0807a146bf272208f3d41728d5e985ceb
aspeed: Link SCU to the watchdog

The ast2500 uses the watchdog to reset the SDRAM controller. This
operation is usually performed by u-boot's memory training procedure,
and it is enabled by setting a bit in the SCU and then causing the
watchdog to expire. Therefore, we need the watchdog to be able to
access the SCU's register space.

This causes the watchdog to not perform a system reset when the bit is
set. In the future it could perform a reset of the SDMC model.

Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20190621065242.32535-1-joel@jms.id.au
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/aspeed_soc.c
hw/watchdog/wdt_aspeed.c
include/hw/watchdog/wdt_aspeed.h