From patchwork Mon Jun 27 20:39:15 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: York Sun X-Patchwork-Id: 102274 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 B231FB6F65 for ; Tue, 28 Jun 2011 06:39:31 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A239F280D2; Mon, 27 Jun 2011 22:39:29 +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 o-69he2bvTKm; Mon, 27 Jun 2011 22:39:29 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 18405280C9; Mon, 27 Jun 2011 22:39:28 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C2746280C9 for ; Mon, 27 Jun 2011 22:39:26 +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 Ldcs-CL6VBcm for ; Mon, 27 Jun 2011 22:39:26 +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 TX2EHSOBE008.bigfish.com (tx2ehsobe004.messaging.microsoft.com [65.55.88.14]) by theia.denx.de (Postfix) with ESMTPS id AD2ED280C8 for ; Mon, 27 Jun 2011 22:39:23 +0200 (CEST) Received: from mail97-tx2-R.bigfish.com (10.9.14.253) by TX2EHSOBE008.bigfish.com (10.9.40.28) with Microsoft SMTP Server id 14.1.225.22; Mon, 27 Jun 2011 20:39:20 +0000 Received: from mail97-tx2 (localhost.localdomain [127.0.0.1]) by mail97-tx2-R.bigfish.com (Postfix) with ESMTP id BFB41B18135 for ; Mon, 27 Jun 2011 20:39:19 +0000 (UTC) X-SpamScore: 0 X-BigFish: VS0(zzzz1202hzz8275bhz2dh2a8h668h839h) X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPVD:NLI; H:mail.freescale.net; RD:none; EFVD:NLI Received: from mail97-tx2 (localhost.localdomain [127.0.0.1]) by mail97-tx2 (MessageSwitch) id 1309207157707507_17157; Mon, 27 Jun 2011 20:39:17 +0000 (UTC) Received: from TX2EHSMHS014.bigfish.com (unknown [10.9.14.254]) by mail97-tx2.bigfish.com (Postfix) with ESMTP id A6C101BB0052 for ; Mon, 27 Jun 2011 20:39:17 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by TX2EHSMHS014.bigfish.com (10.9.99.114) with Microsoft SMTP Server (TLS) id 14.1.225.22; Mon, 27 Jun 2011 20:39:17 +0000 Received: from az33smr02.freescale.net (10.64.34.200) by 039-SN1MMR1-001.039d.mgd.msft.net (10.84.1.13) with Microsoft SMTP Server id 14.1.289.8; Mon, 27 Jun 2011 15:39:17 -0500 Received: from localhost.localdomain (mvp-10-214-72-23.am.freescale.net [10.214.72.23]) by az33smr02.freescale.net (8.13.1/8.13.0) with ESMTP id p5RKdFGR010411; Mon, 27 Jun 2011 15:39:16 -0500 (CDT) From: York Sun To: Date: Mon, 27 Jun 2011 13:39:15 -0700 Message-ID: <1309207155-28048-1-git-send-email-yorksun@freescale.com> X-Mailer: git-send-email 1.7.0.4 MIME-Version: 1.0 X-OriginatorOrg: freescale.com Subject: [U-Boot] [PATCH] powerpc/corenet_ds: Fix RCW overriding for RDIMM X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Allow overriding RCW for all RDIMM, not only quad-rank ones. Signed-off-by: York Sun --- board/freescale/corenet_ds/ddr.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/board/freescale/corenet_ds/ddr.c b/board/freescale/corenet_ds/ddr.c index 98024c7..f2b716d 100644 --- a/board/freescale/corenet_ds/ddr.c +++ b/board/freescale/corenet_ds/ddr.c @@ -219,7 +219,7 @@ void fsl_ddr_board_options(memctl_options_t *popts, popts->ddr_cdr1 = DDR_CDR1_DHC_EN; /* override SPD values. rcw_2 should vary at differnt speed */ - if (pdimm[0].n_ranks == 4) { + if (pdimm[0].registered_dimm == 1) { popts->rcw_override = 1; popts->rcw_1 = 0x000a5a00; if (ddr_freq <= 800)