iommu/ipmmu-vmsa: Add helper functions for "uTLB" registers
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Wed, 6 Nov 2019 02:35:49 +0000 (11:35 +0900)
committerJoerg Roedel <jroedel@suse.de>
Mon, 11 Nov 2019 14:06:27 +0000 (15:06 +0100)
commit3667c9978b2911dc1ded77f5971df477885409c4
treed6b7d0cdfc28075a08f03a3b56686fa8e04c0ab3
parent3dc28d9f59eaae41461542b27afe70339347ebb3
iommu/ipmmu-vmsa: Add helper functions for "uTLB" registers

Since we will have changed memory mapping of the IPMMU in the future,
This patch adds helper functions ipmmu_utlb_reg() and
ipmmu_imu{asid,ctr}_write() for "uTLB" registers. No behavior change.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/ipmmu-vmsa.c