mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 11:50:43 +09:00
rk3288: get compatible name of iommu using macro defintion
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user