diff options
author | Robin Murphy <robin.murphy@arm.com> | 2019-08-15 21:37:35 +0300 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2019-08-19 18:52:48 +0300 |
commit | 3995e18689fda2434863bdf2a8cd19acea4e61f0 (patch) | |
tree | 55fa44c6b583f74c3787892192037a62166ba034 /drivers/iommu/arm-smmu.h | |
parent | 6d7dff62afb0c7a880860148a8984d0cddc6e589 (diff) | |
download | linux-3995e18689fda2434863bdf2a8cd19acea4e61f0.tar.xz |
iommu/arm-smmu: Add configuration implementation hook
Probing the ID registers and setting up the SMMU configuration is an
area where overrides and workarounds may well be needed. Indeed, the
Cavium workaround detection lives there at the moment, so let's break
that out.
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 d4fd29d70705..f4e90f33fce2 100644 --- a/drivers/iommu/arm-smmu.h +++ b/drivers/iommu/arm-smmu.h @@ -287,6 +287,7 @@ struct arm_smmu_impl { u64 (*read_reg64)(struct arm_smmu_device *smmu, int page, int offset); void (*write_reg64)(struct arm_smmu_device *smmu, int page, int offset, u64 val); + int (*cfg_probe)(struct arm_smmu_device *smmu); }; static inline void __iomem *arm_smmu_page(struct arm_smmu_device *smmu, int n) |