summaryrefslogtreecommitdiff
path: root/common/env_common.c
diff options
context:
space:
mode:
authorHaavard Skinnemoen <haavard.skinnemoen@atmel.com>2008-05-16 11:10:35 +0200
committerWolfgang Denk <wd@denx.de>2008-06-03 20:33:11 +0200
commit8c66497e06bf803489c589df58ee591d71033274 (patch)
treee90aed7081880f00518b2c74dc179fd95b722f71 /common/env_common.c
parentb6368467e6a97f225e0a5fd7bfc5c7598ef5ddc4 (diff)
downloadu-boot-imx-8c66497e06bf803489c589df58ee591d71033274.zip
u-boot-imx-8c66497e06bf803489c589df58ee591d71033274.tar.gz
u-boot-imx-8c66497e06bf803489c589df58ee591d71033274.tar.bz2
Add support for environment in SPI flash
This is pretty incomplete...it doesn't handle reading the environment before relocation, it doesn't support redundant environment, and it doesn't support embedded environment. But apart from that, it does seem to work. Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Diffstat (limited to 'common/env_common.c')
-rw-r--r--common/env_common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/env_common.c b/common/env_common.c
index a494812..e6df9a5 100644
--- a/common/env_common.c
+++ b/common/env_common.c
@@ -134,7 +134,8 @@ uchar default_environment[] = {
"\0"
};
-#if defined(CFG_ENV_IS_IN_NAND) /* Environment is in Nand Flash */
+#if defined(CFG_ENV_IS_IN_NAND) /* Environment is in Nand Flash */ \
+ || defined(CFG_ENV_IS_IN_SPI_FLASH)
int default_environment_size = sizeof(default_environment);
#endif