summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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