memory: tegra: Add memory controller channels support
authorAshish Mhetre <amhetre@nvidia.com>
Fri, 6 May 2022 13:23:11 +0000 (15:23 +0200)
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Mon, 9 May 2022 08:46:11 +0000 (10:46 +0200)
commita7cffa11fa9232eabf0c4f441dc53002978ab526
tree4ccdc2a99c2875162eb8ec1dfe14afca5273bc93
parentcc3d696c01d83dfb2009a2d7ffbb330d2b506ac9
memory: tegra: Add memory controller channels support

From Tegra186 onwards, the memory controller supports multiple channels.
Add support for mapping the address spaces of these channels and specify
the number of channels supported by Tegra186, Tegra194 and Tegra234.

In case of old bindings, channels won't be present. If channels are not
present then print a warning and continue so that backward compatibility
will be preserved in driver.

During error interrupts from memory controller, appropriate registers
from these channels need to be accessed for logging error info.

Signed-off-by: Ashish Mhetre <amhetre@nvidia.com>
Reviewed-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20220506132312.3910637-4-thierry.reding@gmail.com
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
drivers/memory/tegra/tegra186.c
drivers/memory/tegra/tegra194.c
drivers/memory/tegra/tegra234.c
include/soc/tegra/mc.h