From patchwork Sun Feb 17 19:45:17 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Otavio Salvador X-Patchwork-Id: 221093 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 0E53C2C0079 for ; Mon, 18 Feb 2013 06:41:24 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8C1674A0F9; Sun, 17 Feb 2013 20:41:22 +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 vCw4N-7huLlY; Sun, 17 Feb 2013 20:41:22 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3FEA14A0F8; Sun, 17 Feb 2013 20:41:05 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 38D294A0B8 for ; Sun, 17 Feb 2013 20:41:01 +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 w9C3t+VeEtHv for ; Sun, 17 Feb 2013 20:40:58 +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-gh0-f169.google.com (mail-gh0-f169.google.com [209.85.160.169]) by theia.denx.de (Postfix) with ESMTPS id 59C3A4A047 for ; Sun, 17 Feb 2013 20:40:51 +0100 (CET) Received: by mail-gh0-f169.google.com with SMTP id r18so452645ghr.14 for ; Sun, 17 Feb 2013 11:40: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=Yn+IxY7t6AKu6bx4w7dvxOm/t8UvjAC8DXLMzSh1Cb8=; b=QR+lZoJ6RfKb7WsOlhPvq1v+3DX+L1KA2v6w62oXUtVIuaCEumnqOInWKaQ6YxD1sU px6NAHaGKrFR33Nxgu0a0nJ27n5Sb0aG0emJOaisy3kpaXbOnfoeGNXQp/Gq2Sv5cp+l Me2fKCAq68k+iCZkpQdAVTgUP33CzlJA+cTDgFZ2yyby6TT6pntQ0EjOXYii2C0ngoMe rnvlrMVtxgA8Vs3hswOuyKx6eeqajyH65CneK3OEnfwuE/2oPHw4o3okhrhNKXdrdYGa J0Tuuhe3kWvsItdyI+fyIGt/lLe6bQlgAEfpy8MKk2UA7dLIoG333XRAvYSGPrNYoqGy +t/Q== X-Received: by 10.236.166.34 with SMTP id f22mr15846179yhl.87.1361130050465; Sun, 17 Feb 2013 11:40:50 -0800 (PST) Received: from nano.lab.ossystems.com.br ([187.23.144.59]) by mx.google.com with ESMTPS id n4sm26667009ank.1.2013.02.17.11.40.47 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 17 Feb 2013 11:40:49 -0800 (PST) From: Otavio Salvador To: U-Boot Mailing List Date: Sun, 17 Feb 2013 16:45:17 -0300 Message-Id: <1361130325-5202-4-git-send-email-otavio@ossystems.com.br> X-Mailer: git-send-email 1.8.1 In-Reply-To: <1361130325-5202-1-git-send-email-otavio@ossystems.com.br> References: <1361130325-5202-1-git-send-email-otavio@ossystems.com.br> Cc: Fabio Estevam , Marek Vasut , Otavio Salvador Subject: [U-Boot] [PATCH v3 03/10] 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 Adjust HW_DRAM_CTL14 to enable the chip selects to allow usage of full 128MB of RAM. 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));