Message ID | 1367423416-24640-11-git-send-email-will.deacon@arm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/tools/kvm/arm/fdt.c b/tools/kvm/arm/fdt.c index 7198fe8..5e18c11 100644 --- a/tools/kvm/arm/fdt.c +++ b/tools/kvm/arm/fdt.c @@ -144,6 +144,14 @@ static int setup_fdt(struct kvm *kvm) dev_hdr = device__next_dev(dev_hdr); } + /* IOPORT devices (!) */ + dev_hdr = device__first_dev(DEVICE_BUS_IOPORT); + while (dev_hdr) { + generate_mmio_fdt_nodes = dev_hdr->data; + generate_mmio_fdt_nodes(fdt, dev_hdr, generate_irq_prop); + dev_hdr = device__next_dev(dev_hdr); + } + /* PSCI firmware */ _FDT(fdt_begin_node(fdt, "psci")); _FDT(fdt_property_string(fdt, "compatible", "arm,psci"));
Now that ioport devices can generate fdt nodes, iterate over the ioport bus when generating our fdt. Signed-off-by: Will Deacon <will.deacon@arm.com> --- tools/kvm/arm/fdt.c | 8 ++++++++ 1 file changed, 8 insertions(+)