From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B0379C433EF for ; Fri, 3 Sep 2021 13:17:43 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 356FD60FC0 for ; Fri, 3 Sep 2021 13:17:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 356FD60FC0 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5A96D834C0; Fri, 3 Sep 2021 15:17:14 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="C1k1+fno"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AB92F83586; Fri, 3 Sep 2021 15:17:04 +0200 (CEST) Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 55E7C83578 for ; Fri, 3 Sep 2021 15:16:49 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=thierry.reding@gmail.com Received: by mail-wm1-x32c.google.com with SMTP id e26so3498582wmk.2 for ; Fri, 03 Sep 2021 06:16:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=0q5CWfpZ6r1sk1Jx8bR8j+ZUsK/WVX/IJ5fsYBcfRqU=; b=C1k1+fnoFn8Bd8DKC4aNqMyyqDZmrQ+gCaY8ZkHiZVC00wZhfqugIz+x8V7G9fQgo5 WjdrRBJH6dYo0KYAo9oVyAuwSRnc8cYUEUnI6PlTaOHQahQ/6THQfnpaePqCpUePepZv 23WxM0o0qgA4rzIwu0L2JdIPIcFjVggjoacyPMEP5CS/w3dWIMMJehMIYjLI83hL5ne+ +En8LnK+P218LyBPjlO4pnnEftFeV7T1XOxYNOkboMparF7dzsXqLoj5hzdu8pCeT27p rhDLU9mWmmgPiS8/myVIAzYd/vS+ELAAqjSvgCw32rmsYenv+DRgwW6nCDGOvk8oVGr5 yVhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=0q5CWfpZ6r1sk1Jx8bR8j+ZUsK/WVX/IJ5fsYBcfRqU=; b=Kefp6ynTD47vFeEod9MLzFCgkYwEpOMCeEtqn9bHNyKHTVXjSwkf5vFT2E5YNCdZtm y79LXY+ScMMxAC+qKrsfhXW1N47+XqbcoSK2p6miMOSY/p8KCeQvN5l1dCdev1DKdrVP G5jwR+qzKKphkfgL4YysUyFKxn+bK4E5dqumDVNhcKazxl1tGzIhLEeIGdg2c/RSBQ5S jRacJN3BVCWJRsWZOkyxwuQ//x/AQANaTt90iVcMwpi7XV15Q/0wLnHMMljt2qiQS2nt lkvv5P0Azs3i9VcAzr7rkc2oROmpAC198lBZcQC4Qhyv7aZKf4TxeUYop8K0TYV9NFBe Wp3w== X-Gm-Message-State: AOAM532ale3PRpZjrhQOdO4TSb9QjUPmNpemBOHv/5VzPNRsUPV1JdYa p+1hUmqJEvlU79CwlDXNV5A= X-Google-Smtp-Source: ABdhPJwONZZNJtqEzVMTRNPhhYEeVhhQhnPql2+E+PrisT8PYOyUykAX9Ce6dFE31JDveGyh/RjbUw== X-Received: by 2002:a05:600c:1d27:: with SMTP id l39mr348984wms.146.1630675008772; Fri, 03 Sep 2021 06:16:48 -0700 (PDT) Received: from localhost ([217.111.27.204]) by smtp.gmail.com with ESMTPSA id w29sm4810649wra.88.2021.09.03.06.16.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Sep 2021 06:16:47 -0700 (PDT) From: Thierry Reding To: Tom Warren Cc: Simon Glass , 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 Message-Id: <20210903131625.2153838-8-thierry.reding@gmail.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210903131625.2153838-1-thierry.reding@gmail.com> References: <20210903131625.2153838-1-thierry.reding@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean From: Thierry Reding 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 --- 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