From patchwork Wed Jun 11 19:53:13 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Mack X-Patchwork-Id: 358878 X-Patchwork-Delegate: trini@ti.com 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 190181400A7 for ; Thu, 12 Jun 2014 06:15:23 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 25EDE4B629; Wed, 11 Jun 2014 22:15:22 +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 X6W5BwNowNpL; Wed, 11 Jun 2014 22:15:21 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2F8804B605; Wed, 11 Jun 2014 22:15:21 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B72A14B5F1 for ; Wed, 11 Jun 2014 22:15:15 +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 OuW4JLg0NTy2 for ; Wed, 11 Jun 2014 22:15:12 +0200 (CEST) X-Greylist: delayed 1302 seconds by postgrey-1.27 at theia; Wed, 11 Jun 2014 22:15:06 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-wg0-f43.google.com (mail-wg0-f43.google.com [74.125.82.43]) by theia.denx.de (Postfix) with ESMTPS id 2EC794B60F for ; Wed, 11 Jun 2014 22:15:06 +0200 (CEST) Received: by mail-wg0-f43.google.com with SMTP id b13so254328wgh.26 for ; Wed, 11 Jun 2014 13:15:05 -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:in-reply-to:references; bh=hAssAg0ZInSIsWkobS9GMbs/78mAlnNGH+M/V2+BvqY=; b=JSoGSDcIZpeiYAUki5rc0nlOme9OOleP11BQmjaGhVW7NvUQ+cDujHV80qijUv2P5Q LJugnhO6OPlwE9LyHsSduI6IQEdvR5NZAOJxOUqj6H9EUw+uBUYjWLzrVLxtZ9dloPrM QcBD8VMJzKzlgSFd9xnr1iFQuj4malRvFdMZmLfUMBraUcnLNlXyVJDpOnmzf6rT4vMn XwOevyTgn5DWweIDlCpniichlQzY0qEn7ixXnAKBS9Gxv2gDJYM0JDpi1AlKoW4hnCDM SbtrYpyYNHAESaQkPudozUoL9tAq3QTywB9hh1Fza2x4bj2NVq1RjhdisBVUbRhjzVAm 0UVA== X-Received: by 10.194.192.65 with SMTP id he1mr7748656wjc.91.1402516404088; Wed, 11 Jun 2014 12:53:24 -0700 (PDT) Received: from tamtam.fritz.box ([2001:4dd0:ff00:9394:224:d7ff:fec6:a0ec]) by mx.google.com with ESMTPSA id j44sm61435981eeg.30.2014.06.11.12.53.22 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Jun 2014 12:53:23 -0700 (PDT) From: Daniel Mack To: u-boot@lists.denx.de Date: Wed, 11 Jun 2014 21:53:13 +0200 Message-Id: <1402516393-26025-3-git-send-email-zonque@gmail.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1402516393-26025-1-git-send-email-zonque@gmail.com> References: <1402516393-26025-1-git-send-email-zonque@gmail.com> Cc: trini@ti.com, Daniel Mack Subject: [U-Boot] [PATCH 2/2] ARM: omap-common: gpmp: decrease memory region size to 16MiB 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 That memory area is not used except for the first location, so it doesn't matter. However, with the length configured to 256MiB, U-Boot crased when accessing contents of the map. Signed-off-by: Daniel Mack --- arch/arm/cpu/armv7/omap-common/mem-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/cpu/armv7/omap-common/mem-common.c b/arch/arm/cpu/armv7/omap-common/mem-common.c index 944ef84..3595806 100644 --- a/arch/arm/cpu/armv7/omap-common/mem-common.c +++ b/arch/arm/cpu/armv7/omap-common/mem-common.c @@ -99,7 +99,7 @@ void gpmc_init(void) M_NAND_GPMC_CONFIG6, 0 }; - u32 size = GPMC_SIZE_256M; + u32 size = GPMC_SIZE_16M; u32 base = CONFIG_SYS_NAND_BASE; #elif defined(CONFIG_CMD_ONENAND) const u32 gpmc_regs[GPMC_MAX_REG] = { ONENAND_GPMC_CONFIG1,