memory: tegra: Unify struct tegra_mc across SoC generations
authorThierry Reding <treding@nvidia.com>
Wed, 2 Jun 2021 16:32:52 +0000 (18:32 +0200)
committerKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Thu, 3 Jun 2021 19:49:40 +0000 (21:49 +0200)
commite899993845e60cc24d8e667a312eaa03a05d21ec
tree0f79a23893a68b28b62efc0ab1bd50fe5488b3a4
parent4f1ac76e5ed9436ff3cd72e308527fd1e90b193a
memory: tegra: Unify struct tegra_mc across SoC generations

As another step towards unifying both the Tegra210 (and earlier) and
Tegra186 (and later) memory controller drivers, unify the structures
that are used to represent them.

Note that this comes at a slight space penalty since some fields are
not used on all generations, but the benefits of unifying the driver
outweigh the downsides.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20210602163302.120041-3-thierry.reding@gmail.com
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
drivers/memory/tegra/tegra186.c
include/soc/tegra/mc.h