summaryrefslogtreecommitdiffstats
path: root/include/hw
diff options
context:
space:
mode:
authorCédric Le Goater2021-10-12 08:20:08 +0200
committerCédric Le Goater2021-10-12 08:20:08 +0200
commit71255c48e7b902483b94862f4882ddd050fe8ad8 (patch)
tree3ddbd558ed42b9f1020017dc72681779598a5fb6 /include/hw
parentaspeed/smc: QOMify AspeedSMCFlash (diff)
downloadqemu-71255c48e7b902483b94862f4882ddd050fe8ad8.tar.gz
qemu-71255c48e7b902483b94862f4882ddd050fe8ad8.tar.xz
qemu-71255c48e7b902483b94862f4882ddd050fe8ad8.zip
aspeed/smc: Add default reset values
This simplifies the reset handler and has the benefit to remove some "bad" use of the segments array as an identifier of the controller model. Signed-off-by: Cédric Le Goater <clg@kaod.org>
Diffstat (limited to 'include/hw')
-rw-r--r--include/hw/ssi/aspeed_smc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/ssi/aspeed_smc.h b/include/hw/ssi/aspeed_smc.h
index ee943228b9..a1ca0e65c4 100644
--- a/include/hw/ssi/aspeed_smc.h
+++ b/include/hw/ssi/aspeed_smc.h
@@ -98,6 +98,7 @@ struct AspeedSMCClass {
uint8_t nregs_timings;
uint8_t conf_enable_w0;
uint8_t max_peripherals;
+ const uint32_t *resets;
const AspeedSegments *segments;
hwaddr flash_window_base;
uint32_t flash_window_size;