devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bhadram Varka <vbhadram@nvidia.com>
To: <netdev@vger.kernel.org>, <devicetree@vger.kernel.org>,
	<linux-tegra@vger.kernel.org>
Cc: <robh+dt@kernel.org>, <krzysztof.kozlowski+dt@linaro.org>,
	<thierry.reding@gmail.com>, <jonathanh@nvidia.com>,
	<kuba@kernel.org>, <catalin.marinas@arm.com>, <will@kernel.org>,
	<pabeni@redhat.com>, <davem@davemloft.net>, <edumazet@google.com>,
	Thierry Reding <treding@nvidia.com>,
	Bhadram Varka <vbhadram@nvidia.com>
Subject: [PATCH net-next v2 4/9] memory: tegra: Add MGBE memory clients for Tegra234
Date: Wed, 6 Jul 2022 08:42:54 +0530	[thread overview]
Message-ID: <20220706031259.53746-5-vbhadram@nvidia.com> (raw)
In-Reply-To: <20220706031259.53746-1-vbhadram@nvidia.com>

From: Thierry Reding <treding@nvidia.com>

Tegra234 has multiple network interfaces with each their own memory
clients and stream IDs to allow for proper isolation.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Bhadram Varka <vbhadram@nvidia.com>
---
 drivers/memory/tegra/tegra234.c | 80 +++++++++++++++++++++++++++++++++
 1 file changed, 80 insertions(+)

diff --git a/drivers/memory/tegra/tegra234.c b/drivers/memory/tegra/tegra234.c
index e23ebd421f17..a9e8fd99730f 100644
--- a/drivers/memory/tegra/tegra234.c
+++ b/drivers/memory/tegra/tegra234.c
@@ -11,6 +11,76 @@
 
 static const struct tegra_mc_client tegra234_mc_clients[] = {
 	{
+		.id = TEGRA234_MEMORY_CLIENT_MGBEARD,
+		.name = "mgbeard",
+		.sid = TEGRA234_SID_MGBE,
+		.regs = {
+			.sid = {
+				.override = 0x2c0,
+				.security = 0x2c4,
+			},
+		},
+	}, {
+		.id = TEGRA234_MEMORY_CLIENT_MGBEBRD,
+		.name = "mgbebrd",
+		.sid = TEGRA234_SID_MGBE_VF1,
+		.regs = {
+			.sid = {
+				.override = 0x2c8,
+				.security = 0x2cc,
+			},
+		},
+	}, {
+		.id = TEGRA234_MEMORY_CLIENT_MGBECRD,
+		.name = "mgbecrd",
+		.sid = TEGRA234_SID_MGBE_VF2,
+		.regs = {
+			.sid = {
+				.override = 0x2d0,
+				.security = 0x2d4,
+			},
+		},
+	}, {
+		.id = TEGRA234_MEMORY_CLIENT_MGBEDRD,
+		.name = "mgbedrd",
+		.sid = TEGRA234_SID_MGBE_VF3,
+		.regs = {
+			.sid = {
+				.override = 0x2d8,
+				.security = 0x2dc,
+			},
+		},
+	}, {
+		.id = TEGRA234_MEMORY_CLIENT_MGBEAWR,
+		.name = "mgbeawr",
+		.sid = TEGRA234_SID_MGBE,
+		.regs = {
+			.sid = {
+				.override = 0x2e0,
+				.security = 0x2e4,
+			},
+		},
+	}, {
+		.id = TEGRA234_MEMORY_CLIENT_MGBEBWR,
+		.name = "mgbebwr",
+		.sid = TEGRA234_SID_MGBE_VF1,
+		.regs = {
+			.sid = {
+				.override = 0x2f8,
+				.security = 0x2fc,
+			},
+		},
+	}, {
+		.id = TEGRA234_MEMORY_CLIENT_MGBECWR,
+		.name = "mgbecwr",
+		.sid = TEGRA234_SID_MGBE_VF2,
+		.regs = {
+			.sid = {
+				.override = 0x308,
+				.security = 0x30c,
+			},
+		},
+	}, {
 		.id = TEGRA234_MEMORY_CLIENT_SDMMCRAB,
 		.name = "sdmmcrab",
 		.sid = TEGRA234_SID_SDMMC4,
@@ -20,6 +90,16 @@ static const struct tegra_mc_client tegra234_mc_clients[] = {
 				.security = 0x31c,
 			},
 		},
+	}, {
+		.id = TEGRA234_MEMORY_CLIENT_MGBEDWR,
+		.name = "mgbedwr",
+		.sid = TEGRA234_SID_MGBE_VF3,
+		.regs = {
+			.sid = {
+				.override = 0x328,
+				.security = 0x32c,
+			},
+		},
 	}, {
 		.id = TEGRA234_MEMORY_CLIENT_SDMMCWAB,
 		.name = "sdmmcwab",
-- 
2.17.1


  parent reply	other threads:[~2022-07-06  3:13 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-06  3:12 [PATCH net-next v2 0/9] tegra: Add support for MGBE controller Bhadram Varka
2022-07-06  3:12 ` [PATCH net-next v2 1/9] dt-bindings: power: Add Tegra234 MGBE power domains Bhadram Varka
2022-07-06  7:35   ` Krzysztof Kozlowski
2022-07-06  7:40     ` Krzysztof Kozlowski
2022-07-06  3:12 ` [PATCH net-next v2 2/9] dt-bindings: Add Tegra234 MGBE clocks and resets Bhadram Varka
2022-07-06  7:36   ` Krzysztof Kozlowski
2022-07-06  3:12 ` [PATCH net-next v2 3/9] dt-bindings: memory: Add Tegra234 MGBE memory clients Bhadram Varka
2022-07-06  7:37   ` Krzysztof Kozlowski
2022-07-06  3:12 ` Bhadram Varka [this message]
2022-07-06  7:38   ` [PATCH net-next v2 4/9] memory: tegra: Add MGBE memory clients for Tegra234 Krzysztof Kozlowski
2022-07-06  3:12 ` [PATCH net-next v2 5/9] dt-bindings: net: Add Tegra234 MGBE Bhadram Varka
2022-07-06  7:39   ` Krzysztof Kozlowski
2022-07-06  3:12 ` [PATCH net-next v2 6/9] arm64: tegra: Add MGBE nodes on Tegra234 Bhadram Varka
2022-07-06  3:12 ` [PATCH net-next v2 7/9] arm64: tegra: Enable MGBE on Jetson AGX Orin Developer Kit Bhadram Varka
2022-07-06  3:12 ` [PATCH net-next v2 8/9] arm64: defconfig: Enable Tegra MGBE driver Bhadram Varka
2022-07-06  3:12 ` [PATCH net-next v2 9/9] stmmac: tegra: Add MGBE support Bhadram Varka
2022-07-06  7:37 ` [PATCH net-next v2 0/9] tegra: Add support for MGBE controller Krzysztof Kozlowski
2022-07-06 20:49 ` Thierry Reding

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220706031259.53746-5-vbhadram@nvidia.com \
    --to=vbhadram@nvidia.com \
    --cc=catalin.marinas@arm.com \
    --cc=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=edumazet@google.com \
    --cc=jonathanh@nvidia.com \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=kuba@kernel.org \
    --cc=linux-tegra@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=robh+dt@kernel.org \
    --cc=thierry.reding@gmail.com \
    --cc=treding@nvidia.com \
    --cc=will@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).