Skip to content

Commit

Permalink
memory: tegra: Add APE memory clients for Tegra234
Browse files Browse the repository at this point in the history
Add the memory clients on Tegra234 which are needed for APE
DMA to properly use the SMMU.

Signed-off-by: Sameer Pujar <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Krzysztof Kozlowski <[email protected]>
  • Loading branch information
pujars authored and krzk committed May 9, 2022
1 parent 72c81bb commit cc3d696
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion drivers/memory/tegra/tegra234.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (C) 2021 NVIDIA CORPORATION. All rights reserved.
* Copyright (C) 2021-2022, NVIDIA CORPORATION. All rights reserved.
*/

#include <soc/tegra/mc.h>
Expand Down Expand Up @@ -70,6 +70,26 @@ static const struct tegra_mc_client tegra234_mc_clients[] = {
.security = 0x4b4,
},
},
}, {
.id = TEGRA234_MEMORY_CLIENT_APEDMAR,
.name = "apedmar",
.sid = TEGRA234_SID_APE,
.regs = {
.sid = {
.override = 0x4f8,
.security = 0x4fc,
},
},
}, {
.id = TEGRA234_MEMORY_CLIENT_APEDMAW,
.name = "apedmaw",
.sid = TEGRA234_SID_APE,
.regs = {
.sid = {
.override = 0x500,
.security = 0x504,
},
},
},
};

Expand Down

0 comments on commit cc3d696

Please sign in to comment.