]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
msm: iommu: move to drivers/iommu/
authorOhad Ben-Cohen <ohad@wizery.com>
Thu, 2 Jun 2011 00:20:08 +0000 (03:20 +0300)
committerJoerg Roedel <joerg.roedel@amd.com>
Tue, 21 Jun 2011 08:48:50 +0000 (10:48 +0200)
This should ease finding similarities with different platforms,
with the intention of solving problems once in a generic framework
which everyone can use.

Compile-tested for MSM8X60.

Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Acked-by: David Brown <davidb@codeaurora.org>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
arch/arm/mach-msm/Kconfig
arch/arm/mach-msm/Makefile
drivers/iommu/Kconfig
drivers/iommu/Makefile
drivers/iommu/msm_iommu.c [moved from arch/arm/mach-msm/iommu.c with 100% similarity]
drivers/iommu/msm_iommu_dev.c [moved from arch/arm/mach-msm/iommu_dev.c with 100% similarity]

index efb7b7dfc20b98bb05de57aeddcd81797b843397..888e92502e1515edb896272be63dfe8e7e576c88 100644 (file)
@@ -148,22 +148,6 @@ config MACH_MSM8960_RUMI3
 
 endmenu
 
-config MSM_IOMMU
-       bool "MSM IOMMU Support"
-       depends on ARCH_MSM8X60 || ARCH_MSM8960
-       select IOMMU_API
-       default n
-       help
-         Support for the IOMMUs found on certain Qualcomm SOCs.
-         These IOMMUs allow virtualization of the address space used by most
-         cores within the multimedia subsystem.
-
-         If unsure, say N here.
-
-config IOMMU_PGTABLES_L2
-       def_bool y
-       depends on MSM_IOMMU && MMU && SMP && CPU_DCACHE_DISABLE=n
-
 config MSM_DEBUG_UART
        int
        default 1 if MSM_DEBUG_UART1
index 9519fd28a025fd415abf9b7a591ac167085dac18..b70658c5ae0038ef93b62255dc2de84a4f7f36bf 100644 (file)
@@ -3,7 +3,7 @@ obj-y += clock.o
 obj-$(CONFIG_DEBUG_FS) += clock-debug.o
 
 obj-$(CONFIG_MSM_VIC) += irq-vic.o
-obj-$(CONFIG_MSM_IOMMU) += iommu.o iommu_dev.o devices-iommu.o
+obj-$(CONFIG_MSM_IOMMU) += devices-iommu.o
 
 obj-$(CONFIG_ARCH_MSM7X00A) += dma.o irq.o acpuclock-arm11.o
 obj-$(CONFIG_ARCH_MSM7X30) += dma.o
index 2c5dfb48a22ae8b2e08608094e711e8a36ff452d..21a80bfbdb520613a3206ebf422d7ea203e0712a 100644 (file)
@@ -1,3 +1,19 @@
 # IOMMU_API always gets selected by whoever wants it.
 config IOMMU_API
        bool
+
+# MSM IOMMU support
+config MSM_IOMMU
+       bool "MSM IOMMU Support"
+       depends on ARCH_MSM8X60 || ARCH_MSM8960
+       select IOMMU_API
+       help
+         Support for the IOMMUs found on certain Qualcomm SOCs.
+         These IOMMUs allow virtualization of the address space used by most
+         cores within the multimedia subsystem.
+
+         If unsure, say N here.
+
+config IOMMU_PGTABLES_L2
+       def_bool y
+       depends on MSM_IOMMU && MMU && SMP && CPU_DCACHE_DISABLE=n
index 241ba4c46a19b3bc569f617b4088644d4088c621..1a71c82b1af219f6d002c8a9b07bbcc55f947b4e 100644 (file)
@@ -1 +1,2 @@
 obj-$(CONFIG_IOMMU_API) += iommu.o
+obj-$(CONFIG_MSM_IOMMU) += msm_iommu.o msm_iommu_dev.o