From patchwork Sun Jul 1 14:44:38 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [U-Boot,2/2] microblaze: move ENV onto top of flash From: Stephan Linz X-Patchwork-Id: 168436 Message-Id: <1341153878-13253-2-git-send-email-linz@li-pro.net> To: monstr@monstr.eu Cc: Stephan Linz , u-boot@lists.denx.de Date: Sun, 1 Jul 2012 16:44:38 +0200 On Microblaze systems with BPI configuration from CFI flash the first 1-10 MB will occupied by the FPGA configuration data (BIN file). So we can not use this area for the U-Boot environment. In most of all FPGA configuration cases the upper sector in flash memory will be free for individuell usage. Signed-off-by: Stephan Linz --- include/configs/microblaze-generic.h | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/include/configs/microblaze-generic.h b/include/configs/microblaze-generic.h index e20eb08..818435d 100644 --- a/include/configs/microblaze-generic.h +++ b/include/configs/microblaze-generic.h @@ -186,11 +186,9 @@ * CONFIG_ENV_SIZE = SECT_SIZE; 128kB environment store * * 0x2200_0000 CONFIG_SYS_FLASH_BASE - * FREE 256kB - * 0x2204_0000 CONFIG_ENV_ADDR - * ENV_AREA 128kB - * 0x2206_0000 * FREE + * 0x227E_0000 CONFIG_ENV_ADDR + * ENV_AREA 128kB * 0x2280_0000 CONFIG_SYS_FLASH_BASE + CONFIG_SYS_FLASH_SIZE * */ @@ -219,7 +217,7 @@ /* 128K(one sector) for env */ # define CONFIG_ENV_SECT_SIZE 0x20000 # define CONFIG_ENV_ADDR \ - (CONFIG_SYS_FLASH_BASE + (2 * CONFIG_ENV_SECT_SIZE)) + (CONFIG_SYS_FLASH_BASE + CONFIG_SYS_FLASH_SIZE - CONFIG_ENV_SECT_SIZE) # define CONFIG_ENV_SIZE 0x20000 # endif /* !RAMBOOT */ #else /* !FLASH */