@@ -136,7 +136,7 @@ CONFIG_COMMON_CLK_QCOM=y
CONFIG_MSM_GCC_8660=y
CONFIG_MSM_MMCC_8960=y
CONFIG_MSM_MMCC_8974=y
-CONFIG_MSM_IOMMU=y
+CONFIG_MSM_IOMMU_V0=y
CONFIG_GENERIC_PHY=y
CONFIG_EXT2_FS=y
CONFIG_EXT2_FS_XATTR=y
@@ -28,12 +28,19 @@ config FSL_PAMU
transaction types.
# MSM IOMMU support
+
+# MSM_IOMMU always gets selected by whoever wants it.
config MSM_IOMMU
- bool "MSM IOMMU Support"
+ bool
+
+# MSM IOMMUv0 support
+config MSM_IOMMU_V0
+ bool "MSM IOMMUv0 Support"
depends on ARCH_MSM8X60 || ARCH_MSM8960
select IOMMU_API
+ select MSM_IOMMU
help
- Support for the IOMMUs found on certain Qualcomm SOCs.
+ Support for the IOMMUs (v0) found on certain Qualcomm SOCs.
These IOMMUs allow virtualization of the address space used by most
cores within the multimedia subsystem.
@@ -1,7 +1,7 @@
obj-$(CONFIG_IOMMU_API) += iommu.o
obj-$(CONFIG_IOMMU_API) += iommu-traces.o
obj-$(CONFIG_OF_IOMMU) += of_iommu.o
-obj-$(CONFIG_MSM_IOMMU) += msm_iommu.o msm_iommu_dev.o
+obj-$(CONFIG_MSM_IOMMU_V0) += msm_iommu-v0.o msm_iommu_dev-v0.o
obj-$(CONFIG_AMD_IOMMU) += amd_iommu.o amd_iommu_init.o
obj-$(CONFIG_AMD_IOMMU_V2) += amd_iommu_v2.o
obj-$(CONFIG_ARM_SMMU) += arm-smmu.o
similarity index 99%
rename from drivers/iommu/msm_iommu.c
rename to drivers/iommu/msm_iommu-v0.c
@@ -31,7 +31,7 @@
#include <asm/cacheflush.h>
#include <asm/sizes.h>
-#include "msm_iommu_hw-8xxx.h"
+#include "msm_iommu_hw-v0.h"
#include "msm_iommu.h"
#define MRC(reg, processor, op1, crn, crm, op2) \
similarity index 99%
rename from drivers/iommu/msm_iommu_dev.c
rename to drivers/iommu/msm_iommu_dev-v0.c
@@ -27,7 +27,7 @@
#include <linux/err.h>
#include <linux/slab.h>
-#include "msm_iommu_hw-8xxx.h"
+#include "msm_iommu_hw-v0.h"
#include "msm_iommu.h"
struct iommu_ctx_iter_data {
Rename the MSM IOMMU driver for MSM8960 SoC to "-v0" version to align with hardware version number for next generation MSM IOMMU (v1). Signed-off-by: Olav Haugan <ohaugan@codeaurora.org> --- arch/arm/configs/qcom_defconfig | 2 +- drivers/iommu/Kconfig | 11 +++++++++-- drivers/iommu/Makefile | 2 +- drivers/iommu/{msm_iommu.c => msm_iommu-v0.c} | 2 +- drivers/iommu/{msm_iommu_dev.c => msm_iommu_dev-v0.c} | 2 +- drivers/iommu/{msm_iommu_hw-8xxx.h => msm_iommu_hw-v0.h} | 0 6 files changed, 13 insertions(+), 6 deletions(-) rename drivers/iommu/{msm_iommu.c => msm_iommu-v0.c} (99%) rename drivers/iommu/{msm_iommu_dev.c => msm_iommu_dev-v0.c} (99%) rename drivers/iommu/{msm_iommu_hw-8xxx.h => msm_iommu_hw-v0.h} (100%) diff --git a/drivers/iommu/msm_iommu_hw-8xxx.h b/drivers/iommu/msm_iommu_hw-v0.h similarity index 100% rename from drivers/iommu/msm_iommu_hw-8xxx.h rename to drivers/iommu/msm_iommu_hw-v0.h