qemu-patch-raspberry4/hw/arm
Eric Auger cf5a13e370 hw/arm/sysbus-fdt: enable amd-xgbe dynamic instantiation
This patch allows the instantiation of the vfio-amd-xgbe device
from the QEMU command line (-device vfio-amd-xgbe,host="<device>").

The guest is exposed with a device tree node that combines the description
of both XGBE and PHY (representation supported from 4.2 onwards kernel):
Documentation/devicetree/bindings/net/amd-xgbe.txt.

There are 5 register regions, 6 interrupts including 4 optional
edge-sensitive per-channel interrupts.

Some property values are inherited from host device tree. Host device tree
must feature a combined XGBE/PHY representation (>= 4.2 host kernel).

2 clock nodes (dma and ptp) also are created. It is checked those clocks
are fixed on host side.

AMD XGBE node creation function has a dependency on vfio Linux header and
more generally node creation function for VFIO platform devices only make
sense with CONFIG_LINUX so let's protect this code with #ifdef CONFIG_LINUX.

Signed-off-by: Eric Auger <eric.auger@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
2016-02-19 09:42:31 -07:00
..
allwinner-a10.c hw/arm: Clean up includes 2016-01-18 16:33:32 +00:00
armv7m.c hw/arm: Clean up includes 2016-01-18 16:33:32 +00:00
bcm2835_peripherals.c all: Clean up includes 2016-02-16 14:29:28 +00:00
bcm2836.c all: Clean up includes 2016-02-16 14:29:28 +00:00
boot.c device_tree: qemu_fdt_getprop_cell converted to use the error API 2016-02-19 09:42:30 -07:00
collie.c hw/arm: Clean up includes 2016-01-18 16:33:32 +00:00
cubieboard.c hw/arm: Clean up includes 2016-01-18 16:33:32 +00:00
digic.c hw/arm: Clean up includes 2016-01-18 16:33:32 +00:00
digic_boards.c hw/arm: Clean up includes 2016-01-18 16:33:32 +00:00
exynos4_boards.c hw/arm: Clean up includes 2016-01-18 16:33:32 +00:00
exynos4210.c hw/arm: Clean up includes 2016-01-18 16:33:32 +00:00
fsl-imx25.c hw/arm: Clean up includes 2016-01-18 16:33:32 +00:00
fsl-imx31.c hw/arm: Clean up includes 2016-01-18 16:33:32 +00:00
gumstix.c hw/arm: Clean up includes 2016-01-18 16:33:32 +00:00
highbank.c arm/boot: move highbank secure board setup code to common routine 2016-02-03 15:00:46 +00:00
imx25_pdk.c Use error_fatal to simplify obvious fatal errors (again) 2016-02-08 17:22:00 +01:00
integratorcp.c hw/arm: Clean up includes 2016-01-18 16:33:32 +00:00
kzm.c Use error_fatal to simplify obvious fatal errors (again) 2016-02-08 17:22:00 +01:00
mainstone.c hw/arm: Clean up includes 2016-01-18 16:33:32 +00:00
Makefile.objs raspi: add raspberry pi 2 machine 2016-02-03 15:00:47 +00:00
musicpal.c hw/arm: Clean up includes 2016-01-18 16:33:32 +00:00
netduino2.c Use error_fatal to simplify obvious fatal errors (again) 2016-02-08 17:22:00 +01:00
nseries.c hw/arm: Clean up includes 2016-01-18 16:33:32 +00:00
omap1.c hw/arm: Clean up includes 2016-01-18 16:33:32 +00:00
omap2.c hw/arm: Clean up includes 2016-01-18 16:33:32 +00:00
omap_sx1.c hw/arm: Clean up includes 2016-01-18 16:33:32 +00:00
palm.c hw/arm: Clean up includes 2016-01-18 16:33:32 +00:00
pxa2xx.c ssi: Move ssi.h into a separate directory 2016-01-21 14:15:03 +00:00
pxa2xx_gpio.c hw/arm: Clean up includes 2016-01-18 16:33:32 +00:00
pxa2xx_pic.c hw/arm: Clean up includes 2016-01-18 16:33:32 +00:00
raspi.c all: Clean up includes 2016-02-16 14:29:28 +00:00
realview.c hw/arm: Clean up includes 2016-01-18 16:33:32 +00:00
spitz.c ssi: Move ssi.h into a separate directory 2016-01-21 14:15:03 +00:00
stellaris.c ssi: Move ssi.h into a separate directory 2016-01-21 14:15:03 +00:00
stm32f205_soc.c hw/arm: Clean up includes 2016-01-18 16:33:32 +00:00
strongarm.c ssi: Move ssi.h into a separate directory 2016-01-21 14:15:03 +00:00
strongarm.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
sysbus-fdt.c hw/arm/sysbus-fdt: enable amd-xgbe dynamic instantiation 2016-02-19 09:42:31 -07:00
tosa.c ssi: Move ssi.h into a separate directory 2016-01-21 14:15:03 +00:00
versatilepb.c hw/arm: Clean up includes 2016-01-18 16:33:32 +00:00
vexpress.c device_tree: qemu_fdt_getprop_cell converted to use the error API 2016-02-19 09:42:30 -07:00
virt-acpi-build.c pc and misc cleanups and fixes, virtio optimizations 2016-02-08 11:25:31 +00:00
virt.c hw/arm/virt: fix max-cpus check 2016-02-11 11:17:32 +00:00
xilinx_zynq.c sdhci_sysbus: Create SD card device in users, not the device itself 2016-02-18 14:26:33 +00:00
xlnx-ep108.c sdhci_sysbus: Create SD card device in users, not the device itself 2016-02-18 14:26:33 +00:00
xlnx-zynqmp.c sdhci_sysbus: Create SD card device in users, not the device itself 2016-02-18 14:26:33 +00:00
z2.c ssi: Move ssi.h into a separate directory 2016-01-21 14:15:03 +00:00