diff options
author | Eric Auger <eric.auger@linaro.org> | 2015-06-02 12:29:13 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2015-06-02 16:31:18 +0100 |
commit | 5f7a5a0edc4a2f65293658eb540290ddf9a1988a (patch) | |
tree | d8eccc99a31af35ab969f534665e33191f2f03f3 /include/hw/arm | |
parent | ac9d32e39664e060cd1b538ff190980d57ad69e4 (diff) | |
download | hqemu-5f7a5a0edc4a2f65293658eb540290ddf9a1988a.zip hqemu-5f7a5a0edc4a2f65293658eb540290ddf9a1988a.tar.gz |
hw/arm/virt: add dynamic sysbus device support
Allows sysbus devices to be instantiated from command line by
using -device option. Machvirt creates a platform bus at init.
The dynamic sysbus devices are attached to this platform bus device.
The platform bus device registers a machine init done notifier
whose role will be to bind the dynamic sysbus devices. Indeed
dynamic sysbus devices are created after machine init.
machvirt also registers a notifier that will build the device
tree nodes for the platform bus and its children dynamic sysbus
devices.
Signed-off-by: Eric Auger <eric.auger@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-id: 1433244554-12898-4-git-send-email-eric.auger@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include/hw/arm')
-rw-r--r-- | include/hw/arm/virt.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/arm/virt.h b/include/hw/arm/virt.h index 003ef29..d22fd8e 100644 --- a/include/hw/arm/virt.h +++ b/include/hw/arm/virt.h @@ -55,6 +55,7 @@ enum { VIRT_PCIE_PIO, VIRT_PCIE_ECAM, VIRT_GIC_V2M, + VIRT_PLATFORM_BUS, }; typedef struct MemMapEntry { |