hw: wdt_aspeed: Add AST2600 support
commit6b2b2a703cad4c2138b848dcdcc65634c2823c08
authorJoel Stanley <joel@jms.id.au>
Wed, 25 Sep 2019 14:32:36 +0000 (25 16:32 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 15 Oct 2019 17:09:04 +0000 (15 18:09 +0100)
tree45202feec5a85c9a131525bac6a23e66764d31f7
parent6112bd6d9b8e03c1c454c4785a56402573ccb16e
hw: wdt_aspeed: Add AST2600 support

The AST2600 has four watchdogs, and they each have a 0x40 of registers.

When running as part of an ast2600 system we must check a different
offset for the system reset control register in the SCU.

Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Message-id: 20190925143248.10000-12-clg@kaod.org
[clg: - reworked model integration into new object class ]
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/watchdog/wdt_aspeed.c
include/hw/arm/aspeed_soc.h
include/hw/watchdog/wdt_aspeed.h