Skip to content

Commit cc3d696

Browse files
pujarskrzk
authored andcommitted
memory: tegra: Add APE memory clients for Tegra234
Add the memory clients on Tegra234 which are needed for APE DMA to properly use the SMMU. Signed-off-by: Sameer Pujar <spujar@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com> Link: https://lore.kernel.org/r/20220506132312.3910637-3-thierry.reding@gmail.com Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
1 parent 72c81bb commit cc3d696

1 file changed

Lines changed: 21 additions & 1 deletion

File tree

drivers/memory/tegra/tegra234.c

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: GPL-2.0-only
22
/*
3-
* Copyright (C) 2021 NVIDIA CORPORATION. All rights reserved.
3+
* Copyright (C) 2021-2022, NVIDIA CORPORATION. All rights reserved.
44
*/
55

66
#include <soc/tegra/mc.h>
@@ -70,6 +70,26 @@ static const struct tegra_mc_client tegra234_mc_clients[] = {
7070
.security = 0x4b4,
7171
},
7272
},
73+
}, {
74+
.id = TEGRA234_MEMORY_CLIENT_APEDMAR,
75+
.name = "apedmar",
76+
.sid = TEGRA234_SID_APE,
77+
.regs = {
78+
.sid = {
79+
.override = 0x4f8,
80+
.security = 0x4fc,
81+
},
82+
},
83+
}, {
84+
.id = TEGRA234_MEMORY_CLIENT_APEDMAW,
85+
.name = "apedmaw",
86+
.sid = TEGRA234_SID_APE,
87+
.regs = {
88+
.sid = {
89+
.override = 0x500,
90+
.security = 0x504,
91+
},
92+
},
7393
},
7494
};
7595

0 commit comments

Comments
 (0)