summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChin Liang See <clsee@altera.com>2016-02-24 16:50:22 +0800
committerMarek Vasut <marex@denx.de>2016-03-20 18:01:10 +0100
commitec8b75281b6205b945de75ae6a360e7254ab8677 (patch)
treeea1415dd5b728f53c54dc0f7c417ad7af40f04d2
parente4fb863f6dec0002069d57422ebe3ce3af69a273 (diff)
downloadu-boot-imx-ec8b75281b6205b945de75ae6a360e7254ab8677.zip
u-boot-imx-ec8b75281b6205b945de75ae6a360e7254ab8677.tar.gz
u-boot-imx-ec8b75281b6205b945de75ae6a360e7254ab8677.tar.bz2
arm: socfpga: Enabling U-Boot environment support in QSPI
Enabling the support of storing U-Boot environment within serial NOR flash. By default, its still store into SDMMC Signed-off-by: Chin Liang See <clsee@altera.com> Cc: Dinh Nguyen <dinguyen@opensource.altera.com> Cc: Dinh Nguyen <dinh.linux@gmail.com> Cc: Pavel Machek <pavel@denx.de> Cc: Marek Vasut <marex@denx.de> Cc: Stefan Roese <sr@denx.de>
-rw-r--r--include/configs/socfpga_common.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/configs/socfpga_common.h b/include/configs/socfpga_common.h
index cd48c9e..7b5fe60 100644
--- a/include/configs/socfpga_common.h
+++ b/include/configs/socfpga_common.h
@@ -292,6 +292,12 @@ unsigned int cm_get_qspi_controller_clk_hz(void);
#define CONFIG_ENV_OFFSET 512 /* just after the MBR */
#endif
+/* Environment for QSPI boot */
+#if defined(CONFIG_ENV_IS_IN_SPI_FLASH) && !defined(CONFIG_ENV_OFFSET)
+#define CONFIG_ENV_OFFSET 0x00100000
+#define CONFIG_ENV_SECT_SIZE (64 * 1024)
+#endif
+
/*
* mtd partitioning for serial NOR flash
*