[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 18/21] aspeed: Add an AST2600 eval board
From: |
Cédric Le Goater |
Subject: |
[Qemu-devel] [PATCH 18/21] aspeed: Add an AST2600 eval board |
Date: |
Thu, 19 Sep 2019 07:49:59 +0200 |
Signed-off-by: Cédric Le Goater <address@hidden>
---
hw/arm/aspeed.c | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/hw/arm/aspeed.c b/hw/arm/aspeed.c
index 52993f84b461..4450e71e5547 100644
--- a/hw/arm/aspeed.c
+++ b/hw/arm/aspeed.c
@@ -88,6 +88,9 @@ struct AspeedBoardState {
/* Witherspoon hardware value: 0xF10AD216 (but use romulus definition) */
#define WITHERSPOON_BMC_HW_STRAP1 ROMULUS_BMC_HW_STRAP1
+/* AST2600 evb hardware value: (QEMU prototype) */
+#define AST2600_EVB_HW_STRAP1 AST2500_EVB_HW_STRAP1
+
/*
* The max ram region is for firmwares that scan the address space
* with load/store to guess how much RAM the SoC has.
@@ -308,6 +311,12 @@ static void ast2500_evb_i2c_init(AspeedBoardState *bmc)
i2c_create_slave(aspeed_i2c_get_bus(DEVICE(&soc->i2c), 11), "ds1338",
0x32);
}
+static void ast2600_evb_i2c_init(AspeedBoardState *bmc)
+{
+ /* Start with some devices on our I2C busses */
+ ast2500_evb_i2c_init(bmc);
+}
+
static void romulus_bmc_i2c_init(AspeedBoardState *bmc)
{
AspeedSoCState *soc = &bmc->soc;
@@ -455,6 +464,15 @@ static const AspeedBoardConfig aspeed_boards[] = {
.num_cs = 2,
.i2c_init = witherspoon_bmc_i2c_init,
.ram = 512 * MiB,
+ }, {
+ .name = MACHINE_TYPE_NAME("ast2600-evb"),
+ .desc = "Aspeed AST2600 EVB (Cortex A7)",
+ .soc_name = "ast2600-a0",
+ .hw_strap1 = AST2600_EVB_HW_STRAP1,
+ .fmc_model = "mx25l25635e",
+ .spi_model = "mx25l25635e",
+ .num_cs = 1,
+ .i2c_init = ast2600_evb_i2c_init,
},
};
--
2.21.0
- [Qemu-devel] [PATCH 13/21] hw/gpio: Add in AST2600 specific implementation, (continued)
- [Qemu-devel] [PATCH 13/21] hw/gpio: Add in AST2600 specific implementation, Cédric Le Goater, 2019/09/19
- [Qemu-devel] [PATCH 14/21] aspeed/i2c: Introduce an object class per SoC, Cédric Le Goater, 2019/09/19
- [Qemu-devel] [PATCH 15/21] aspeed/i2c: Add AST2600 support, Cédric Le Goater, 2019/09/19
- [Qemu-devel] [PATCH 16/21] aspeed: Introduce an object class per SoC, Cédric Le Goater, 2019/09/19
- [Qemu-devel] [PATCH 17/21] aspeed/soc: Add AST2600 support, Cédric Le Goater, 2019/09/19
- [Qemu-devel] [PATCH 18/21] aspeed: Add an AST2600 eval board,
Cédric Le Goater <=
- [Qemu-devel] [PATCH 19/21] aspeed: Parameterise number of MACs, Cédric Le Goater, 2019/09/19
- [Qemu-devel] [PATCH 20/21] aspeed: add support for the Aspeed MII controller of the AST2600, Cédric Le Goater, 2019/09/19
- [Qemu-devel] [PATCH 21/21] aspeed/soc: Add ASPEED Video stub, Cédric Le Goater, 2019/09/19
- Re: [Qemu-devel] [PATCH 00/21] aspeed: Add support for the AST2600 SoC, no-reply, 2019/09/19