Patchwork [U-Boot,v2,2/2] ARM: omap-common: gpmp: decrease memory region size to 16MiB

login
register
mail settings
Submitter Daniel Mack
Date June 25, 2014, 12:43 p.m.
Message ID <1403700213-16114-3-git-send-email-zonque@gmail.com>
Download mbox | patch
Permalink /patch/363997/
State New
Delegated to: Tom Rini
Headers show

Comments

Daniel Mack - June 25, 2014, 12:43 p.m.
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 <zonque@gmail.com>
---
 arch/arm/cpu/armv7/omap-common/mem-common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

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,