summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/Kconfig
diff options
context:
space:
mode:
authorHiroshi DOYU <hdoyu@nvidia.com>2012-07-11 16:51:24 +0300
committerRohan Somvanshi <rsomvanshi@nvidia.com>2012-07-16 02:28:21 -0700
commit241637ddc8ad79e3473ab6e305f5fa21e776e800 (patch)
tree26a1bb70653a1ec0ce823b663c4ac4694d757516 /arch/arm/mach-tegra/Kconfig
parent0f76524e9a3a88797b9b2e9f0f1dad33f64ffac6 (diff)
ARM: tegra: iovmm: Make IOMMU/IOVMM selectable in Kconfig
This patch enables to replace iovmm*.ko family with tegra-{smmu,gart}.ko if needed in kernel config. To use IOMMU as backend engine, Enable TEGRA_IOMMU_{GART,SMMU} under IOMMU in config, and automatically disable IOVMM. IOVMM is equivalent to IOMMU_API. TEGRA_IOVMM_GART is equivalent to TEGRA_IOMMU_GART. TEGRA_IOVMM_SMMU is equivalent to TEGRA_IOMMU_SMMU. Change-Id: I73408e927eb3f21e1db4e73700aaf415f4949166 Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com> Reviewed-on: http://git-master/r/115011 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/Kconfig')
-rw-r--r--arch/arm/mach-tegra/Kconfig7
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/arm/mach-tegra/Kconfig b/arch/arm/mach-tegra/Kconfig
index d43e6f80d43e..e94c2f03187b 100644
--- a/arch/arm/mach-tegra/Kconfig
+++ b/arch/arm/mach-tegra/Kconfig
@@ -296,7 +296,7 @@ config TEGRA_CORE_DVFS
config TEGRA_IOVMM_GART
bool "Enable I/O virtual memory manager for GART"
- depends on ARCH_TEGRA_2x_SOC
+ depends on ARCH_TEGRA_2x_SOC && !TEGRA_IOMMU_GART
default y
select TEGRA_IOVMM
help
@@ -307,7 +307,7 @@ config TEGRA_IOVMM_GART
config TEGRA_IOVMM_SMMU
bool "Enable I/O virtual memory manager for SMMU"
- depends on ARCH_TEGRA_3x_SOC
+ depends on ARCH_TEGRA_3x_SOC && !TEGRA_IOMMU_SMMU
default y
select TEGRA_IOVMM
help
@@ -324,6 +324,7 @@ config TEGRA_IOVMM_SMMU_SYSFS
Enables SMMU register access through /sys/devices/smmu/* files.
config TEGRA_IOVMM
+ depends on TEGRA_IOVMM_GART || TEGRA_IOVMM_SMMU
bool
config TEGRA_AVP_KERNEL_ON_MMU
@@ -335,7 +336,7 @@ config TEGRA_AVP_KERNEL_ON_MMU
config TEGRA_AVP_KERNEL_ON_SMMU
bool "Use SMMU to relocate AVP kernel"
- depends on TEGRA_IOVMM_SMMU
+ depends on TEGRA_IOVMM_SMMU || TEGRA_IOMMU_SMMU
default y
help
Use SMMU to relocate AVP kernel (nvrm_avp.bin).