All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thierry Reding <thierry.reding@gmail.com>
To: Tom Warren <twarren@nvidia.com>
Cc: Simon Glass <sjg@chromium.org>, u-boot@lists.denx.de
Subject: [PATCH 7/9] ARM: tegra: Support EMC frequency tables on Tegra210
Date: Fri,  3 Sep 2021 15:16:23 +0200	[thread overview]
Message-ID: <20210903131625.2153838-8-thierry.reding@gmail.com> (raw)
In-Reply-To: <20210903131625.2153838-1-thierry.reding@gmail.com>

From: Thierry Reding <treding@nvidia.com>

The EMC frequency tables are created from a training sequence performed
during early boot and passed in via a reserved memory region by nvtboot.
Copy this table to the kernel DTB so that the kernel can use it to scale
the EMC frequency at runtime.

Note that early bootloaders store the EMC table at an address that
currently intersects with the load address of the initial ramdisk. In
order to avoid copying the table to a different address, simply change
the load address for the initial ramdisk in U-Boot.

Signed-off-by: Thierry Reding <treding@nvidia.com>
---
 board/nvidia/p2371-2180/p2371-2180.c | 1 +
 board/nvidia/p3450-0000/p3450-0000.c | 1 +
 include/configs/tegra210-common.h    | 2 +-
 3 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/board/nvidia/p2371-2180/p2371-2180.c b/board/nvidia/p2371-2180/p2371-2180.c
index f5126c552b00..cd5dc2de629e 100644
--- a/board/nvidia/p2371-2180/p2371-2180.c
+++ b/board/nvidia/p2371-2180/p2371-2180.c
@@ -183,6 +183,7 @@ static void ft_carveout_setup(void *fdt)
 	static const char * const nodes[] = {
 		"/host1x@50000000/dc@54200000",
 		"/host1x@50000000/dc@54240000",
+		"/external-memory-controller@7001b000",
 	};
 	unsigned int i;
 	int err;
diff --git a/board/nvidia/p3450-0000/p3450-0000.c b/board/nvidia/p3450-0000/p3450-0000.c
index 2c709d9b8117..dd408d2ebbf8 100644
--- a/board/nvidia/p3450-0000/p3450-0000.c
+++ b/board/nvidia/p3450-0000/p3450-0000.c
@@ -183,6 +183,7 @@ static void ft_carveout_setup(void *fdt)
 	static const char * const nodes[] = {
 		"/host1x@50000000/dc@54200000",
 		"/host1x@50000000/dc@54240000",
+		"/external-memory-controller@7001b000",
 	};
 	unsigned int i;
 	int err;
diff --git a/include/configs/tegra210-common.h b/include/configs/tegra210-common.h
index 2226effe16ab..c38d0f831835 100644
--- a/include/configs/tegra210-common.h
+++ b/include/configs/tegra210-common.h
@@ -48,7 +48,7 @@
 	"kernel_addr_r=" __stringify(CONFIG_LOADADDR) "\0" \
 	"fdtfile=" FDTFILE "\0" \
 	"fdt_addr_r=0x83000000\0" \
-	"ramdisk_addr_r=0x83200000\0"
+	"ramdisk_addr_r=0x83420000\0"
 
 /* For USB EHCI controller */
 #define CONFIG_EHCI_IS_TDI
-- 
2.33.0


  parent reply	other threads:[~2021-09-03 13:17 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-03 13:16 [PATCH 0/9] ARM: tegra: Support EMC frequency tables on Tegra210 Thierry Reding
2021-09-03 13:16 ` [PATCH 1/9] fdtdec: Allow using fdtdec_get_carveout() in loops Thierry Reding
2021-09-30  4:09   ` Simon Glass
2021-09-03 13:16 ` [PATCH 2/9] fdtdec: Support retrieving the name of a carveout Thierry Reding
2021-09-30  4:09   ` Simon Glass
2021-09-03 13:16 ` [PATCH 3/9] fdtdec: Support compatible string list for reserved memory Thierry Reding
2021-09-30  4:09   ` Simon Glass
2021-09-03 13:16 ` [PATCH 4/9] fdtdec: Reorder fdtdec_set_carveout() parameters for consistency Thierry Reding
2021-09-30  4:09   ` Simon Glass
2021-09-03 13:16 ` [PATCH 5/9] fdtdec: Support reserved-memory flags Thierry Reding
2021-09-30  4:09   ` Simon Glass
2021-09-03 13:16 ` [PATCH 6/9] ARM: tegra: Support multiple reserved memory regions Thierry Reding
2021-09-30  4:08   ` Simon Glass
2021-09-03 13:16 ` Thierry Reding [this message]
2021-09-30  4:08   ` [PATCH 7/9] ARM: tegra: Support EMC frequency tables on Tegra210 Simon Glass
2021-09-03 13:16 ` [PATCH 8/9] ARM: tegra: Refactor DT update helpers Thierry Reding
2021-09-30  4:08   ` Simon Glass
2021-09-03 13:16 ` [PATCH 9/9] ARM: tegra: Copy memory-region-names property Thierry Reding
2021-09-30  4:08   ` Simon Glass

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=20210903131625.2153838-8-thierry.reding@gmail.com \
    --to=thierry.reding@gmail.com \
    --cc=sjg@chromium.org \
    --cc=twarren@nvidia.com \
    --cc=u-boot@lists.denx.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.