mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
hw/arm/aspeed_ast2700-fc: Add network support
This patch adds network support to the ast2700fc machine by initializing the NIC device in the ca35. Signed-off-by: Steven Lee <steven_lee@aspeedtech.com> Reviewed-by: Cédric Le Goater <clg@redhat.com> Link: https://lore.kernel.org/qemu-devel/20250523093144.991408-2-steven_lee@aspeedtech.com Signed-off-by: Cédric Le Goater <clg@redhat.com>
This commit is contained in:
parent
e6941ac106
commit
453b928ab9
1 changed files with 7 additions and 0 deletions
|
@ -86,6 +86,13 @@ static void ast2700fc_ca35_init(MachineState *machine)
|
|||
AST2700FC_BMC_RAM_SIZE, &error_abort)) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (int i = 0; i < sc->macs_num; i++) {
|
||||
if (!qemu_configure_nic_device(DEVICE(&soc->ftgmac100[i]),
|
||||
true, NULL)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!object_property_set_int(OBJECT(&s->ca35), "hw-strap1",
|
||||
AST2700FC_HW_STRAP1, &error_abort)) {
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue