mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
aspeed: Introduce a spi_boot region under the SoC
The default boot address of the Aspeed SoCs is 0x0. For this reason, the FMC flash device contents are remapped by HW on the first 256MB of the address space. In QEMU, this is currently done in the machine init with the setup of a region alias. Move this code to the SoC and introduce an extra container to prepare ground for the boot ROM region which will overlap the FMC flash remapping. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Cédric Le Goater <clg@kaod.org>
This commit is contained in:
parent
ef0eb67ec9
commit
5aa281d757
5 changed files with 34 additions and 19 deletions
|
@ -58,6 +58,8 @@ struct AspeedSoCState {
|
|||
MemoryRegion *dram_mr;
|
||||
MemoryRegion dram_container;
|
||||
MemoryRegion sram;
|
||||
MemoryRegion spi_boot_container;
|
||||
MemoryRegion spi_boot;
|
||||
AspeedVICState vic;
|
||||
AspeedRtcState rtc;
|
||||
AspeedTimerCtrlState timerctrl;
|
||||
|
@ -120,6 +122,7 @@ struct AspeedSoCClass {
|
|||
|
||||
|
||||
enum {
|
||||
ASPEED_DEV_SPI_BOOT,
|
||||
ASPEED_DEV_IOMEM,
|
||||
ASPEED_DEV_UART1,
|
||||
ASPEED_DEV_UART2,
|
||||
|
@ -190,6 +193,8 @@ enum {
|
|||
ASPEED_DEV_JTAG1,
|
||||
};
|
||||
|
||||
#define ASPEED_SOC_SPI_BOOT_ADDR 0x0
|
||||
|
||||
qemu_irq aspeed_soc_get_irq(AspeedSoCState *s, int dev);
|
||||
bool aspeed_soc_uart_realize(AspeedSoCState *s, Error **errp);
|
||||
void aspeed_soc_uart_set_chr(AspeedSoCState *s, int dev, Chardev *chr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue