From 083b4f002a260bf8e93a2e7225d5c980db974dfc Mon Sep 17 00:00:00 2001 From: Jagannadha Sutradharudu Teki Date: Tue, 4 Dec 2012 23:45:03 +0530 Subject: [PATCH] zynq: Update the NOR flash environment offset This patch changed the NOR flash environment offset to 0xE0000. Signed-off-by: Jagannadha Sutradharudu Teki Acked-by: Michal Simek --- include/configs/zynq_common.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/configs/zynq_common.h b/include/configs/zynq_common.h index abb9fbd1cf0..aa2e54515fb 100644 --- a/include/configs/zynq_common.h +++ b/include/configs/zynq_common.h @@ -117,10 +117,11 @@ # undef CONFIG_SYS_FLASH_PROTECTION /* don't use hardware protection */ # define CONFIG_SYS_FLASH_USE_BUFFER_WRITE /* use buffered writes (20x faster) */ +/* Environment in NOR flash */ # ifndef CONFIG_ENV_IS_NOWHERE -# define CONFIG_ENV_OFFSET 0xC0000 /*768 KB*/ -# define CONFIG_ENV_SECT_SIZE 0x20000 /*128 KB*/ # define CONFIG_ENV_IS_IN_FLASH +# define CONFIG_ENV_SECT_SIZE CONFIG_ENV_SIZE +# define CONFIG_ENV_OFFSET 0xE0000 # define CONFIG_CMD_SAVEENV /* Command to save ENV to Flash */ # endif #endif -- 2.47.3