From: Chin Liang See Date: Mon, 21 Dec 2015 13:02:45 +0000 (+0800) Subject: arm: socfpga: Consolidate SDMMC environment X-Git-Tag: v2016.01-rc4~17^2~35 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=79cc48e77c95768ac69ac5403bccda8234e82991;p=u-boot 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 Cc: Dinh Nguyen Cc: Dinh Nguyen Cc: Pavel Machek Cc: Marek Vasut Cc: Stefan Roese --- 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 *