浏览代码

omap iommu: add MPU_BRIDGE_IOMMU for tidspbridge migration

Currently "tidspbridge" driver uses its own mmu implementation and
will migrate to use this "omap iommu" eventually. This config is
provided to make this migration happen smoothly.

Signed-off-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
Hiroshi DOYU 16 年之前
父节点
当前提交
5c651ffaee
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      arch/arm/mach-omap2/omap3-iommu.c

+ 2 - 0
arch/arm/mach-omap2/omap3-iommu.c

@@ -36,11 +36,13 @@ static const struct iommu_platform_data omap3_iommu_pdata[] __initconst = {
 		.nr_tlb_entries = 8,
 		.nr_tlb_entries = 8,
 		.clk_name = "cam_ick",
 		.clk_name = "cam_ick",
 	},
 	},
+#if defined(CONFIG_MPU_BRIDGE_IOMMU)
 	{
 	{
 		.name = "iva2",
 		.name = "iva2",
 		.nr_tlb_entries = 32,
 		.nr_tlb_entries = 32,
 		.clk_name = "iva2_ck",
 		.clk_name = "iva2_ck",
 	},
 	},
+#endif
 };
 };
 #define NR_IOMMU_DEVICES ARRAY_SIZE(omap3_iommu_pdata)
 #define NR_IOMMU_DEVICES ARRAY_SIZE(omap3_iommu_pdata)