virt-pci: add platform bus support
authorVincent Whitchurch <vincent.whitchurch@axis.com>
Fri, 27 Jan 2023 14:30:27 +0000 (15:30 +0100)
committerRichard Weinberger <richard@nod.at>
Mon, 13 Feb 2023 09:14:31 +0000 (10:14 +0100)
commit522c532c4fe730258118fb146577ec9bedf6b807
treec70089e18b237790bdbd045225ec0862ae1c807e
parent935f8f7a0123ffa0a2dd7234713dc2ebeeb08955
virt-pci: add platform bus support

This driver registers PCI busses, but the underlying virtio protocol
could just as easily be used to provide a platform bus instead.  If the
virtio device node in the devicetree indicates that it's compatible with
simple-bus, register platform devices instead of handling it as a PCI
bus.

Only one platform bus is allowed and the logic MMIO region for the
platform bus is placed at an arbitrarily-chosen address away from the
PCI region.

Signed-off-by: Vincent Whitchurch <vincent.whitchurch@axis.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/drivers/virt-pci.c