x86: galileo: Enable saving environment in SPI flash
authorBin Meng <bmeng.cn@gmail.com>
Wed, 11 Mar 2015 09:22:29 +0000 (17:22 +0800)
committerSimon Glass <sjg@chromium.org>
Wed, 25 Mar 2015 03:22:38 +0000 (21:22 -0600)
Saving U-Boot's environment in SPI flash on Intel Galileo board.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sg@chromium.org>
include/configs/galileo.h

index 65a2c3e0162e6573cec3f4f2557ebab921e731d9..288acf30f1b8333c4407be99bfbc9625d174134a 100644 (file)
 #define CONFIG_DW_ALTDESCRIPTOR
 #define CONFIG_PHYLIB
 
+/* Environment configuration */
+#undef CONFIG_ENV_IS_NOWHERE
+#undef CONFIG_ENV_SIZE
+#define CONFIG_ENV_IS_IN_SPI_FLASH
+#define CONFIG_ENV_SIZE                        0x1000
+#define CONFIG_ENV_SECT_SIZE           0x1000
+#define CONFIG_ENV_OFFSET              0
+
 #endif /* __CONFIG_H */