Skip to content

Commit b10f127

Browse files
ohadbcjoergroedel
authored andcommitted
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 <[email protected]> Acked-by: David Brown <[email protected]> Signed-off-by: Joerg Roedel <[email protected]>
1 parent ab493a0 commit b10f127

File tree

6 files changed

+18
-17
lines changed

6 files changed

+18
-17
lines changed

arch/arm/mach-msm/Kconfig

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -148,22 +148,6 @@ config MACH_MSM8960_RUMI3
148148

149149
endmenu
150150

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-
167151
config MSM_DEBUG_UART
168152
int
169153
default 1 if MSM_DEBUG_UART1

arch/arm/mach-msm/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ obj-y += clock.o
33
obj-$(CONFIG_DEBUG_FS) += clock-debug.o
44

55
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
77

88
obj-$(CONFIG_ARCH_MSM7X00A) += dma.o irq.o acpuclock-arm11.o
99
obj-$(CONFIG_ARCH_MSM7X30) += dma.o

drivers/iommu/Kconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
11
# IOMMU_API always gets selected by whoever wants it.
22
config IOMMU_API
33
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

drivers/iommu/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
obj-$(CONFIG_IOMMU_API) += iommu.o
2+
obj-$(CONFIG_MSM_IOMMU) += msm_iommu.o msm_iommu_dev.o
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)