summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Goger <klaus.goger@theobroma-systems.com>2017-02-17 08:48:14 +0100
committerJakob Unterwurzacher <jakob.unterwurzacher@theobroma-systems.com>2017-04-27 15:47:31 +0200
commit9a9f4cc3946e52e6a05d150539357da3d3754e14 (patch)
tree0702961e7f3a636a230f6e48369b1eee066ff704
parentd3195c112354ffa9e25651057b491623d760d1a2 (diff)
sun50i: increase CONFIG_ENV_OFFSET
increase CONFIG_ENV_OFFSET to 640k so the environment don't overlap with the FIT payload. Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
-rw-r--r--include/configs/sunxi-common.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h
index aaab809453..91cfada9f3 100644
--- a/include/configs/sunxi-common.h
+++ b/include/configs/sunxi-common.h
@@ -179,7 +179,11 @@
#define CONFIG_SPL_SPI_SUPPORT
#define CONFIG_SPL_SPI_FLASH_SUPPORT
#else
-#define CONFIG_ENV_OFFSET (544 << 10) /* (8 + 24 + 512) KiB */
+#ifdef CONFIG_MACH_SUN50I
+ #define CONFIG_ENV_OFFSET (640 << 10) /* (8 + 32 + 600) KiB */
+#else
+ #define CONFIG_ENV_OFFSET (544 << 10) /* (8 + 24 + 512) KiB */
+#endif
#define CONFIG_ENV_IS_IN_MMC
#define CONFIG_SYS_MMC_ENV_DEV 0 /* first detected MMC controller */
#define CONFIG_SYS_MMC_MAX_DEVICE 4