]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - include/configs/zynq-common.h
zynq-common: Define flash env. partition
[people/ms/u-boot.git] / include / configs / zynq-common.h
index 402009ee95699e830c6429cf327093be5b1f1de8..568c49f4c77829083e44b027521c30557a70958f 100644 (file)
 #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      \