soc/tegra: pmc: Update address mapping sequence for PMC apertures
authorPetlozu Pravareshwar <petlozup@nvidia.com>
Sun, 11 Feb 2024 17:17:25 +0000 (17:17 +0000)
committerThierry Reding <treding@nvidia.com>
Fri, 16 Feb 2024 11:17:54 +0000 (12:17 +0100)
commit6f4429e21a7fef60df80c567eed0af189e2c02c7
tree4db0d7bfffc31ffe2e595589b10a3d66435cb63b
parent4acd21a45c1446277e2abaece97d7fa7c2e692a9
soc/tegra: pmc: Update address mapping sequence for PMC apertures

On Tegra SoCs prior to Tegra186, PMC has single address range only.
Starting from and after Tegra186, PMC has additional address ranges
apart from base address range. Currently in PMC driver, we try to
map these additional address ranges on all SoCs and if we fail then
we assume that the range is not valid for an SoC. This change makes
it more explicit on which address ranges are expected to be present
on which SoCs and maps the additional address ranges only on SoCs
from and after Tegra186.

Signed-off-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/soc/tegra/pmc.c