Skip to content

Commit ec4e1f0

Browse files
digetxthierryreding
authored andcommitted
memory: tegra: Add Tegra30 memory controller hot resets
Define the table of memory controller hot resets for Tegra30. Signed-off-by: Dmitry Osipenko <digetx@gmail.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
1 parent cb55775 commit ec4e1f0

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

‎drivers/memory/tegra/tegra30.c‎

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -960,6 +960,36 @@ static const struct tegra_smmu_soc tegra30_smmu_soc = {
960960
.num_asids = 4,
961961
};
962962

963+
#define TEGRA30_MC_RESET(_name, _control, _status, _bit) \
964+
{ \
965+
.name = #_name, \
966+
.id = TEGRA30_MC_RESET_##_name, \
967+
.control = _control, \
968+
.status = _status, \
969+
.bit = _bit, \
970+
}
971+
972+
static const struct tegra_mc_reset tegra30_mc_resets[] = {
973+
TEGRA30_MC_RESET(AFI, 0x200, 0x204, 0),
974+
TEGRA30_MC_RESET(AVPC, 0x200, 0x204, 1),
975+
TEGRA30_MC_RESET(DC, 0x200, 0x204, 2),
976+
TEGRA30_MC_RESET(DCB, 0x200, 0x204, 3),
977+
TEGRA30_MC_RESET(EPP, 0x200, 0x204, 4),
978+
TEGRA30_MC_RESET(2D, 0x200, 0x204, 5),
979+
TEGRA30_MC_RESET(HC, 0x200, 0x204, 6),
980+
TEGRA30_MC_RESET(HDA, 0x200, 0x204, 7),
981+
TEGRA30_MC_RESET(ISP, 0x200, 0x204, 8),
982+
TEGRA30_MC_RESET(MPCORE, 0x200, 0x204, 9),
983+
TEGRA30_MC_RESET(MPCORELP, 0x200, 0x204, 10),
984+
TEGRA30_MC_RESET(MPE, 0x200, 0x204, 11),
985+
TEGRA30_MC_RESET(3D, 0x200, 0x204, 12),
986+
TEGRA30_MC_RESET(3D2, 0x200, 0x204, 13),
987+
TEGRA30_MC_RESET(PPCS, 0x200, 0x204, 14),
988+
TEGRA30_MC_RESET(SATA, 0x200, 0x204, 15),
989+
TEGRA30_MC_RESET(VDE, 0x200, 0x204, 16),
990+
TEGRA30_MC_RESET(VI, 0x200, 0x204, 17),
991+
};
992+
963993
const struct tegra_mc_soc tegra30_mc_soc = {
964994
.clients = tegra30_mc_clients,
965995
.num_clients = ARRAY_SIZE(tegra30_mc_clients),
@@ -969,4 +999,7 @@ const struct tegra_mc_soc tegra30_mc_soc = {
969999
.smmu = &tegra30_smmu_soc,
9701000
.intmask = MC_INT_INVALID_SMMU_PAGE | MC_INT_SECURITY_VIOLATION |
9711001
MC_INT_DECERR_EMEM,
1002+
.reset_ops = &terga_mc_reset_ops_common,
1003+
.resets = tegra30_mc_resets,
1004+
.num_resets = ARRAY_SIZE(tegra30_mc_resets),
9721005
};

0 commit comments

Comments
 (0)