OSDN Git Service

aspeed: Introduce a spi_boot region under the SoC
authorCédric Le Goater <clg@kaod.org>
Thu, 2 Mar 2023 12:57:50 +0000 (13:57 +0100)
committerCédric Le Goater <clg@kaod.org>
Thu, 2 Mar 2023 12:57:50 +0000 (13:57 +0100)
commit5aa281d757960ea79190bcfb25294e2499de165e
treefbd7495bb36e881428a4e73a0572df6cae6e2bd3
parentef0eb67ec96e03e6016c1e72b208f5fcbb455724
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>
hw/arm/aspeed.c
hw/arm/aspeed_ast2600.c
hw/arm/aspeed_soc.c
hw/arm/fby35.c
include/hw/arm/aspeed_soc.h