rk3288: get compatible name of iommu using macro defintion

This commit is contained in:
ljf
2014-08-08 14:59:23 +08:00
parent 907683be66
commit 3aa325ec14
2 changed files with 3 additions and 3 deletions

View File

@@ -1659,9 +1659,9 @@ static int vcodec_probe(struct platform_device *pdev)
}
if (pservice->hw_info->hw_id == HEVC_ID)
sprintf(mmu_dev_dts_name, "iommu,hevc_mmu");
sprintf(mmu_dev_dts_name, HEVC_IOMMU_COMPATIBLE_NAME);
else
sprintf(mmu_dev_dts_name, "iommu,vpu_mmu");
sprintf(mmu_dev_dts_name, VPU_IOMMU_COMPATIBLE_NAME);
pservice->mmu_dev = rockchip_get_sysmmu_device_by_compatible(mmu_dev_dts_name);

View File

@@ -937,7 +937,7 @@ static int iep_drv_probe(struct platform_device *pdev)
IEP_INFO("iep ion client create success!\n");
}
mmu_dev = rockchip_get_sysmmu_device_by_compatible("iommu,iep_mmu");
mmu_dev = rockchip_get_sysmmu_device_by_compatible(IEP_IOMMU_COMPATIBLE_NAME);
if (mmu_dev) {
platform_set_sysmmu(mmu_dev, &pdev->dev);