iommu/arm-smmu: tegra: Detect number of instances at runtime
authorThierry Reding <treding@nvidia.com>
Thu, 3 Jun 2021 16:46:27 +0000 (18:46 +0200)
committerKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Fri, 11 Jun 2021 06:44:52 +0000 (08:44 +0200)
commit7ecbf253f8d64c08de28d16a66e3abbe873f6c9f
tree9a302e628d174d6207b67fe289a0c396e93d06bc
parent4287861dca9d77490ee50de42aa3ada92da86c9d
iommu/arm-smmu: tegra: Detect number of instances at runtime

Parse the reg property in device tree and detect the number of instances
represented by a device tree node. This is subsequently needed in order
to support single-instance SMMUs with the Tegra implementation because
additional programming is needed to properly configure the SID override
registers in the memory controller.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20210603164632.1000458-5-thierry.reding@gmail.com
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
drivers/iommu/arm/arm-smmu/arm-smmu-nvidia.c