summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/configs/trimslice.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/configs/trimslice.h b/include/configs/trimslice.h
index b761640b8f..9d49f63803 100644
--- a/include/configs/trimslice.h
+++ b/include/configs/trimslice.h
@@ -37,7 +37,8 @@
#define CONFIG_ENV_SPI_MAX_HZ 48000000
#define CONFIG_ENV_SPI_MODE SPI_MODE_0
#define CONFIG_ENV_SECT_SIZE CONFIG_ENV_SIZE
-#define CONFIG_ENV_OFFSET (512 * 1024)
+/* 1MiB flash, environment located as high as possible */
+#define CONFIG_ENV_OFFSET (SZ_1M - CONFIG_ENV_SIZE)
/* USB Host support */
#define CONFIG_USB_EHCI