summaryrefslogtreecommitdiffstats
path: root/drivers/iommu/Kconfig
diff options
context:
space:
mode:
authorHiroshi Doyu2012-06-25 13:23:54 +0200
committerJoerg Roedel2012-06-25 13:50:28 +0200
commit4e0ee78f2af96676c9dca898c13250f62c513058 (patch)
treeb6851b6678d8a99a6c158a18f210442e545f78c3 /drivers/iommu/Kconfig
parentLinux 3.5-rc3 (diff)
downloadkernel-qcow2-linux-4e0ee78f2af96676c9dca898c13250f62c513058.tar.gz
kernel-qcow2-linux-4e0ee78f2af96676c9dca898c13250f62c513058.tar.xz
kernel-qcow2-linux-4e0ee78f2af96676c9dca898c13250f62c513058.zip
iommu: Add DMA window parser, of_get_dma_window()
This code was based on: "arch/microblaze/kernel/prom_parse.c" "arch/powerpc/kernel/prom_parse.c" Can replace "of_parse_dma_window()" in the above. This supports different formats flexibly. "prefix" can be configured if any. "busno" and "index" are optionally specified. Set NULL and 0 if not used. Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com> Acked-by: Stephen Warren <swarren@wwwdotorg.org> Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'drivers/iommu/Kconfig')
-rw-r--r--drivers/iommu/Kconfig4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig
index 340893727538..4826af62a9de 100644
--- a/drivers/iommu/Kconfig
+++ b/drivers/iommu/Kconfig
@@ -13,6 +13,10 @@ menuconfig IOMMU_SUPPORT
if IOMMU_SUPPORT
+config OF_IOMMU
+ def_bool y
+ depends on OF
+
# MSM IOMMU support
config MSM_IOMMU
bool "MSM IOMMU Support"