summaryrefslogtreecommitdiff
path: root/include/configs/zynq-common.h
diff options
context:
space:
mode:
authorJagannadha Sutradharudu Teki <jagannadha.sutradharudu-teki@xilinx.com>2014-01-09 01:48:24 +0530
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2014-01-10 15:18:33 +0100
commited53e4d6900e863ef971bb79b96c0cb6676f35d8 (patch)
treeea2ec9a8bb60b334fc2056acabae66655595168a /include/configs/zynq-common.h
parent18eee22f4cd9f864a3986f54c5af14040e093cbe (diff)
downloadu-boot-imx-ed53e4d6900e863ef971bb79b96c0cb6676f35d8.zip
u-boot-imx-ed53e4d6900e863ef971bb79b96c0cb6676f35d8.tar.gz
u-boot-imx-ed53e4d6900e863ef971bb79b96c0cb6676f35d8.tar.bz2
zynq-common: Define flash env. partition
Last 128Kb sector of 1Mb flash is defined as u-boot environment partition. Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Diffstat (limited to 'include/configs/zynq-common.h')
-rw-r--r--include/configs/zynq-common.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/configs/zynq-common.h b/include/configs/zynq-common.h
index 402009e..568c49f 100644
--- a/include/configs/zynq-common.h
+++ b/include/configs/zynq-common.h
@@ -133,7 +133,17 @@
#define CONFIG_ENV_SIZE (128 << 10)
/* Environment */
-#define CONFIG_ENV_IS_NOWHERE
+#ifndef CONFIG_ENV_IS_NOWHERE
+# ifndef CONFIG_SYS_NO_FLASH
+# define CONFIG_ENV_IS_IN_FLASH
+# elif defined(CONFIG_SYS_NO_FLASH)
+# define CONFIG_ENV_IS_NOWHERE
+# endif
+
+# define CONFIG_ENV_SECT_SIZE CONFIG_ENV_SIZE
+# define CONFIG_ENV_OFFSET 0xE0000
+# define CONFIG_CMD_SAVEENV
+#endif
/* Default environment */
#define CONFIG_EXTRA_ENV_SETTINGS \