From patchwork Sat May 12 17:17:27 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 158757 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 71629B701F for ; Sun, 13 May 2012 03:17:51 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A55C5281B4; Sat, 12 May 2012 19:17:49 +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 vNacragEhrev; Sat, 12 May 2012 19:17:49 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E2F6C2816A; Sat, 12 May 2012 19:17:47 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 489E52816A for ; Sat, 12 May 2012 19:17:45 +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 OSTVQHNjuuGS for ; Sat, 12 May 2012 19:17:44 +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 0A8FE2815A for ; Sat, 12 May 2012 19:17:42 +0200 (CEST) Received: by ggnc4 with SMTP id c4so507610ggn.3 for ; Sat, 12 May 2012 10:17:41 -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=36f7wPfv2W0yrIVGdUA9K7bBAeuOK+9Sa7fMnZZ0vJs=; b=B4nYPSOGdkXBp/URjqkyluMjdd+f2ueKWk3A+mi7nuwwwVV4qEotnl4iz7dhqgpVo6 OmtL1kEqoB7p66cbrMqEOGyRM8CkpVt2sU9IQ0IrAzvIbHGia6kHr0BYR982C1VidUP5 D4Tl4x/uZHP/68qdLSby6qISCH9r/E7TkA/D9OAsnm6q9GWAA5ri+FlsCtKjz5klgR9r gY84LS9uXfBr3oi2LF4mahKrm8KPAdr6+jCIKZSTj/xGqZp+t14hj5Q6WeEFhyuDLffS 37wUqU/hTGDG7CDlfMZkjeq03zswQLmea95HgD22AXO4oqg73nj98ioN4Y3uIN2QSnyl P/ag== Received: by 10.101.151.23 with SMTP id d23mr713688ano.26.1336843061685; Sat, 12 May 2012 10:17:41 -0700 (PDT) Received: from localhost.localdomain ([189.101.178.179]) by mx.google.com with ESMTPS id g44sm58941079yhh.20.2012.05.12.10.17.39 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 12 May 2012 10:17:40 -0700 (PDT) From: Fabio Estevam To: u-boot@lists.denx.de Date: Sat, 12 May 2012 14:17:27 -0300 Message-Id: <1336843047-27479-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.7.1 Cc: marex@denx.de, Fabio Estevam Subject: [U-Boot] [PATCH v2] mx28evk: Scan only first 128MB of DRAM to avoid memory wraparound 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 Scan only first 128MB of DRAM to avoid memory wraparound. This fixes mx28evk boot and it follows the same idea of commit 19a2066b57 (M28: Scan only first 512 MB of DRAM to avoid memory wraparound) Signed-off-by: Fabio Estevam --- Change since v1: - Set the RAM size as 128MB. include/configs/mx28evk.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/configs/mx28evk.h b/include/configs/mx28evk.h index 0c18e50..41037fc 100644 --- a/include/configs/mx28evk.h +++ b/include/configs/mx28evk.h @@ -75,7 +75,7 @@ */ #define CONFIG_NR_DRAM_BANKS 1 /* 1 bank of DRAM */ #define PHYS_SDRAM_1 0x40000000 /* Base address */ -#define PHYS_SDRAM_1_SIZE 0x40000000 /* Max 1 GB RAM */ +#define PHYS_SDRAM_1_SIZE 0x08000000 /* 128MB RAM */ #define CONFIG_STACKSIZE (128 * 1024) /* 128 KB stack */ #define CONFIG_SYS_MALLOC_LEN 0x00400000 /* 4 MB for malloc */ #define CONFIG_SYS_MEMTEST_START 0x40000000 /* Memtest start adr */