From patchwork Fri Apr 26 17:00:23 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 239892 X-Patchwork-Delegate: sbabic@denx.de 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 372B02C0106 for ; Sat, 27 Apr 2013 03:00:51 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C21364A094; Fri, 26 Apr 2013 19:00:47 +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 S3rrBRUf3R06; Fri, 26 Apr 2013 19:00:47 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C97B34A096; Fri, 26 Apr 2013 19:00:45 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9A14E4A096 for ; Fri, 26 Apr 2013 19:00:43 +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 oZWpjKzeZ1vY for ; Fri, 26 Apr 2013 19:00:42 +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 mail-gg0-f172.google.com (mail-gg0-f172.google.com [209.85.161.172]) by theia.denx.de (Postfix) with ESMTPS id 81DA94A094 for ; Fri, 26 Apr 2013 19:00:40 +0200 (CEST) Received: by mail-gg0-f172.google.com with SMTP id f1so597680ggn.17 for ; Fri, 26 Apr 2013 10:00:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=qOjbhW7N5TujmI/nP7VBbwppB0orHuKDZTML+6b4HDc=; b=ISyYyoXIWku6xBLtOeu9HlzYr5Cub6X8R7CzjOS2BchY1Xb86if8XfmacVep2FOt84 PF31XiMkkXI9MYxS7MdIHUd8FA1KHngr44afgvDN6E20WL3eelOeGbEcQUYXTNyiUNPl vAxfRXqbhHv63JRyzwLccXMazt4hc9QE8zWUCJgSvjrUlX/tauO1Q3AXWgcnoLbP3UV0 VHGRZn5eDq4Ls+aA/zGOBfVl68C151SJP1h29cmi/3bGLMnW5R0ns0XA80k6Rm1y1fyZ sivDlcgCKlmrVh3KIncI4CW2Ob2xBKH/ns0KQNnssxt8EtQsWrjH5zRQIXF2gHqbos46 Dckg== X-Received: by 10.236.47.69 with SMTP id s45mr28012129yhb.121.1366995638365; Fri, 26 Apr 2013 10:00:38 -0700 (PDT) Received: from localhost.localdomain ([187.64.220.204]) by mx.google.com with ESMTPSA id s45sm16567840yhk.22.2013.04.26.10.00.36 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 26 Apr 2013 10:00:37 -0700 (PDT) From: Fabio Estevam To: sbabic@denx.de Date: Fri, 26 Apr 2013 14:00:23 -0300 Message-Id: <1366995623-26480-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.7.9.5 Cc: marex@denx.de, u-boot@lists.denx.de, Fabio Estevam , otavio@ossystems.com.br Subject: [U-Boot] [PATCH] mx23: Fix the size of internal 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 From: Fabio Estevam mx23 has 32kB of internal RAM. While at it, use IRAM_BASE_ADDR and IRAM_SIZE as the other i.MX SoCs. Signed-off-by: Fabio Estevam --- arch/arm/include/asm/arch-mxs/regs-base.h | 3 +++ include/configs/mx23_olinuxino.h | 4 ++-- include/configs/mx23evk.h | 4 ++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/arch/arm/include/asm/arch-mxs/regs-base.h b/arch/arm/include/asm/arch-mxs/regs-base.h index 2d9f96b..855f9d6 100644 --- a/arch/arm/include/asm/arch-mxs/regs-base.h +++ b/arch/arm/include/asm/arch-mxs/regs-base.h @@ -28,6 +28,7 @@ #ifndef __MXS_REGS_BASE_H__ #define __MXS_REGS_BASE_H__ +#include /* * Register base addresses for i.MX23 */ @@ -69,6 +70,8 @@ #define MXS_USBPHY0_BASE 0x8007C000 #define MXS_USBCTRL0_BASE 0x80080000 #define MXS_DRAM_BASE 0x800E0000 +#define IRAM_BASE_ADDR 0x00000000 +#define IRAM_SIZE SZ_32K /* * Register base addresses for i.MX28 diff --git a/include/configs/mx23_olinuxino.h b/include/configs/mx23_olinuxino.h index 38ad7f4..7659f52 100644 --- a/include/configs/mx23_olinuxino.h +++ b/include/configs/mx23_olinuxino.h @@ -77,8 +77,8 @@ #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1 /* Point initial SP in SRAM so SPL can use it too. */ -#define CONFIG_SYS_INIT_RAM_ADDR 0x00000000 -#define CONFIG_SYS_INIT_RAM_SIZE (128 * 1024) +#define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR +#define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE #define CONFIG_SYS_INIT_SP_OFFSET \ (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE) diff --git a/include/configs/mx23evk.h b/include/configs/mx23evk.h index e5a15a4..c5264a6 100644 --- a/include/configs/mx23evk.h +++ b/include/configs/mx23evk.h @@ -72,8 +72,8 @@ #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1 /* Point initial SP in SRAM so SPL can use it too. */ -#define CONFIG_SYS_INIT_RAM_ADDR 0x00000000 -#define CONFIG_SYS_INIT_RAM_SIZE (128 * 1024) +#define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR +#define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE #define CONFIG_SYS_INIT_SP_OFFSET \ (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)