The Base address of the platform bus may be useful for device node creation function. This is typically the case if the node creation function also prepares data for ACPI table generation.
Signed-off-by: Eric Auger <eric.au...@redhat.com> --- hw/arm/sysbus-fdt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/arm/sysbus-fdt.c b/hw/arm/sysbus-fdt.c index d92a983..f8c4909 100644 --- a/hw/arm/sysbus-fdt.c +++ b/hw/arm/sysbus-fdt.c @@ -46,6 +46,7 @@ typedef struct PlatformBusFDTData { void *fdt; /* device tree handle */ int irq_start; /* index of the first IRQ usable by platform bus devices */ + hwaddr base; /* base address of the platform bus */ const char *pbus_node_name; /* name of the platform bus node */ PlatformBusDevice *pbus; VirtMachineState *vms; @@ -514,6 +515,7 @@ static void add_all_platform_bus_fdt_nodes(ARMPlatformBusFDTParams *fdt_params) PlatformBusFDTData data = { .fdt = fdt, .irq_start = irq_start, + .base = addr, .pbus_node_name = node, .pbus = pbus, .vms = fdt_params->vms, -- 2.5.5