From patchwork Sun Jan 27 16:42:36 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Otavio Salvador X-Patchwork-Id: 216021 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 DF5B82C0093 for ; Mon, 28 Jan 2013 03:38:56 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1FAAE4A054; Sun, 27 Jan 2013 17:38:55 +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 kD0OtBhlsdJr; Sun, 27 Jan 2013 17:38:54 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 099E64A090; Sun, 27 Jan 2013 17:38:53 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 67AC34A049 for ; Sun, 27 Jan 2013 17:38:36 +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 J4QTAwdtZ4T4 for ; Sun, 27 Jan 2013 17:38:35 +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 mail-yh0-f49.google.com (mail-yh0-f49.google.com [209.85.213.49]) by theia.denx.de (Postfix) with ESMTPS id D993D4A054 for ; Sun, 27 Jan 2013 17:38:26 +0100 (CET) Received: by mail-yh0-f49.google.com with SMTP id m1so196833yhg.22 for ; Sun, 27 Jan 2013 08:38:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references; bh=VGd+8W6qM9ix4KssBscJDmu17AbzMmBLuFrt4BxGYTg=; b=Tl03IEiAvmcqxrzYUm+6IZFTQg7e9pQfeZdGZYneUdAfyophuRH/bzta9p/6SggUwP dTIfkhSwaPGDbZsm4DskCyNdGTOKwXpnHo1Q/3aNq0mKFPF1XKV8Zj3ePqNLoSwgr7cp 0n47Rk7Uky7vSP88Ka0NiG1BaKFz99y9w7D7zrAA05mKU3cGUh5ZBCiDt1aHfgJSsofp J3Fv8Ow9UaKPzVzl5qaAZO39PJgq+egD1Yn3XUg0A708imfXG9Gq2ZW18w4lBztyoG6w Xy5zwg+9cSZv/EPpWNQaLdZJ1+6j0jttHUTDTdGXUsqr5o6/s/KvLCaNNw9RoXtDGTtr wpNw== X-Received: by 10.236.120.103 with SMTP id o67mr12621949yhh.98.1359304705429; Sun, 27 Jan 2013 08:38:25 -0800 (PST) Received: from nano.lab.ossystems.com.br ([177.35.66.48]) by mx.google.com with ESMTPS id w12sm310136anl.14.2013.01.27.08.38.23 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 27 Jan 2013 08:38:24 -0800 (PST) From: Otavio Salvador To: u-boot@lists.denx.de Date: Sun, 27 Jan 2013 14:42:36 -0200 Message-Id: <1359304956-6540-3-git-send-email-otavio@ossystems.com.br> X-Mailer: git-send-email 1.8.1 In-Reply-To: <1359304956-6540-1-git-send-email-otavio@ossystems.com.br> References: <1359304956-6540-1-git-send-email-otavio@ossystems.com.br> Cc: Fabio Estevam , Otavio Salvador Subject: [U-Boot] [PATCH v2 3/3] mx23evk: Adjust DRAM control register to use full 128MB of RAM 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 Signed-off-by: Otavio Salvador --- Changes in v2: None board/freescale/mx23evk/spl_boot.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/board/freescale/mx23evk/spl_boot.c b/board/freescale/mx23evk/spl_boot.c index 6007433..b6f4e7e 100644 --- a/board/freescale/mx23evk/spl_boot.c +++ b/board/freescale/mx23evk/spl_boot.c @@ -98,6 +98,16 @@ const iomux_cfg_t iomux_setup[] = { (MXS_PAD_4MA | MXS_PAD_3V3 | MXS_PAD_NOPULL), }; +#define HW_DRAM_CTL14 (0x38 >> 2) +#define CS_MAP 0x3 +#define INTAREF 0x2 +#define HW_DRAM_CTL14_CONFIG (INTAREF << 8 | CS_MAP) + +void mxs_adjust_memory_params(uint32_t *dram_vals) +{ + dram_vals[HW_DRAM_CTL14] = HW_DRAM_CTL14_CONFIG; +} + void board_init_ll(void) { mxs_common_spl_init(iomux_setup, ARRAY_SIZE(iomux_setup));