iommu/mediatek: add support for mtk iommu generation one HW
authorHonghui Zhang <honghui.zhang@mediatek.com>
Wed, 8 Jun 2016 09:51:00 +0000 (17:51 +0800)
committerJoerg Roedel <jroedel@suse.de>
Tue, 21 Jun 2016 09:36:19 +0000 (11:36 +0200)
commitb17336c55d8928c4c693d3feb6245508e562aab5
tree2f8511a919ad4a1126fe98f2a337b3d39a0ac985
parent3c8f4ad85c4b61fcf2c56e1d281d691ac595243a
iommu/mediatek: add support for mtk iommu generation one HW

Mediatek SoC's M4U has two generations of HW architcture. Generation one
uses flat, one layer pagetable, and was shipped with ARM architecture, it
only supports 4K size page mapping. MT2701 SoC uses this generation one
m4u HW. Generation two uses the ARM short-descriptor translation table
format for address translation, and was shipped with ARM64 architecture,
MT8173 uses this generation two m4u HW. All the two generation iommu HW
only have one iommu domain, and all its iommu clients share the same
iova address.

These two generation m4u HW have slit different register groups and
register offset, but most register names are the same. This patch add iommu
support for mediatek SoC mt2701.

Signed-off-by: Honghui Zhang <honghui.zhang@mediatek.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/Kconfig
drivers/iommu/Makefile
drivers/iommu/mtk_iommu_v1.c [new file with mode: 0644]