summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorCédric Le Goater2017-01-20 12:15:08 +0100
committerPeter Maydell2017-01-20 12:15:08 +0100
commit087b57c993a6158148032a4e6e2ab2ac7285a5f4 (patch)
tree88284c1a7a057d95fc12a5489eb3a8610eaa2262 /include
parentaspeed/smc: unfold the AspeedSMCController array (diff)
downloadqemu-087b57c993a6158148032a4e6e2ab2ac7285a5f4.tar.gz
qemu-087b57c993a6158148032a4e6e2ab2ac7285a5f4.tar.xz
qemu-087b57c993a6158148032a4e6e2ab2ac7285a5f4.zip
aspeed/smc: adjust the size of the register region
The SPI controller of the AST2400 SoC has less registers. So we can adjust the size of the memory region holding the registers depending on the controller type. We can also remove the guest_error logging which is useless as the range of the region is strict enough. Signed-off-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: Joel Stanley <joel@jms.id.au> Message-id: 1483979087-32663-7-git-send-email-clg@kaod.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include')
-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 861120b6e2..e811742728 100644
--- a/include/hw/ssi/aspeed_smc.h
+++ b/include/hw/ssi/aspeed_smc.h
@@ -45,6 +45,7 @@ typedef struct AspeedSMCController {
hwaddr flash_window_base;
uint32_t flash_window_size;
bool has_dma;
+ uint32_t nregs;
} AspeedSMCController;
typedef struct AspeedSMCFlash {