diff options
author | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2008-05-16 11:10:35 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-06-03 20:33:11 +0200 |
commit | 8c66497e06bf803489c589df58ee591d71033274 (patch) | |
tree | e90aed7081880f00518b2c74dc179fd95b722f71 /common/env_common.c | |
parent | b6368467e6a97f225e0a5fd7bfc5c7598ef5ddc4 (diff) | |
download | u-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.c | 3 |
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 |