[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 04/19] aspeed: Add eMMC Boot Controller stub
From: |
Cédric Le Goater |
Subject: |
[PULL 04/19] aspeed: Add eMMC Boot Controller stub |
Date: |
Tue, 3 May 2022 08:58:33 +0200 |
From: Joel Stanley <joel@jms.id.au>
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>
---
include/hw/arm/aspeed_soc.h | 1 +
hw/arm/aspeed_ast2600.c | 6 ++++++
2 files changed, 7 insertions(+)
diff --git a/include/hw/arm/aspeed_soc.h b/include/hw/arm/aspeed_soc.h
index da043dcb454d..12dc4c42a8aa 100644
--- a/include/hw/arm/aspeed_soc.h
+++ b/include/hw/arm/aspeed_soc.h
@@ -112,6 +112,7 @@ enum {
ASPEED_DEV_SCU,
ASPEED_DEV_ADC,
ASPEED_DEV_SBC,
+ ASPEED_DEV_EMMC_BC,
ASPEED_DEV_VIDEO,
ASPEED_DEV_SRAM,
ASPEED_DEV_SDHCI,
diff --git a/hw/arm/aspeed_ast2600.c b/hw/arm/aspeed_ast2600.c
index c1e15e37739c..eedda7badc37 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) {
--
2.35.1
- [PULL 00/19] aspeed queue, Cédric Le Goater, 2022/05/03
- [PULL 01/19] hw: aspeed_scu: Add AST2600 apb_freq and hpll calculation function, Cédric Le Goater, 2022/05/03
- [PULL 03/19] aspeed: sbc: Correct default reset values, Cédric Le Goater, 2022/05/03
- [PULL 04/19] aspeed: Add eMMC Boot Controller stub,
Cédric Le Goater <=
- [PULL 02/19] hw: aspeed_scu: Introduce clkin_25Mhz attribute, Cédric Le Goater, 2022/05/03
- [PULL 05/19] aspeed/adc: Add AST1030 support, Cédric Le Goater, 2022/05/03
- [PULL 06/19] aspeed/smc: Add AST1030 support, Cédric Le Goater, 2022/05/03
- [PULL 07/19] aspeed/wdt: Fix ast2500/ast2600 default reload value, Cédric Le Goater, 2022/05/03
- [PULL 08/19] aspeed/wdt: Add AST1030 support, Cédric Le Goater, 2022/05/03
- [PULL 09/19] aspeed/timer: Add AST1030 support, Cédric Le Goater, 2022/05/03
- [PULL 11/19] aspeed/soc : Add AST1030 support, Cédric Le Goater, 2022/05/03
- [PULL 10/19] aspeed/scu: Add AST1030 support, Cédric Le Goater, 2022/05/03
- [PULL 12/19] aspeed: Add an AST1030 eval board, Cédric Le Goater, 2022/05/03
- [PULL 18/19] hw/gpio/aspeed_gpio: Fix QOM pin property, Cédric Le Goater, 2022/05/03