From patchwork Fri Oct 19 04:42:00 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 192555 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 087512C008E for ; Fri, 19 Oct 2012 15:42:26 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4B9044A42E; Fri, 19 Oct 2012 06:42:23 +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 sFcKEtL7zErA; Fri, 19 Oct 2012 06:42:23 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C7A724A434; Fri, 19 Oct 2012 06:42:19 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B6B154A434 for ; Fri, 19 Oct 2012 06:42:17 +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 HbOWr7thfM-Z for ; Fri, 19 Oct 2012 06:42:16 +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 39C424A42E for ; Fri, 19 Oct 2012 06:42:14 +0200 (CEST) Received: by mail-gg0-f172.google.com with SMTP id i4so9877ggn.3 for ; Thu, 18 Oct 2012 21:42:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=Z+O1ELXcgskuWNVayWaf6ftXbYUatHy1BojdrJHzxl8=; b=Zzgo2BFw7kRdDdTSMx5BqQQcWtJUwqj6cwnECY6aL76cuPIe6JNNdRzOP3/RcObJ3/ j8hJdiuZaIyMQjUDY8jtCqVAjhZhAXYuCdS+Zs30vhhQKCKsAIFoaNg6AmbUq5IBSZKT CsSKP9vB3qij87o1Ok83jyPI2Ff496CfDQC1qMbxQ/jKOre6gpYLe9tIiBy3DzX6Kr0V +Hf63T/3RZo4vl/k4vO4Dv/xT1Z0Am/xLqy+04g6yD3RSIPpZZPoQrSS5Ww/jxjLPZnZ du1Ou5tvRn8xCNXunAQPSn/qsZxpGrRkTxeQDSXRDXMjcrZvRRoNf9DhhJxBjTa6Z9qF bApA== Received: by 10.236.76.3 with SMTP id a3mr40469yhe.86.1350621733440; Thu, 18 Oct 2012 21:42:13 -0700 (PDT) Received: from fabio-Latitude-E6410.cps.virtua.com.br ([201.82.136.72]) by mx.google.com with ESMTPS id j8sm557589ann.3.2012.10.18.21.42.11 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 18 Oct 2012 21:42:12 -0700 (PDT) From: Fabio Estevam To: sbabic@denx.de Date: Fri, 19 Oct 2012 01:42:00 -0300 Message-Id: <1350621720-14390-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.7.9.5 Cc: Fabio Estevam , u-boot@lists.denx.de Subject: [U-Boot] [PATCH] mx25pdk: Use internal RAM for stack pointer 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 Use internal RAM for stack pointer as it is done in other i.MX boards. Signed-off-by: Fabio Estevam --- include/configs/mx25pdk.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/include/configs/mx25pdk.h b/include/configs/mx25pdk.h index 96c143e..bd000a7 100644 --- a/include/configs/mx25pdk.h +++ b/include/configs/mx25pdk.h @@ -15,6 +15,8 @@ #ifndef __CONFIG_H #define __CONFIG_H +#include + /* High Level Configuration Options */ #define CONFIG_SYS_HZ 1000 @@ -41,8 +43,13 @@ #define CONFIG_BOARD_EARLY_INIT_F #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1 -#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_SDRAM_BASE + 0x1000 - \ - GENERATED_GBL_DATA_SIZE) +#define CONFIG_SYS_INIT_RAM_ADDR IMX_RAM_BASE +#define CONFIG_SYS_INIT_RAM_SIZE IMX_RAM_SIZE + +#define CONFIG_SYS_INIT_SP_OFFSET \ + (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE) +#define CONFIG_SYS_INIT_SP_ADDR \ + (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET) /* Memory Test */ #define CONFIG_SYS_MEMTEST_START (PHYS_SDRAM_1 + PHYS_SDRAM_1_SIZE/2)