vfio: platform: add the VFIO PLATFORM module to Kconfig
authorAntonios Motakis <a.motakis@virtualopensystems.com>
Mon, 16 Mar 2015 20:08:44 +0000 (14:08 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 16 Mar 2015 20:08:44 +0000 (14:08 -0600)
Enable building the VFIO PLATFORM driver that allows to use Linux platform
devices with VFIO.

Signed-off-by: Antonios Motakis <a.motakis@virtualopensystems.com>
Signed-off-by: Baptiste Reynal <b.reynal@virtualopensystems.com>
Reviewed-by: Eric Auger <eric.auger@linaro.org>
Tested-by: Eric Auger <eric.auger@linaro.org>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/Kconfig
drivers/vfio/Makefile
drivers/vfio/platform/Kconfig [new file with mode: 0644]
drivers/vfio/platform/Makefile [new file with mode: 0644]

index 14e27ab3245686610efb7e82dccaa84edc1377c7..d5322a434a7a474da70f544cc1eda2cd1fd39377 100644 (file)
@@ -27,3 +27,4 @@ menuconfig VFIO
          If you don't know what to do here, say N.
 
 source "drivers/vfio/pci/Kconfig"
+source "drivers/vfio/platform/Kconfig"
index 0b035b12600a7ba6aeaa8d16367fdfbe4f78c9da..dadf0ca146efced7980c747c7be384402afe37ab 100644 (file)
@@ -3,3 +3,4 @@ obj-$(CONFIG_VFIO_IOMMU_TYPE1) += vfio_iommu_type1.o
 obj-$(CONFIG_VFIO_IOMMU_SPAPR_TCE) += vfio_iommu_spapr_tce.o
 obj-$(CONFIG_VFIO_SPAPR_EEH) += vfio_spapr_eeh.o
 obj-$(CONFIG_VFIO_PCI) += pci/
+obj-$(CONFIG_VFIO_PLATFORM) += platform/
diff --git a/drivers/vfio/platform/Kconfig b/drivers/vfio/platform/Kconfig
new file mode 100644 (file)
index 0000000..c51af17
--- /dev/null
@@ -0,0 +1,9 @@
+config VFIO_PLATFORM
+       tristate "VFIO support for platform devices"
+       depends on VFIO && EVENTFD && ARM
+       help
+         Support for platform devices with VFIO. This is required to make
+         use of platform devices present on the system using the VFIO
+         framework.
+
+         If you don't know what to do here, say N.
diff --git a/drivers/vfio/platform/Makefile b/drivers/vfio/platform/Makefile
new file mode 100644 (file)
index 0000000..279862b
--- /dev/null
@@ -0,0 +1,4 @@
+
+vfio-platform-y := vfio_platform.o vfio_platform_common.o
+
+obj-$(CONFIG_VFIO_PLATFORM) += vfio-platform.o