iommu/arm-smmu: Abstract GR0 accesses
authorRobin Murphy <robin.murphy@arm.com>
Thu, 15 Aug 2019 18:37:31 +0000 (19:37 +0100)
committerWill Deacon <will@kernel.org>
Mon, 19 Aug 2019 15:52:47 +0000 (16:52 +0100)
commit00320ce6505821b405992c241ebe4c79f178bf8f
treef7e756a9fefc2849a4859c2744782be41d1cbfd0
parent19713fd40df8e65759e836129671be5f6f21c626
iommu/arm-smmu: Abstract GR0 accesses

Clean up the remaining accesses to GR0 registers, so that everything is
now neatly abstracted. This folds up the Non-Secure alias quirk as the
first step towards moving it out of the way entirely. Although GR0 does
technically contain some 64-bit registers (sGFAR and the weird SMMUv2
HYPC and MONC stuff), they're not ones we have any need to access.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/arm-smmu.c