From patchwork Mon Feb 7 09:39:51 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: poonam aggrwal X-Patchwork-Id: 82090 X-Patchwork-Delegate: galak@kernel.crashing.org 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 44CDCB7088 for ; Mon, 7 Feb 2011 20:40:09 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B9CBB28148; Mon, 7 Feb 2011 10:40:07 +0100 (CET) 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 8X4BdpQ9sNZU; Mon, 7 Feb 2011 10:40:07 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7B6BE28149; Mon, 7 Feb 2011 10:40:05 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 0B85C28149 for ; Mon, 7 Feb 2011 10:40:04 +0100 (CET) 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 9v0Yq5-W3KMG for ; Mon, 7 Feb 2011 10:40:02 +0100 (CET) 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 TX2EHSOBE009.bigfish.com (tx2ehsobe004.messaging.microsoft.com [65.55.88.14]) by theia.denx.de (Postfix) with ESMTPS id 279E228148 for ; Mon, 7 Feb 2011 10:40:00 +0100 (CET) Received: from mail150-tx2-R.bigfish.com (10.9.14.242) by TX2EHSOBE009.bigfish.com (10.9.40.29) with Microsoft SMTP Server id 14.1.225.8; Mon, 7 Feb 2011 09:39:58 +0000 Received: from mail150-tx2 (localhost.localdomain [127.0.0.1]) by mail150-tx2-R.bigfish.com (Postfix) with ESMTP id 9AB6C3B80D9 for ; Mon, 7 Feb 2011 09:39:58 +0000 (UTC) X-SpamScore: 3 X-BigFish: VS3(zzc8kzz1202hzz8275bh8275chz2dh2a8h668h) X-Forefront-Antispam-Report: KIP:(null); UIP:(null); IPVD:NLI; H:de01egw02.freescale.net; RD:de01egw02.freescale.net; EFVD:NLI Received: from mail150-tx2 (localhost.localdomain [127.0.0.1]) by mail150-tx2 (MessageSwitch) id 1297071598370607_24343; Mon, 7 Feb 2011 09:39:58 +0000 (UTC) Received: from TX2EHSMHS039.bigfish.com (unknown [10.9.14.248]) by mail150-tx2.bigfish.com (Postfix) with ESMTP id 41C5A51004D for ; Mon, 7 Feb 2011 09:39:58 +0000 (UTC) Received: from de01egw02.freescale.net (192.88.165.103) by TX2EHSMHS039.bigfish.com (10.9.99.139) with Microsoft SMTP Server (TLS) id 14.1.225.8; Mon, 7 Feb 2011 09:39:58 +0000 Received: from az33smr02.freescale.net (az33smr02.freescale.net [10.64.34.200]) by de01egw02.freescale.net (8.14.3/8.14.3) with ESMTP id p179du2t000784 for ; Mon, 7 Feb 2011 02:39:57 -0700 (MST) Received: from lc1106.zin33.ap.freescale.net (lc1106.zin33.ap.freescale.net [10.232.3.106]) by az33smr02.freescale.net (8.13.1/8.13.0) with ESMTP id p179ds8L004654; Mon, 7 Feb 2011 03:39:55 -0600 (CST) Received: by lc1106.zin33.ap.freescale.net (Postfix, from userid 5036) id 3903CC06B; Mon, 7 Feb 2011 15:09:53 +0530 (IST) From: Poonam Aggrwal To: Date: Mon, 7 Feb 2011 15:09:51 +0530 Message-ID: <1297071591-8636-1-git-send-email-poonam.aggrwal@freescale.com> X-Mailer: git-send-email 1.6.5.6 MIME-Version: 1.0 X-OriginatorOrg: freescale.net Cc: Poonam Aggrwal , York Sun Subject: [U-Boot] [PATCH]fsl_ddr: Adds 16 bit DDR Data width option 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 Signed-off-by: Poonam Aggrwal Cc: York Sun --- P1014 processor supports maximum 16bit DDR data width. Based of: git://git.am.freescale.net/mirrors/u-boot.git (branch, master) arch/powerpc/cpu/mpc8xxx/ddr/util.c | 4 +++- arch/powerpc/include/asm/fsl_ddr_sdram.h | 1 + 2 files changed, 4 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/cpu/mpc8xxx/ddr/util.c b/arch/powerpc/cpu/mpc8xxx/ddr/util.c index 1e2d921..a137685 100644 --- a/arch/powerpc/cpu/mpc8xxx/ddr/util.c +++ b/arch/powerpc/cpu/mpc8xxx/ddr/util.c @@ -1,5 +1,5 @@ /* - * Copyright 2008 Freescale Semiconductor, Inc. + * Copyright 2008-2011 Freescale Semiconductor, Inc. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -141,6 +141,8 @@ void board_add_ram_info(int use_default) if (sdram_cfg & SDRAM_CFG_32_BE) puts(", 32-bit"); + else if (sdram_cfg & SDRAM_CFG_16_BE) + puts(", 16-bit"); else puts(", 64-bit"); diff --git a/arch/powerpc/include/asm/fsl_ddr_sdram.h b/arch/powerpc/include/asm/fsl_ddr_sdram.h index b5b1efe..99dddb4 100644 --- a/arch/powerpc/include/asm/fsl_ddr_sdram.h +++ b/arch/powerpc/include/asm/fsl_ddr_sdram.h @@ -84,6 +84,7 @@ typedef ddr3_spd_eeprom_t generic_spd_eeprom_t; #define SDRAM_CFG_SDRAM_TYPE_SHIFT 24 #define SDRAM_CFG_DYN_PWR 0x00200000 #define SDRAM_CFG_32_BE 0x00080000 +#define SDRAM_CFG_16_BE 0x00100000 #define SDRAM_CFG_8_BE 0x00040000 #define SDRAM_CFG_NCAP 0x00020000 #define SDRAM_CFG_2T_EN 0x00008000