diff options
author | Robin Murphy <robin.murphy@arm.com> | 2015-01-12 12:51:13 -0500 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2015-01-19 08:55:22 -0500 |
commit | 114150d8f4fc9e7a003be2bdb0efd31796d241ff (patch) | |
tree | 385164eceda4650d0329d5a5dadb23aff2bab75a /drivers | |
parent | ec6f34e5b552fb0a52e6aae1a5afbbb1605cc6cc (diff) |
iommu: Allow building iova.c independently
In preparation for sharing the IOVA allocator, split it out under its
own Kconfig symbol.
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/iommu/Kconfig | 4 | ||||
-rw-r--r-- | drivers/iommu/Makefile | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig index 325188eef1c1..a839ca93376b 100644 --- a/drivers/iommu/Kconfig +++ b/drivers/iommu/Kconfig | |||
@@ -13,6 +13,9 @@ menuconfig IOMMU_SUPPORT | |||
13 | 13 | ||
14 | if IOMMU_SUPPORT | 14 | if IOMMU_SUPPORT |
15 | 15 | ||
16 | config IOMMU_IOVA | ||
17 | bool | ||
18 | |||
16 | config OF_IOMMU | 19 | config OF_IOMMU |
17 | def_bool y | 20 | def_bool y |
18 | depends on OF && IOMMU_API | 21 | depends on OF && IOMMU_API |
@@ -91,6 +94,7 @@ config INTEL_IOMMU | |||
91 | bool "Support for Intel IOMMU using DMA Remapping Devices" | 94 | bool "Support for Intel IOMMU using DMA Remapping Devices" |
92 | depends on PCI_MSI && ACPI && (X86 || IA64_GENERIC) | 95 | depends on PCI_MSI && ACPI && (X86 || IA64_GENERIC) |
93 | select IOMMU_API | 96 | select IOMMU_API |
97 | select IOMMU_IOVA | ||
94 | select DMAR_TABLE | 98 | select DMAR_TABLE |
95 | help | 99 | help |
96 | DMA remapping (DMAR) devices support enables independent address | 100 | DMA remapping (DMAR) devices support enables independent address |
diff --git a/drivers/iommu/Makefile b/drivers/iommu/Makefile index 7b976f294a69..0b1b94ef13ab 100644 --- a/drivers/iommu/Makefile +++ b/drivers/iommu/Makefile | |||
@@ -1,13 +1,14 @@ | |||
1 | obj-$(CONFIG_IOMMU_API) += iommu.o | 1 | obj-$(CONFIG_IOMMU_API) += iommu.o |
2 | obj-$(CONFIG_IOMMU_API) += iommu-traces.o | 2 | obj-$(CONFIG_IOMMU_API) += iommu-traces.o |
3 | obj-$(CONFIG_IOMMU_API) += iommu-sysfs.o | 3 | obj-$(CONFIG_IOMMU_API) += iommu-sysfs.o |
4 | obj-$(CONFIG_IOMMU_IOVA) += iova.o | ||
4 | obj-$(CONFIG_OF_IOMMU) += of_iommu.o | 5 | obj-$(CONFIG_OF_IOMMU) += of_iommu.o |
5 | obj-$(CONFIG_MSM_IOMMU) += msm_iommu.o msm_iommu_dev.o | 6 | obj-$(CONFIG_MSM_IOMMU) += msm_iommu.o msm_iommu_dev.o |
6 | obj-$(CONFIG_AMD_IOMMU) += amd_iommu.o amd_iommu_init.o | 7 | obj-$(CONFIG_AMD_IOMMU) += amd_iommu.o amd_iommu_init.o |
7 | obj-$(CONFIG_AMD_IOMMU_V2) += amd_iommu_v2.o | 8 | obj-$(CONFIG_AMD_IOMMU_V2) += amd_iommu_v2.o |
8 | obj-$(CONFIG_ARM_SMMU) += arm-smmu.o | 9 | obj-$(CONFIG_ARM_SMMU) += arm-smmu.o |
9 | obj-$(CONFIG_DMAR_TABLE) += dmar.o | 10 | obj-$(CONFIG_DMAR_TABLE) += dmar.o |
10 | obj-$(CONFIG_INTEL_IOMMU) += iova.o intel-iommu.o | 11 | obj-$(CONFIG_INTEL_IOMMU) += intel-iommu.o |
11 | obj-$(CONFIG_IPMMU_VMSA) += ipmmu-vmsa.o | 12 | obj-$(CONFIG_IPMMU_VMSA) += ipmmu-vmsa.o |
12 | obj-$(CONFIG_IRQ_REMAP) += intel_irq_remapping.o irq_remapping.o | 13 | obj-$(CONFIG_IRQ_REMAP) += intel_irq_remapping.o irq_remapping.o |
13 | obj-$(CONFIG_OMAP_IOMMU) += omap-iommu.o | 14 | obj-$(CONFIG_OMAP_IOMMU) += omap-iommu.o |