]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/iommu/Kconfig
iommu: Implement common IOMMU ops for DMA mapping
[karo-tx-linux.git] / drivers / iommu / Kconfig
index 4664c2a96c67fee361c3476ddc8f9a8e8842d271..7414f33acfbadebd000444e7e955cbf7049c0054 100644 (file)
@@ -43,12 +43,19 @@ config IOMMU_IO_PGTABLE_LPAE_SELFTEST
 endmenu
 
 config IOMMU_IOVA
-       bool
+       tristate
 
 config OF_IOMMU
        def_bool y
        depends on OF && IOMMU_API
 
+# IOMMU-agnostic DMA-mapping layer
+config IOMMU_DMA
+       bool
+       depends on NEED_SG_DMA_LENGTH
+       select IOMMU_API
+       select IOMMU_IOVA
+
 config FSL_PAMU
        bool "Freescale IOMMU support"
        depends on PPC32