]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit004d3a78a5f3283e052e4c671d4e35acdec9d33b
tree4ccdc2a99c2875162eb8ec1dfe14afca5273bc93
parenta97bca925a93e7dce4851d70aad60794d26f2b05
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