From: Bin Meng Date: Wed, 11 Mar 2015 17:22:29 +0800 Subject: [U-Boot] [PATCH 2/2] x86: galileo: Enable saving environment in SPI flash In-Reply-To: <1426065749-3881-1-git-send-email-bmeng.cn@gmail.com> References: <1426065749-3881-1-git-send-email-bmeng.cn@gmail.com> Message-ID: <1426065749-3881-2-git-send-email-bmeng.cn@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Saving U-Boot's environment in SPI flash on Intel Galileo board. Signed-off-by: Bin Meng --- include/configs/galileo.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/configs/galileo.h b/include/configs/galileo.h index 65a2c3e..288acf3 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 */ -- 1.8.2.1