diff options
author | Ohad Ben-Cohen <ohad@wizery.com> | 2011-06-01 20:20:08 -0400 |
---|---|---|
committer | Joerg Roedel <joerg.roedel@amd.com> | 2011-06-21 04:48:50 -0400 |
commit | b10f127e1a4d8cac5414c6e2b152c205b66c9f16 (patch) | |
tree | 229fd151205405d0b0b78a857b4ac42c7da30df2 | |
parent | ab493a0f0f55d28636ac860ea682d57b84257f10 (diff) |
msm: iommu: move to drivers/iommu/
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>
-rw-r--r-- | arch/arm/mach-msm/Kconfig | 16 | ||||
-rw-r--r-- | arch/arm/mach-msm/Makefile | 2 | ||||
-rw-r--r-- | drivers/iommu/Kconfig | 16 | ||||
-rw-r--r-- | drivers/iommu/Makefile | 1 | ||||
-rw-r--r-- | drivers/iommu/msm_iommu.c (renamed from arch/arm/mach-msm/iommu.c) | 0 | ||||
-rw-r--r-- | drivers/iommu/msm_iommu_dev.c (renamed from arch/arm/mach-msm/iommu_dev.c) | 0 |
6 files changed, 18 insertions, 17 deletions
diff --git a/arch/arm/mach-msm/Kconfig b/arch/arm/mach-msm/Kconfig index efb7b7dfc20b..888e92502e15 100644 --- a/arch/arm/mach-msm/Kconfig +++ b/arch/arm/mach-msm/Kconfig | |||
@@ -148,22 +148,6 @@ config MACH_MSM8960_RUMI3 | |||
148 | 148 | ||
149 | endmenu | 149 | endmenu |
150 | 150 | ||
151 | config MSM_IOMMU | ||
152 | bool "MSM IOMMU Support" | ||
153 | depends on ARCH_MSM8X60 || ARCH_MSM8960 | ||
154 | select IOMMU_API | ||
155 | default n | ||
156 | help | ||
157 | Support for the IOMMUs found on certain Qualcomm SOCs. | ||
158 | These IOMMUs allow virtualization of the address space used by most | ||
159 | cores within the multimedia subsystem. | ||
160 | |||
161 | If unsure, say N here. | ||
162 | |||
163 | config IOMMU_PGTABLES_L2 | ||
164 | def_bool y | ||
165 | depends on MSM_IOMMU && MMU && SMP && CPU_DCACHE_DISABLE=n | ||
166 | |||
167 | config MSM_DEBUG_UART | 151 | config MSM_DEBUG_UART |
168 | int | 152 | int |
169 | default 1 if MSM_DEBUG_UART1 | 153 | default 1 if MSM_DEBUG_UART1 |
diff --git a/arch/arm/mach-msm/Makefile b/arch/arm/mach-msm/Makefile index 9519fd28a025..b70658c5ae00 100644 --- a/arch/arm/mach-msm/Makefile +++ b/arch/arm/mach-msm/Makefile | |||
@@ -3,7 +3,7 @@ obj-y += clock.o | |||
3 | obj-$(CONFIG_DEBUG_FS) += clock-debug.o | 3 | obj-$(CONFIG_DEBUG_FS) += clock-debug.o |
4 | 4 | ||
5 | obj-$(CONFIG_MSM_VIC) += irq-vic.o | 5 | obj-$(CONFIG_MSM_VIC) += irq-vic.o |
6 | obj-$(CONFIG_MSM_IOMMU) += iommu.o iommu_dev.o devices-iommu.o | 6 | obj-$(CONFIG_MSM_IOMMU) += devices-iommu.o |
7 | 7 | ||
8 | obj-$(CONFIG_ARCH_MSM7X00A) += dma.o irq.o acpuclock-arm11.o | 8 | obj-$(CONFIG_ARCH_MSM7X00A) += dma.o irq.o acpuclock-arm11.o |
9 | obj-$(CONFIG_ARCH_MSM7X30) += dma.o | 9 | obj-$(CONFIG_ARCH_MSM7X30) += dma.o |
diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig index 2c5dfb48a22a..21a80bfbdb52 100644 --- a/drivers/iommu/Kconfig +++ b/drivers/iommu/Kconfig | |||
@@ -1,3 +1,19 @@ | |||
1 | # IOMMU_API always gets selected by whoever wants it. | 1 | # IOMMU_API always gets selected by whoever wants it. |
2 | config IOMMU_API | 2 | config IOMMU_API |
3 | bool | 3 | bool |
4 | |||
5 | # MSM IOMMU support | ||
6 | config MSM_IOMMU | ||
7 | bool "MSM IOMMU Support" | ||
8 | depends on ARCH_MSM8X60 || ARCH_MSM8960 | ||
9 | select IOMMU_API | ||
10 | help | ||
11 | Support for the IOMMUs found on certain Qualcomm SOCs. | ||
12 | These IOMMUs allow virtualization of the address space used by most | ||
13 | cores within the multimedia subsystem. | ||
14 | |||
15 | If unsure, say N here. | ||
16 | |||
17 | config IOMMU_PGTABLES_L2 | ||
18 | def_bool y | ||
19 | depends on MSM_IOMMU && MMU && SMP && CPU_DCACHE_DISABLE=n | ||
diff --git a/drivers/iommu/Makefile b/drivers/iommu/Makefile index 241ba4c46a19..1a71c82b1af2 100644 --- a/drivers/iommu/Makefile +++ b/drivers/iommu/Makefile | |||
@@ -1 +1,2 @@ | |||
1 | obj-$(CONFIG_IOMMU_API) += iommu.o | 1 | obj-$(CONFIG_IOMMU_API) += iommu.o |
2 | obj-$(CONFIG_MSM_IOMMU) += msm_iommu.o msm_iommu_dev.o | ||
diff --git a/arch/arm/mach-msm/iommu.c b/drivers/iommu/msm_iommu.c index 1a584e077c61..1a584e077c61 100644 --- a/arch/arm/mach-msm/iommu.c +++ b/drivers/iommu/msm_iommu.c | |||
diff --git a/arch/arm/mach-msm/iommu_dev.c b/drivers/iommu/msm_iommu_dev.c index 8e8fb079852d..8e8fb079852d 100644 --- a/arch/arm/mach-msm/iommu_dev.c +++ b/drivers/iommu/msm_iommu_dev.c | |||