From patchwork Mon Apr 2 23:18:56 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 150294 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id D5E77B6FCC for ; Tue, 3 Apr 2012 09:23:16 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 023AA28222; Tue, 3 Apr 2012 01:21:46 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6Cn8ItFhSngw; Tue, 3 Apr 2012 01:21:45 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id EF80928223; Tue, 3 Apr 2012 01:20:03 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 62D1428180 for ; Tue, 3 Apr 2012 01:19:47 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AOZFr6-2xZzV for ; Tue, 3 Apr 2012 01:19:45 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-vx0-f202.google.com (mail-vx0-f202.google.com [209.85.220.202]) by theia.denx.de (Postfix) with ESMTPS id 0CE20281A7 for ; Tue, 3 Apr 2012 01:19:35 +0200 (CEST) Received: by vcbfk26 with SMTP id fk26so373481vcb.3 for ; Mon, 02 Apr 2012 16:19:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=ic3XRxzQri+9JlN0qzJrSw8QyveP7ZI5J2trAI6xq0g=; b=ScxYBospANRHF6Dg7vExfTket1Lg3xiiiIbsz4r9qj4SAG7aOV/aXFPzCeDOt7f0FU vxtol+laIUbotXWrSI43HdZr+jVzX4q+3WVnP8DHYLTJZ9ZosFbQCWh9k26KWrfG9PUG Z0ocPmedtYZmXviXjMyMMctov1CcKxygk2ywEnRgmrQ2Emx73uCUZ0mC6IMfINDxNoeR +MPTy3UluOdHLxtFzgga0hIZVTc6OilELaWYVLTP0Ki/w0a0nUaqdUptO8zdnlmvE5JB C4poFNt3HZE08fzPxBMGpAD5Eky21tK8jRvkrOisd9/mLUuU4ErHcZerA8GPJV8d2e7k zk0w== Received: by 10.236.174.9 with SMTP id w9mr12876212yhl.9.1333408774291; Mon, 02 Apr 2012 16:19:34 -0700 (PDT) Received: by 10.236.174.9 with SMTP id w9mr12876182yhl.9.1333408774178; Mon, 02 Apr 2012 16:19:34 -0700 (PDT) Received: from wpzn3.hot.corp.google.com (216-239-44-65.google.com [216.239.44.65]) by gmr-mx.google.com with ESMTPS id g49si12284690yhe.6.2012.04.02.16.19.34 (version=TLSv1/SSLv3 cipher=AES128-SHA); Mon, 02 Apr 2012 16:19:34 -0700 (PDT) Received: from sglass.mtv.corp.google.com (dhcp-172-22-162-38.mtv.corp.google.com [172.22.162.38]) by wpzn3.hot.corp.google.com (Postfix) with ESMTP id DF91910004D; Mon, 2 Apr 2012 16:19:33 -0700 (PDT) Received: by sglass.mtv.corp.google.com (Postfix, from userid 121222) id C1B00140A15; Mon, 2 Apr 2012 16:19:33 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Date: Mon, 2 Apr 2012 16:18:56 -0700 Message-Id: <1333408743-28720-17-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 1.7.7.3 In-Reply-To: <1333408743-28720-1-git-send-email-sjg@chromium.org> References: <1333408743-28720-1-git-send-email-sjg@chromium.org> X-Gm-Message-State: ALoCoQmOmK7l5WQA69fMeYM4UVerNIVkxoimoqS9Gx3mM2tIbPuDIFpaRqhqmFt0yEtZ+l5flJnLzBrccI6ixdoV70rCUyqlI3G8YuTZcROWbeMTTZL1t9kYTB9+4KcU9DZuW2D68VsObuPYNeo9hVYX7D9N/YotFn7DE4aYK1eooN6FBBW3feM= Cc: Stephen Warren , Tom Warren Subject: [U-Boot] [PATCH v3 16/23] tegra: Setup PMC scratch info from ap20 setup X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de From: Yen Lin Save SDRAM parameters into the warmboot scratch registers Signed-off-by: Simon Glass Signed-off-by: Yen Lin --- arch/arm/cpu/armv7/tegra2/ap20.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/arch/arm/cpu/armv7/tegra2/ap20.c b/arch/arm/cpu/armv7/tegra2/ap20.c index 150fbfd..698bfd0 100644 --- a/arch/arm/cpu/armv7/tegra2/ap20.c +++ b/arch/arm/cpu/armv7/tegra2/ap20.c @@ -31,6 +31,7 @@ #include #include #include +#include #include int tegra_get_chip_type(void) @@ -322,6 +323,11 @@ void init_pmc_scratch(void) /* ODMDATA is for kernel use to determine RAM size, LP config, etc. */ writel(CONFIG_SYS_BOARD_ODMDATA, &pmc->pmc_scratch20); + +#ifdef CONFIG_TEGRA2_LP0 + /* save Sdram params to PMC 2, 4, and 24 for WB0 */ + warmboot_save_sdram_params(); +#endif } void tegra2_start(void)