]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
zynq: Update the NOR flash environment offset
authorJagannadha Sutradharudu Teki <jagannadha.sutradharudu-teki@xilinx.com>
Tue, 4 Dec 2012 18:15:03 +0000 (23:45 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 5 Dec 2012 11:27:04 +0000 (12:27 +0100)
This patch changed the NOR flash environment offset to 0xE0000.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
include/configs/zynq_common.h

index abb9fbd1cf03eb9ad4dc7496ff1c6a65c22cba00..aa2e54515fb102299574d99362e382fe10d86943 100644 (file)
 # 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