OSDN Git Service

Merge branches 'arm/renesas', 'arm/smmu', 'arm/omap', 'ppc/pamu', 'x86/amd' and ...
[android-x86/kernel.git] / drivers / iommu / Kconfig
index 87060ad..baa0d97 100644 (file)
@@ -4,6 +4,7 @@ config IOMMU_API
 
 menuconfig IOMMU_SUPPORT
        bool "IOMMU Hardware Support"
+       depends on MMU
        default y
        ---help---
          Say Y here if you want to compile device drivers for IO Memory
@@ -39,13 +40,17 @@ config IOMMU_IO_PGTABLE_LPAE_SELFTEST
 
 endmenu
 
+config IOMMU_IOVA
+       bool
+
 config OF_IOMMU
        def_bool y
        depends on OF && IOMMU_API
 
 config FSL_PAMU
        bool "Freescale IOMMU support"
-       depends on PPC_E500MC
+       depends on PPC32
+       depends on PPC_E500MC || COMPILE_TEST
        select IOMMU_API
        select GENERIC_ALLOCATOR
        help
@@ -56,7 +61,8 @@ config FSL_PAMU
 # MSM IOMMU support
 config MSM_IOMMU
        bool "MSM IOMMU Support"
-       depends on ARCH_MSM8X60 || ARCH_MSM8960
+       depends on ARM
+       depends on ARCH_MSM8X60 || ARCH_MSM8960 || COMPILE_TEST
        select IOMMU_API
        help
          Support for the IOMMUs found on certain Qualcomm SOCs.
@@ -117,6 +123,7 @@ config INTEL_IOMMU
        bool "Support for Intel IOMMU using DMA Remapping Devices"
        depends on PCI_MSI && ACPI && (X86 || IA64_GENERIC)
        select IOMMU_API
+       select IOMMU_IOVA
        select DMAR_TABLE
        help
          DMA remapping (DMAR) devices support enables independent address
@@ -166,7 +173,8 @@ config IRQ_REMAP
 # OMAP IOMMU support
 config OMAP_IOMMU
        bool "OMAP IOMMU Support"
-       depends on ARCH_OMAP2PLUS
+       depends on ARM && MMU
+       depends on ARCH_OMAP2PLUS || COMPILE_TEST
        select IOMMU_API
 
 config OMAP_IOMMU_DEBUG
@@ -213,7 +221,7 @@ config TEGRA_IOMMU_SMMU
 
 config EXYNOS_IOMMU
        bool "Exynos IOMMU Support"
-       depends on ARCH_EXYNOS && ARM
+       depends on ARCH_EXYNOS && ARM && MMU
        select IOMMU_API
        select ARM_DMA_USE_IOMMU
        help
@@ -242,7 +250,7 @@ config SHMOBILE_IPMMU_TLB
 config SHMOBILE_IOMMU
        bool "IOMMU for Renesas IPMMU/IPMMUI"
        default n
-       depends on ARM
+       depends on ARM && MMU
        depends on ARCH_SHMOBILE || COMPILE_TEST
        select IOMMU_API
        select ARM_DMA_USE_IOMMU
@@ -313,6 +321,7 @@ config IPMMU_VMSA
        depends on ARM_LPAE
        depends on ARCH_SHMOBILE || COMPILE_TEST
        select IOMMU_API
+       select IOMMU_IO_PGTABLE_LPAE
        select ARM_DMA_USE_IOMMU
        help
          Support for the Renesas VMSA-compatible IPMMU Renesas found in the
@@ -330,7 +339,7 @@ config SPAPR_TCE_IOMMU
 
 config ARM_SMMU
        bool "ARM Ltd. System MMU (SMMU) Support"
-       depends on ARM64 || ARM
+       depends on (ARM64 || ARM) && MMU
        select IOMMU_API
        select IOMMU_IO_PGTABLE_LPAE
        select ARM_DMA_USE_IOMMU if ARM