From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Mack Date: Wed, 11 Jun 2014 21:53:13 +0200 Subject: [U-Boot] [PATCH 2/2] ARM: omap-common: gpmp: decrease memory region size to 16MiB In-Reply-To: <1402516393-26025-1-git-send-email-zonque@gmail.com> References: <1402516393-26025-1-git-send-email-zonque@gmail.com> Message-ID: <1402516393-26025-3-git-send-email-zonque@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@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, -- 1.9.3