iommu/arm-smmu: Support Tegra234 SMMU
authorThierry Reding <treding@nvidia.com>
Fri, 29 Apr 2022 08:22:43 +0000 (10:22 +0200)
committerWill Deacon <will@kernel.org>
Fri, 6 May 2022 15:29:28 +0000 (16:29 +0100)
Allow the NVIDIA-specific ARM SMMU implementation to bind to the SMMU
instances found on Tegra234.

Acked-by: Robin Murphy <robin.murphy@arm.com>
Acked-by: Will Deacon <will@kernel.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20220429082243.496000-4-thierry.reding@gmail.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/arm/arm-smmu/arm-smmu-impl.c

index 2c25cce3806032486c4957c2bdca6e03839fe870..658f3cc832781b0d7134dd1471568e3f4e7c732e 100644 (file)
@@ -211,7 +211,8 @@ struct arm_smmu_device *arm_smmu_impl_init(struct arm_smmu_device *smmu)
        if (of_property_read_bool(np, "calxeda,smmu-secure-config-access"))
                smmu->impl = &calxeda_impl;
 
-       if (of_device_is_compatible(np, "nvidia,tegra194-smmu") ||
+       if (of_device_is_compatible(np, "nvidia,tegra234-smmu") ||
+           of_device_is_compatible(np, "nvidia,tegra194-smmu") ||
            of_device_is_compatible(np, "nvidia,tegra186-smmu"))
                return nvidia_smmu_impl_init(smmu);