Now that ioport devices can generate fdt nodes, iterate over the ioport bus when generating our fdt.
Signed-off-by: Will Deacon <will.dea...@arm.com> --- tools/kvm/arm/fdt.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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")); -- 1.8.0 -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html