mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
hw/arm: Inline sysbus_create_simple(PL110 / PL111)
We want to set another qdev property (a link) for the pl110 and pl111 devices, we can not use sysbus_create_simple() which only passes sysbus base address and IRQs as arguments. Inline it so we can set the link property in the next commit. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20240226173805.289-2-philmd@linaro.org>
This commit is contained in:
parent
03d496a992
commit
49aff03e1b
4 changed files with 21 additions and 5 deletions
|
@ -276,6 +276,7 @@ static void a9_daughterboard_init(VexpressMachineState *vms,
|
|||
{
|
||||
MachineState *machine = MACHINE(vms);
|
||||
MemoryRegion *sysmem = get_system_memory();
|
||||
DeviceState *dev;
|
||||
|
||||
if (ram_size > 0x40000000) {
|
||||
/* 1GB is the maximum the address space permits */
|
||||
|
@ -297,7 +298,9 @@ static void a9_daughterboard_init(VexpressMachineState *vms,
|
|||
/* Daughterboard peripherals : 0x10020000 .. 0x20000000 */
|
||||
|
||||
/* 0x10020000 PL111 CLCD (daughterboard) */
|
||||
sysbus_create_simple("pl111", 0x10020000, pic[44]);
|
||||
dev = qdev_new("pl111");
|
||||
sysbus_mmio_map(SYS_BUS_DEVICE(dev), 0, 0x10020000);
|
||||
sysbus_connect_irq(SYS_BUS_DEVICE(dev), 0, pic[44]);
|
||||
|
||||
/* 0x10060000 AXI RAM */
|
||||
/* 0x100e0000 PL341 Dynamic Memory Controller */
|
||||
|
@ -650,7 +653,10 @@ static void vexpress_common_init(MachineState *machine)
|
|||
|
||||
/* VE_COMPACTFLASH: not modelled */
|
||||
|
||||
sysbus_create_simple("pl111", map[VE_CLCD], pic[14]);
|
||||
dev = qdev_new("pl111");
|
||||
sysbus_realize_and_unref(SYS_BUS_DEVICE(dev), &error_fatal);
|
||||
sysbus_mmio_map(SYS_BUS_DEVICE(dev), 0, map[VE_CLCD]);
|
||||
sysbus_connect_irq(SYS_BUS_DEVICE(dev), 0, pic[14]);
|
||||
|
||||
dinfo = drive_get(IF_PFLASH, 0, 0);
|
||||
pflash0 = ve_pflash_cfi01_register(map[VE_NORFLASH0], "vexpress.flash0",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue