From: Jamin Lin Date: Wed, 11 Feb 2026 02:15:38 +0000 (+0000) Subject: hw/arm/aspeed_ast27x0-fc: Switch AST2700 FC machine to A2 SoC X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90876d72c72da579b7a9699edc306c40d0a265b6;p=thirdparty%2Fqemu.git hw/arm/aspeed_ast27x0-fc: Switch AST2700 FC machine to A2 SoC Update the AST2700 FC machine to use the AST2700 A2 SoC model instead of the A1-specific variant. This change removes A1-specific naming and definitions from the FC machine and aligns it with the newer AST2700 A2 silicon. Signed-off-by: Jamin Lin Reviewed-by: Cédric Le Goater Link: https://lore.kernel.org/qemu-devel/20260211021527.119674-10-jamin_lin@aspeedtech.com Signed-off-by: Cédric Le Goater --- diff --git a/hw/arm/aspeed_ast27x0-fc.c b/hw/arm/aspeed_ast27x0-fc.c index 0502a137f3..9b9bb2df75 100644 --- a/hw/arm/aspeed_ast27x0-fc.c +++ b/hw/arm/aspeed_ast27x0-fc.c @@ -24,8 +24,8 @@ #include "hw/arm/aspeed_coprocessor.h" #include "hw/arm/machines-qom.h" -#define TYPE_AST2700A1FC MACHINE_TYPE_NAME("ast2700fc") -OBJECT_DECLARE_SIMPLE_TYPE(Ast2700FCState, AST2700A1FC); +#define TYPE_AST2700FC MACHINE_TYPE_NAME("ast2700fc") +OBJECT_DECLARE_SIMPLE_TYPE(Ast2700FCState, AST2700FC); static struct arm_boot_info ast2700fc_board_info = { .board_id = -1, /* device-tree-only board */ @@ -49,7 +49,6 @@ struct Ast2700FCState { }; #define AST2700FC_BMC_RAM_SIZE (1 * GiB) -#define AST2700FC_CM4_DRAM_SIZE (32 * MiB) #define AST2700FC_HW_STRAP1 0x000000C0 #define AST2700FC_HW_STRAP2 0x00000003 @@ -58,7 +57,7 @@ struct Ast2700FCState { static bool ast2700fc_ca35_init(MachineState *machine, Error **errp) { - Ast2700FCState *s = AST2700A1FC(machine); + Ast2700FCState *s = AST2700FC(machine); AspeedSoCState *soc; AspeedSoCClass *sc; const char *bios_name = NULL; @@ -66,7 +65,7 @@ static bool ast2700fc_ca35_init(MachineState *machine, Error **errp) DeviceState *dev = NULL; uint64_t rom_size; - object_initialize_child(OBJECT(s), "ca35", &s->ca35, "ast2700-a1"); + object_initialize_child(OBJECT(s), "ca35", &s->ca35, "ast2700-a2"); soc = ASPEED_SOC(&s->ca35); sc = ASPEED_SOC_GET_CLASS(soc); @@ -135,7 +134,7 @@ static bool ast2700fc_ca35_init(MachineState *machine, Error **errp) static bool ast2700fc_ssp_init(MachineState *machine, Error **errp) { - Ast2700FCState *s = AST2700A1FC(machine); + Ast2700FCState *s = AST2700FC(machine); AspeedSoCState *psp = ASPEED_SOC(&s->ca35); s->ssp_sysclk = clock_new(OBJECT(s), "SSP_SYSCLK"); @@ -167,7 +166,7 @@ static bool ast2700fc_ssp_init(MachineState *machine, Error **errp) static bool ast2700fc_tsp_init(MachineState *machine, Error **errp) { - Ast2700FCState *s = AST2700A1FC(machine); + Ast2700FCState *s = AST2700FC(machine); AspeedSoCState *psp = ASPEED_SOC(&s->ca35); s->tsp_sysclk = clock_new(OBJECT(s), "TSP_SYSCLK");