OSDN Git Service

memory: tegra: Squash tegra20-mc into common tegra-mc driver
authorDmitry Osipenko <digetx@gmail.com>
Mon, 9 Apr 2018 19:28:31 +0000 (22:28 +0300)
committerThierry Reding <treding@nvidia.com>
Mon, 30 Apr 2018 08:10:00 +0000 (10:10 +0200)
commita8d502fd33484ed8c4acc6acae73918844ca6811
treec25a45b7d295e76825ccf602c41eebf7865cea9f
parent85dce8918f90f71fc86ae822dd8cf4b738274f7e
memory: tegra: Squash tegra20-mc into common tegra-mc driver

Tegra30+ has some minor differences in registers / bits layout compared
to Tegra20. Let's squash Tegra20 driver into the common tegra-mc driver
in a preparation for the upcoming MC hot reset controls implementation,
avoiding code duplication.

Note that this currently doesn't report the value of MC_GART_ERROR_REQ
because it is located within the GART register area and cannot be safely
accessed from the MC driver (this happens to work only by accident). The
proper solution is to integrate the GART driver with the MC driver, much
like is done for the Tegra SMMU, but that is an invasive change and will
be part of a separate patch series.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/memory/Kconfig
drivers/memory/Makefile
drivers/memory/tegra/Makefile
drivers/memory/tegra/mc.c
drivers/memory/tegra/mc.h
drivers/memory/tegra/tegra20.c [new file with mode: 0644]
drivers/memory/tegra20-mc.c [deleted file]
include/soc/tegra/mc.h