Skip to content
Snippets Groups Projects
Commit ec8b7528 authored by Chin Liang See's avatar Chin Liang See Committed by Marek Vasut
Browse files

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: default avatarChin 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>
parent e4fb863f
No related branches found
No related tags found
No related merge requests found
...@@ -292,6 +292,12 @@ unsigned int cm_get_qspi_controller_clk_hz(void); ...@@ -292,6 +292,12 @@ unsigned int cm_get_qspi_controller_clk_hz(void);
#define CONFIG_ENV_OFFSET 512 /* just after the MBR */ #define CONFIG_ENV_OFFSET 512 /* just after the MBR */
#endif #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 * mtd partitioning for serial NOR flash
* *
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment