From: Bin Meng <bmeng.cn@gmail.com>
Date: Wed, 11 Mar 2015 09:22:29 +0000 (+0800)
Subject: x86: galileo: Enable saving environment in SPI flash
X-Git-Tag: v2025.01-rc5-pxa1908~13566^2~1
X-Git-Url: http://git.dujemihanovic.xyz/img/html/static/gitweb.css?a=commitdiff_plain;h=bea59393c88ba86f6433f8c277478f312ff0acf3;p=u-boot.git

x86: galileo: Enable saving environment in SPI flash

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>
---

diff --git a/include/configs/galileo.h b/include/configs/galileo.h
index 65a2c3e016..288acf30f1 100644
--- a/include/configs/galileo.h
+++ b/include/configs/galileo.h
@@ -62,4 +62,12 @@
 #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 */