rk3288: get compatible name of iommu using macro defintion
authorljf <ljf@rock-chips.com>
Fri, 8 Aug 2014 06:59:23 +0000 (14:59 +0800)
committerljf <ljf@rock-chips.com>
Fri, 8 Aug 2014 06:59:23 +0000 (14:59 +0800)
arch/arm/mach-rockchip/vcodec_service.c
drivers/video/rockchip/iep/iep_drv.c

index 03f427ec4e11e0a6bca0e5429540bbae7fdecb49..88aea8447f20ce3ebabafe83abbdc6efaba122bf 100755 (executable)
@@ -1659,9 +1659,9 @@ static int vcodec_probe(struct platform_device *pdev)
                }\r
 \r
                if (pservice->hw_info->hw_id == HEVC_ID)\r
-                       sprintf(mmu_dev_dts_name, "iommu,hevc_mmu");\r
+                       sprintf(mmu_dev_dts_name, HEVC_IOMMU_COMPATIBLE_NAME);\r
                else\r
-                       sprintf(mmu_dev_dts_name, "iommu,vpu_mmu");\r
+                       sprintf(mmu_dev_dts_name, VPU_IOMMU_COMPATIBLE_NAME);\r
 \r
                pservice->mmu_dev = rockchip_get_sysmmu_device_by_compatible(mmu_dev_dts_name);\r
 \r
index 4ad9217f60e028e0ff59659d0f131db3b15f9e8f..24f6585069d2518672f45e0a791029d110b6f657 100755 (executable)
@@ -937,7 +937,7 @@ static int iep_drv_probe(struct platform_device *pdev)
             IEP_INFO("iep ion client create success!\n");\r
         }\r
 \r
-        mmu_dev = rockchip_get_sysmmu_device_by_compatible("iommu,iep_mmu");\r
+        mmu_dev = rockchip_get_sysmmu_device_by_compatible(IEP_IOMMU_COMPATIBLE_NAME);\r
         \r
         if (mmu_dev) {\r
             platform_set_sysmmu(mmu_dev, &pdev->dev);\r