summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChin Liang See <clsee@altera.com>2015-12-21 21:02:45 +0800
committerMarek Vasut <marex@denx.de>2015-12-22 04:42:27 +0100
commit79cc48e77c95768ac69ac5403bccda8234e82991 (patch)
treeef76c125283dbebfb5e412fd3f7c30d206bcaf3c /include
parent2b2610921920d841bbf0f6b7de2b170aa8cd9598 (diff)
downloadblackbird-obmc-uboot-79cc48e77c95768ac69ac5403bccda8234e82991.tar.gz
blackbird-obmc-uboot-79cc48e77c95768ac69ac5403bccda8234e82991.zip
arm: socfpga: Consolidate SDMMC environment
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>
Diffstat (limited to 'include')
-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 1da2ecf1e1..275aa6de43 100644
--- a/include/configs/socfpga_common.h
+++ b/include/configs/socfpga_common.h
@@ -270,6 +270,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
*
OpenPOWER on IntegriCloud