iommu/rockchip: Reconstruct to support multi slaves
authorZhengShunQian <zhengsq@rock-chips.com>
Tue, 19 Jan 2016 07:03:00 +0000 (15:03 +0800)
committerJoerg Roedel <jroedel@suse.de>
Fri, 29 Jan 2016 11:26:06 +0000 (12:26 +0100)
commitcd6438c5f8446691afa4829fe1a9d7b656204f11
tree6285d2c90cca63a6a6b2d68a766ce6bb20510567
parent92e963f50fc74041b5e9e744c330dca48e04f08d
iommu/rockchip: Reconstruct to support multi slaves

There are some IPs, such as video encoder/decoder, contains 2 slave iommus,
one for reading and the other for writing. They share the same irq and
clock with master.

This patch reconstructs to support this case by making them share the same
Page Directory, Page Tables and even the register operations.
That means every instruction to the reading MMU registers would be
duplicated to the writing MMU and vice versa.

Signed-off-by: ZhengShunQian <zhengsq@rock-chips.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/rockchip-iommu.c