diff options
author | Joel Stanley | 2019-09-25 16:32:36 +0200 |
---|---|---|
committer | Peter Maydell | 2019-10-15 19:09:04 +0200 |
commit | 6b2b2a703cad4c2138b848dcdcc65634c2823c08 (patch) | |
tree | 45202feec5a85c9a131525bac6a23e66764d31f7 /include/hw/watchdog | |
parent | watchdog/aspeed: Introduce an object class per SoC (diff) | |
download | qemu-6b2b2a703cad4c2138b848dcdcc65634c2823c08.tar.gz qemu-6b2b2a703cad4c2138b848dcdcc65634c2823c08.tar.xz qemu-6b2b2a703cad4c2138b848dcdcc65634c2823c08.zip |
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>
Diffstat (limited to 'include/hw/watchdog')
-rw-r--r-- | include/hw/watchdog/wdt_aspeed.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/watchdog/wdt_aspeed.h b/include/hw/watchdog/wdt_aspeed.h index 796342764e..dfedd7662d 100644 --- a/include/hw/watchdog/wdt_aspeed.h +++ b/include/hw/watchdog/wdt_aspeed.h @@ -18,6 +18,7 @@ OBJECT_CHECK(AspeedWDTState, (obj), TYPE_ASPEED_WDT) #define TYPE_ASPEED_2400_WDT TYPE_ASPEED_WDT "-ast2400" #define TYPE_ASPEED_2500_WDT TYPE_ASPEED_WDT "-ast2500" +#define TYPE_ASPEED_2600_WDT TYPE_ASPEED_WDT "-ast2600" #define ASPEED_WDT_REGS_MAX (0x20 / 4) |