aboutsummaryrefslogtreecommitdiff
path: root/hw/arm
diff options
context:
space:
mode:
authorJoel Stanley <joel@jms.id.au>2022-05-02 17:03:02 +0200
committerCédric Le Goater <clg@kaod.org>2022-05-02 17:03:02 +0200
commitfe31a2ecf02afda011df80e8a513a3c0eb9bc1e8 (patch)
tree7f056f50c75c85c4e959d506c58e467bafe0ec18 /hw/arm
parentc2651cf45dd3ac5674bc720d2303668f0905507d (diff)
downloadqemu-fe31a2ecf02afda011df80e8a513a3c0eb9bc1e8.zip
qemu-fe31a2ecf02afda011df80e8a513a3c0eb9bc1e8.tar.gz
qemu-fe31a2ecf02afda011df80e8a513a3c0eb9bc1e8.tar.bz2
aspeed: Add eMMC Boot Controller stub
Guest code (u-boot) pokes at this on boot. No functionality is required for guest code to work correctly, but it helps to document the region being read from. Signed-off-by: Joel Stanley <joel@jms.id.au> Reviewed-by: Cédric Le Goater <clg@kaod.org> Message-Id: <20220318092211.723938-1-joel@jms.id.au> Signed-off-by: Cédric Le Goater <clg@kaod.org>
Diffstat (limited to 'hw/arm')
-rw-r--r--hw/arm/aspeed_ast2600.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/arm/aspeed_ast2600.c b/hw/arm/aspeed_ast2600.c
index c1e15e3..eedda7b 100644
--- a/hw/arm/aspeed_ast2600.c
+++ b/hw/arm/aspeed_ast2600.c
@@ -48,6 +48,7 @@ static const hwaddr aspeed_soc_ast2600_memmap[] = {
[ASPEED_DEV_ADC] = 0x1E6E9000,
[ASPEED_DEV_DP] = 0x1E6EB000,
[ASPEED_DEV_SBC] = 0x1E6F2000,
+ [ASPEED_DEV_EMMC_BC] = 0x1E6f5000,
[ASPEED_DEV_VIDEO] = 0x1E700000,
[ASPEED_DEV_SDHCI] = 0x1E740000,
[ASPEED_DEV_EMMC] = 0x1E750000,
@@ -257,6 +258,11 @@ static void aspeed_soc_ast2600_realize(DeviceState *dev, Error **errp)
create_unimplemented_device("aspeed.video", sc->memmap[ASPEED_DEV_VIDEO],
0x1000);
+ /* eMMC Boot Controller stub */
+ create_unimplemented_device("aspeed.emmc-boot-controller",
+ sc->memmap[ASPEED_DEV_EMMC_BC],
+ 0x1000);
+
/* CPU */
for (i = 0; i < sc->num_cpus; i++) {
if (sc->num_cpus > 1) {