From patchwork Tue Jan 29 10:37:04 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Otavio Salvador X-Patchwork-Id: 216491 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 899F12C0095 for ; Tue, 29 Jan 2013 21:33:45 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5DBEF4A125; Tue, 29 Jan 2013 11:33:21 +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 ziNHkOUmcfHO; Tue, 29 Jan 2013 11:33:21 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9EAB74A14A; Tue, 29 Jan 2013 11:33:15 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3E1024A0FE for ; Tue, 29 Jan 2013 11:33:08 +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 y4LgqW0uN4Ws for ; Tue, 29 Jan 2013 11:33: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 mail-ye0-f181.google.com (mail-ye0-f181.google.com [209.85.213.181]) by theia.denx.de (Postfix) with ESMTPS id 43A5E4A11C for ; Tue, 29 Jan 2013 11:32:52 +0100 (CET) Received: by mail-ye0-f181.google.com with SMTP id m11so18135yen.40 for ; Tue, 29 Jan 2013 02:32:50 -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=JzBbuoUCIXoZHIiAzlDawRNL45827y05/uQkeBUdsJU=; b=P4suGOPNDl8zjfvn9XcnF+ABhTUmKOd/WcGV9ft1ocSUMZ3Q3WVbwxcayBtvt47Om5 3xUNJk87MG/YBFvueNCwzVxuudCKovXZdfN+Fxp95h+UUFOqElcxQuyV0m7MM2LUKu8v McfhlBT8CNUgCA8GtNDEoGneNGkkpmR27nkHz8JdExwbleMJPSiIHoBMtM6S0PCbMs+B izwRY2JIYi1EDfaAGEZx1briQlnC95Z3Tz5WDdWgpzcZ9rq5tJXfW/yd/yytb10sl72q UwhdqhHDK2FmRDj05Dr5tQbRtbB1Y572M3Zi9pNm28odxTvskSwbHG+eLogc/XYish87 E/bg== X-Received: by 10.101.165.22 with SMTP id s22mr117521ano.58.1359455570017; Tue, 29 Jan 2013 02:32:50 -0800 (PST) Received: from nano.lab.ossystems.com.br ([177.35.66.48]) by mx.google.com with ESMTPS id b54sm13005193yhj.19.2013.01.29.02.32.47 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 29 Jan 2013 02:32:49 -0800 (PST) From: Otavio Salvador To: u-boot@lists.denx.de Date: Tue, 29 Jan 2013 08:37:04 -0200 Message-Id: <1359455824-24058-3-git-send-email-otavio@ossystems.com.br> X-Mailer: git-send-email 1.8.1 In-Reply-To: <1359455824-24058-1-git-send-email-otavio@ossystems.com.br> References: <1359455824-24058-1-git-send-email-otavio@ossystems.com.br> Cc: Fabio Estevam , Otavio Salvador Subject: [U-Boot] [PATCH v3 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 v3: None 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));