OMAP: iommu: make iva2 iommu selectable
authorFelipe Contreras <felipe.contreras@nokia.com>
Mon, 11 Oct 2010 09:53:49 +0000 (09:53 +0000)
committerHari Kanigeri <h-kanigeri2@ti.com>
Wed, 15 Dec 2010 17:33:31 +0000 (11:33 -0600)
It seems dsp-link will do this, and tidspbridge too at some point, but
right now it's not possible to select CONFIG_MPU_BRIDGE_IOMMU.

Cc: Fernando Guzman Lugo <fernando.lugo@ti.com>
Cc: Yogesh Marathe <yogesh_marathe@ti.com>
Signed-off-by: Felipe Contreras <felipe.contreras@nokia.com>
arch/arm/mach-omap2/omap-iommu.c
arch/arm/plat-omap/Kconfig

index 6be548cdd800144a9b0401e354c2ec333aff3ab3..3fc5dc7233da29ca0eb0c603527da9b46fc13f46 100644 (file)
@@ -37,7 +37,7 @@ static struct iommu_device omap3_devices[] = {
                        .da_end = 0xFFFFF000,
                },
        },
-#if defined(CONFIG_MPU_BRIDGE_IOMMU)
+#if defined(CONFIG_OMAP_IOMMU_IVA2)
        {
                .base = 0x5d000000,
                .irq = 28,
index 92c5bb7909f5632c6d0132813292e655a1d16161..5e63e5069e0ddc043728f5435a0cc221a3c985d3 100644 (file)
@@ -109,6 +109,9 @@ config OMAP_IOMMU_DEBUG
 
          Say N unless you know you need this.
 
+config OMAP_IOMMU_IVA2
+       bool
+
 choice
        prompt "System timer"
        default OMAP_32K_TIMER if !ARCH_OMAP15XX