[U-Boot] [PATCH] arm: socfpga: Allow board specific config values for env

Stefan Roese sr at denx.de
Fri Oct 23 09:26:51 CEST 2015


This patch enables the usage of board-specific values for the
environment offset and size in SPI NOR flash.

Signed-off-by: Stefan Roese <sr at denx.de>
Cc: Marek Vasut <marex at denx.de>
Cc: Pavel Machek <pavel at denx.de>
Cc: Dinh Nguyen <dinguyen at opensource.altera.com>
---
 include/configs/socfpga_common.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/configs/socfpga_common.h b/include/configs/socfpga_common.h
index cece095..ebf0c48 100644
--- a/include/configs/socfpga_common.h
+++ b/include/configs/socfpga_common.h
@@ -281,7 +281,9 @@ unsigned int cm_get_qspi_controller_clk_hz(void);
 #define CONFIG_SYS_CONSOLE_IS_IN_ENV
 #define CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE
 #define CONFIG_SYS_CONSOLE_ENV_OVERWRITE
+#ifndef CONFIG_ENV_SIZE
 #define CONFIG_ENV_SIZE			4096
+#endif
 
 /*
  * SPL
@@ -327,8 +329,10 @@ unsigned int cm_get_qspi_controller_clk_hz(void);
 #define CONFIG_DM_SEQ_ALIAS		1
 #define CONFIG_SPL_SPI_FLASH_SUPPORT
 #define CONFIG_SPL_SPI_LOAD
+#ifndef CONFIG_SYS_SPI_U_BOOT_OFFS
 #define CONFIG_SYS_SPI_U_BOOT_OFFS	0x40000
 #endif
+#endif
 
 /*
  * Stack setup
-- 
2.6.2



More information about the U-Boot mailing list