summaryrefslogtreecommitdiff
path: root/include/configs/zynq-common.h
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2018-04-11 16:13:55 +0200
committerMichal Simek <michal.simek@xilinx.com>2018-04-23 13:15:32 +0200
commit237dff22657903ebce2ff6f7ee45eebcc5c634ff (patch)
tree8e6ee48ca0a38b71affe146d4ed0591f519d4cf4 /include/configs/zynq-common.h
parent61dc92a29d3028296dc3ff34641c78c402e8c14a (diff)
arm: zynq: Make ENV_SIZE and ENV_OFFSET optional via board file
Boards have an option to rewrite variable locations in their own board files. This is necessary for qspi and nand configurations where boot image can be bigger then 896k(current limit). Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'include/configs/zynq-common.h')
-rw-r--r--include/configs/zynq-common.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/configs/zynq-common.h b/include/configs/zynq-common.h
index ae82a7aa96..baad8db62f 100644
--- a/include/configs/zynq-common.h
+++ b/include/configs/zynq-common.h
@@ -127,7 +127,9 @@
#endif
/* Total Size of Environment Sector */
-#define CONFIG_ENV_SIZE (128 << 10)
+#ifndef CONFIG_ENV_SIZE
+# define CONFIG_ENV_SIZE (128 << 10)
+#endif
/* Allow to overwrite serial and ethaddr */
#define CONFIG_ENV_OVERWRITE
@@ -135,7 +137,9 @@
/* Environment */
#ifndef CONFIG_ENV_IS_NOWHERE
# define CONFIG_ENV_SECT_SIZE CONFIG_ENV_SIZE
-# define CONFIG_ENV_OFFSET 0xE0000
+# ifndef CONFIG_ENV_OFFSET
+# define CONFIG_ENV_OFFSET 0xE0000
+# endif
#endif
/* enable preboot to be loaded before CONFIG_BOOTDELAY */