mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
aspeed: add a memory region for SRAM
The size of the SRAM depends on the SoC model, so use a per-soc definition when creating the region. Signed-off-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: Joel Stanley <joel@jms.id.au> Reviewed-by: Andrew Jeffery <andrew@aj.id.au> Message-id: 1480434248-27138-9-git-send-email-clg@kaod.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
ef17f83661
commit
74af4eec29
2 changed files with 45 additions and 9 deletions
|
@ -29,6 +29,7 @@ typedef struct AspeedSoCState {
|
|||
/*< public >*/
|
||||
ARMCPU cpu;
|
||||
MemoryRegion iomem;
|
||||
MemoryRegion sram;
|
||||
AspeedVICState vic;
|
||||
AspeedTimerCtrlState timerctrl;
|
||||
AspeedI2CState i2c;
|
||||
|
@ -46,6 +47,7 @@ typedef struct AspeedSoCInfo {
|
|||
const char *cpu_model;
|
||||
uint32_t silicon_rev;
|
||||
hwaddr sdram_base;
|
||||
uint64_t sram_size;
|
||||
int spis_num;
|
||||
const hwaddr *spi_bases;
|
||||
const char *fmc_typename;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue