public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] memory: tegra: Add APE memory clients for Tegra234
@ 2022-02-18 12:16 Sameer Pujar
  2022-02-18 13:04 ` Krzysztof Kozlowski
  2022-02-21 15:41 ` kernel test robot
  0 siblings, 2 replies; 4+ messages in thread
From: Sameer Pujar @ 2022-02-18 12:16 UTC (permalink / raw)
  To: krzysztof.kozlowski, thierry.reding
  Cc: jonathanh, linux-kernel, linux-tegra, Sameer Pujar

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>
---
 Please note that this patch depends on the DT binding patches of series
 https://patchwork.kernel.org/project/alsa-devel/list/?series=609494&state=*.
 So please consider this patch once Thierry picks up DT binding patches and
 provides ACK on this.

 drivers/memory/tegra/tegra234.c | 22 +++++++++++++++++++++-
 1 file changed, 21 insertions(+), 1 deletion(-)

diff --git a/drivers/memory/tegra/tegra234.c b/drivers/memory/tegra/tegra234.c
index f7b24ba..1d19cb9 100644
--- a/drivers/memory/tegra/tegra234.c
+++ b/drivers/memory/tegra/tegra234.c
@@ -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>
@@ -170,6 +170,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,
+			},
+		},
 	},
 };
 
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-02-21 15:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-18 12:16 [PATCH] memory: tegra: Add APE memory clients for Tegra234 Sameer Pujar
2022-02-18 13:04 ` Krzysztof Kozlowski
2022-02-18 13:25   ` Thierry Reding
2022-02-21 15:41 ` kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox