summaryrefslogtreecommitdiffstats
path: root/include/configs/exynos5-dt.h
diff options
context:
space:
mode:
authorAkshay Saraswat <akshay.s@samsung.com>2014-06-18 17:53:59 +0530
committerMinkyu Kang <mk7.kang@samsung.com>2014-06-23 08:45:44 +0900
commitfa25315741aa9197bcc2ed7e09f5fd61b09003be (patch)
tree5bd06799d1987640b272ce5e4a51571a3c5d95ad /include/configs/exynos5-dt.h
parent8e4ab1d58265884bbc9da6c6720d7a635f00fb2b (diff)
downloadblackbird-obmc-uboot-fa25315741aa9197bcc2ed7e09f5fd61b09003be.tar.gz
blackbird-obmc-uboot-fa25315741aa9197bcc2ed7e09f5fd61b09003be.zip
Exynos5: Config: Place environment at the end of SPI flash
Currently environment resides at the location where BL2 ends. This may hold good in case there is an empty space at this position. But what if this place already has a binary or is expected to have one. To avoid such scenarios it is better to save environment at the end of the flash. Signed-off-by: Akshay Saraswat <akshay.s@samsung.com> Acked-by: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'include/configs/exynos5-dt.h')
-rw-r--r--include/configs/exynos5-dt.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/configs/exynos5-dt.h b/include/configs/exynos5-dt.h
index b8304951d2..d9f562534e 100644
--- a/include/configs/exynos5-dt.h
+++ b/include/configs/exynos5-dt.h
@@ -207,7 +207,10 @@
#define CONFIG_BL1_OFFSET (CONFIG_RES_BLOCK_SIZE + CONFIG_SEC_FW_SIZE)
#define CONFIG_BL2_OFFSET (CONFIG_BL1_OFFSET + CONFIG_BL1_SIZE)
-#define CONFIG_ENV_OFFSET (CONFIG_BL2_OFFSET + CONFIG_BL2_SIZE)
+
+/* Store environment at the end of a 4 MB SPI flash */
+#define FLASH_SIZE (0x4 << 20)
+#define CONFIG_ENV_OFFSET (FLASH_SIZE - CONFIG_BL2_SIZE)
/* U-boot copy size from boot Media to DRAM.*/
#define BL2_START_OFFSET (CONFIG_BL2_OFFSET/512)
OpenPOWER on IntegriCloud