[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220329044436.27732-1-amhetre@nvidia.com>
Date: Tue, 29 Mar 2022 10:14:36 +0530
From: Ashish Mhetre <amhetre@...dia.com>
To: <thierry.reding@...il.com>, <jonathanh@...dia.com>,
<vdumpa@...dia.com>, <will@...nel.org>, <robin.murphy@....com>,
<joro@...tes.org>, <linux-arm-kernel@...ts.infradead.org>,
<iommu@...ts.linux-foundation.org>, <linux-kernel@...r.kernel.org>,
<linux-tegra@...r.kernel.org>
CC: <Snikam@...dia.com>, <mperttunen@...dia.com>,
Ashish Mhetre <amhetre@...dia.com>
Subject: [Patch v1] iommu: arm-smmu: Use arm-smmu-nvidia impl for Tegra234
Tegra234 has 2 pairs of ARM MMU-500 instances. Each pair is used
together and should be programmed identically.
Add compatible string of Tegra234 iommu nodes in arm_smmu_impl_init()
so that arm-smmu-nvidia implementation will be used for programming
these SMMU instances.
Signed-off-by: Ashish Mhetre <amhetre@...dia.com>
---
drivers/iommu/arm/arm-smmu/arm-smmu-impl.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/iommu/arm/arm-smmu/arm-smmu-impl.c b/drivers/iommu/arm/arm-smmu/arm-smmu-impl.c
index 2c25cce38060..658f3cc83278 100644
--- a/drivers/iommu/arm/arm-smmu/arm-smmu-impl.c
+++ b/drivers/iommu/arm/arm-smmu/arm-smmu-impl.c
@@ -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);
--
2.17.1
Powered by blists - more mailing lists