Commit 9472df0f authored by Hari Kanigeri's avatar Hari Kanigeri

ARM:OMAP4:changes in iommu for OMAP4

This patch has the changes to iommu module to make
iommu functional on OMAP4 simulator. The changes
included using stubbed clock interface and commenting
out reading the MMU soft reset register.
Signed-off-by: default avatarHari Kanigeri <h-kanigeri2@ti.com>
parent 0c1955e6
......@@ -80,12 +80,16 @@ static int omap2_iommu_enable(struct iommu *obj)
if (l & MMU_SYS_RESETDONE)
break;
} while (time_after(jiffies, timeout));
/* FIXME: Hack till the reading the MMU status register
* is resolved in Simulator. Simulator doesn't update
* the STATUS register.
*/
#ifndef CONFIG_ARCH_OMAP4
if (!(l & MMU_SYS_RESETDONE)) {
dev_err(obj->dev, "can't take mmu out of reset\n");
return -ENODEV;
}
#endif
l = iommu_read_reg(obj, MMU_REVISION);
dev_info(obj->dev, "%s: version %d.%d\n", obj->name,
(l >> 4) & 0xf, l & 0xf);
......
......@@ -861,9 +861,15 @@ static int __devinit omap_iommu_probe(struct platform_device *pdev)
if (!obj)
return -ENOMEM;
obj->clk = clk_get(&pdev->dev, pdata->clk_name);
if (IS_ERR(obj->clk))
goto err_clk;
/*
* FIX-ME: Replace with correct clk node when clk
* framework is available
*/
if (!cpu_is_omap44xx()) {
obj->clk = clk_get(&pdev->dev, pdata->clk_name);
if (IS_ERR(obj->clk))
goto err_clk;
}
obj->nr_tlb_entries = pdata->nr_tlb_entries;
obj->name = pdata->name;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment