diff options
author | Robin Murphy <robin.murphy@arm.com> | 2019-08-15 21:37:36 +0300 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2019-08-19 18:52:48 +0300 |
commit | 62b993a36e4c2d60669beb3d1afe038ed44a41ec (patch) | |
tree | 13a79d3c7e52fb7112c0321fa5d6e7aab4edc2fc /drivers/iommu/arm-smmu.h | |
parent | 3995e18689fda2434863bdf2a8cd19acea4e61f0 (diff) | |
download | linux-62b993a36e4c2d60669beb3d1afe038ed44a41ec.tar.xz |
iommu/arm-smmu: Add reset implementation hook
Reset is an activity rife with implementation-defined poking. Add a
corresponding hook, and use it to encapsulate the existing MMU-500
details.
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'drivers/iommu/arm-smmu.h')
-rw-r--r-- | drivers/iommu/arm-smmu.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iommu/arm-smmu.h b/drivers/iommu/arm-smmu.h index f4e90f33fce2..ddafe872a396 100644 --- a/drivers/iommu/arm-smmu.h +++ b/drivers/iommu/arm-smmu.h @@ -288,6 +288,7 @@ struct arm_smmu_impl { void (*write_reg64)(struct arm_smmu_device *smmu, int page, int offset, u64 val); int (*cfg_probe)(struct arm_smmu_device *smmu); + int (*reset)(struct arm_smmu_device *smmu); }; static inline void __iomem *arm_smmu_page(struct arm_smmu_device *smmu, int n) |