[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/9] hw/arm/aspeed: add support for the Qualcomm EVB proto board
From: |
Jae Hyun Yoo |
Subject: |
[PATCH 1/9] hw/arm/aspeed: add support for the Qualcomm EVB proto board |
Date: |
Wed, 22 Jun 2022 10:28:22 -0700 |
Add qcom-evb-proto board support.
Signed-off-by: Jae Hyun Yoo <quic_jaehyoo@quicinc.com>
---
hw/arm/aspeed.c | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/hw/arm/aspeed.c b/hw/arm/aspeed.c
index 98dc185acd9a..4f54721e5f1f 100644
--- a/hw/arm/aspeed.c
+++ b/hw/arm/aspeed.c
@@ -1420,6 +1420,26 @@ static void
aspeed_minibmc_machine_ast1030_evb_class_init(ObjectClass *oc,
amc->macs_mask = 0;
}
+static void aspeed_machine_qcom_evb_proto_class_init(ObjectClass *oc,
+ void *data)
+{
+ MachineClass *mc = MACHINE_CLASS(oc);
+ AspeedMachineClass *amc = ASPEED_MACHINE_CLASS(oc);
+
+ mc->desc = "Qualcomm EVB Proto using AST2600 EVB (Cortex A7)";
+ amc->soc_name = "ast2600-a3";
+ amc->hw_strap1 = AST2600_EVB_HW_STRAP1;
+ amc->hw_strap2 = AST2600_EVB_HW_STRAP2;
+ amc->fmc_model = "n25q512a";
+ amc->spi_model = "n25q512a";
+ amc->num_cs = 2;
+ amc->macs_mask = ASPEED_MAC1_ON | ASPEED_MAC2_ON | ASPEED_MAC3_ON;
+ amc->i2c_init = ast2600_evb_i2c_init;
+ mc->default_ram_size = 1 * GiB;
+ mc->default_cpus = mc->min_cpus = mc->max_cpus =
+ aspeed_soc_num_cpus(amc->soc_name);
+};
+
static const TypeInfo aspeed_machine_types[] = {
{
.name = MACHINE_TYPE_NAME("palmetto-bmc"),
@@ -1457,6 +1477,10 @@ static const TypeInfo aspeed_machine_types[] = {
.name = MACHINE_TYPE_NAME("g220a-bmc"),
.parent = TYPE_ASPEED_MACHINE,
.class_init = aspeed_machine_g220a_class_init,
+ }, {
+ .name = MACHINE_TYPE_NAME("qcom-evb-proto-bmc"),
+ .parent = TYPE_ASPEED_MACHINE,
+ .class_init = aspeed_machine_qcom_evb_proto_class_init,
}, {
.name = MACHINE_TYPE_NAME("fp5280g2-bmc"),
.parent = TYPE_ASPEED_MACHINE,
--
2.25.1
- [PATCH 4/9] hw/arm/aspeed: add Qualcomm Firework machine and FRU device, (continued)
[PATCH 2/9] hw/arm/aspeed: add support for the Qualcomm DC-SCM v1 board, Jae Hyun Yoo, 2022/06/22
[PATCH 7/9] hw/arm/aspeed: firework: Add MAX31785 Fan controllers, Jae Hyun Yoo, 2022/06/22
[PATCH 5/9] hw/i2c: pmbus: Page #255 is valid page for read requests., Jae Hyun Yoo, 2022/06/22
[PATCH 1/9] hw/arm/aspeed: add support for the Qualcomm EVB proto board,
Jae Hyun Yoo <=
[PATCH 8/9] hw/arm/aspeed: firework: Add Thermal Diodes, Jae Hyun Yoo, 2022/06/22
[PATCH 9/9] hw/arm/aspeed: firework: add I2C MUXes for VR channels, Jae Hyun Yoo, 2022/06/22
[PATCH 6/9] hw/sensor: add Maxim MAX31785 device, Jae Hyun Yoo, 2022/06/22