arm: socfpga: Enable saveenv for SD/MMC
authorDinh Nguyen <dinguyen@opensource.altera.com>
Wed, 23 Sep 2015 20:38:01 +0000 (15:38 -0500)
committerMarek Vasut <marex@denx.de>
Thu, 24 Sep 2015 07:07:58 +0000 (09:07 +0200)
Enable the able to save the environment variables when SD/MMC is used.

Signed-off-by: Dinh Nguyen <dinguyen@opensource.altera.com>
include/configs/socfpga_arria5_socdk.h
include/configs/socfpga_common.h
include/configs/socfpga_cyclone5_socdk.h
include/configs/socfpga_de0_nano_soc.h
include/configs/socfpga_mcvevk.h
include/configs/socfpga_sockit.h

index 3193684798c809137658d903482a85d1a6f2abe5..b75b0a27fa96261b5809c829e473fe50278ff4c6 100644 (file)
 
 #endif
 
+#define CONFIG_ENV_IS_IN_MMC
+#define CONFIG_SYS_MMC_ENV_DEV         0       /* device 0 */
+#define CONFIG_ENV_OFFSET              512     /* just after the MBR */
+
 /* USB */
 #ifdef CONFIG_CMD_USB
 #define CONFIG_USB_DWC2_REG_ADDR       SOCFPGA_USB1_ADDRESS
index a2811bacd2c7fe2605cd4b0634ab5cdf250087df..cece0950e29769608f95730eed34f64657deb883 100644 (file)
@@ -281,7 +281,6 @@ 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
-#define CONFIG_ENV_IS_NOWHERE
 #define CONFIG_ENV_SIZE                        4096
 
 /*
index 9e733e5c48750f6befbc79eca85abbf9f7e54809..fa67b25a792dc72ed1b8fa2075ecfdaae4d68034 100644 (file)
 
 #endif
 
+#define CONFIG_ENV_IS_IN_MMC
+#define CONFIG_SYS_MMC_ENV_DEV         0       /* device 0 */
+#define CONFIG_ENV_OFFSET              512     /* just after the MBR */
+
 /* USB */
 #ifdef CONFIG_CMD_USB
 #define CONFIG_USB_DWC2_REG_ADDR       SOCFPGA_USB1_ADDRESS
index 2508d037e331f2edecee8f6b95b465a0f8f48e36..191e1f7a43f3c6850c42f4e9f121c9e4e76eb6b5 100644 (file)
 
 #endif
 
+#define CONFIG_ENV_IS_IN_MMC
+#define CONFIG_SYS_MMC_ENV_DEV         0       /* device 0 */
+#define CONFIG_ENV_OFFSET              512     /* just after the MBR */
+
 /* USB */
 #ifdef CONFIG_CMD_USB
 #define CONFIG_USB_DWC2_REG_ADDR       SOCFPGA_USB1_ADDRESS
index c5b4b4ca9d399ab1da5c57caaa398972e8634f54..ed9b5cce6acd08ce625c2da59d4582ed907ae266 100644 (file)
@@ -43,6 +43,8 @@
 #define CONFIG_LOADADDR                0x01000000
 #define CONFIG_SYS_LOAD_ADDR   CONFIG_LOADADDR
 
+#define CONFIG_ENV_IS_NOWHERE
+
 /* USB */
 #ifdef CONFIG_CMD_USB
 #define CONFIG_USB_DWC2_REG_ADDR       SOCFPGA_USB1_ADDRESS
index 747e988ac9fcfedf5aceb46112542437358c17ea..6c71ef4e23f8612b438b5509d80c21898afd5f65 100644 (file)
 
 #endif
 
+#define CONFIG_ENV_IS_IN_MMC
+#define CONFIG_SYS_MMC_ENV_DEV         0       /* device 0 */
+#define CONFIG_ENV_OFFSET              512     /* just after the MBR */
+
 /* USB */
 #ifdef CONFIG_CMD_USB
 #define CONFIG_USB_DWC2_REG_ADDR       SOCFPGA_USB1_ADDRESS