diff mbox

[U-Boot,1/7] arm: socfpga: Consolidate SDMMC environment

Message ID 1450702971-2514-1-git-send-email-clsee@altera.com
State Accepted
Delegated to: Marek Vasut
Headers show

Commit Message

Chin Liang See Dec. 21, 2015, 1:02 p.m. UTC
Remove the duplication of SDMMC environment configuration
from each boards' configuration header file into
socfpga_common.h

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>
---
 include/configs/socfpga_common.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

Comments

Marek Vasut Dec. 21, 2015, 2:26 p.m. UTC | #1
On Monday, December 21, 2015 at 02:02:45 PM, Chin Liang See wrote:
> Remove the duplication of SDMMC environment configuration
> from each boards' configuration header file into
> socfpga_common.h
> 
> 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>

Applied all 7 to u-boot-socfpga/02-next, thanks.

Best regards,
Marek Vasut
diff mbox

Patch

diff --git a/include/configs/socfpga_common.h b/include/configs/socfpga_common.h
index 3a4df63..699e78a 100644
--- a/include/configs/socfpga_common.h
+++ b/include/configs/socfpga_common.h
@@ -271,6 +271,12 @@  unsigned int cm_get_qspi_controller_clk_hz(void);
 #define CONFIG_SYS_CONSOLE_ENV_OVERWRITE
 #define CONFIG_ENV_SIZE			4096
 
+/* Environment for SDMMC boot */
+#if defined(CONFIG_ENV_IS_IN_MMC) && !defined(CONFIG_ENV_OFFSET)
+#define CONFIG_SYS_MMC_ENV_DEV		0	/* device 0 */
+#define CONFIG_ENV_OFFSET		512	/* just after the MBR */
+#endif
+
 /*
  * SPL
  *