summaryrefslogtreecommitdiff
path: root/common/env_common.c
diff options
context:
space:
mode:
authorTerry Lv <r65388@freescale.com>2009-05-14 16:38:57 +0800
committerFred Fan <r01011@freescale.com>2009-09-10 16:56:36 +0800
commit30e188a23150345a74f5a83aab344ac8510d38d9 (patch)
treef99cd9f1e14732e09ef66fc3a58dd2c875ef18ff /common/env_common.c
parent31594f542d3c7b1db6b8404e608e452a604bd6d8 (diff)
downloadu-boot-imx-30e188a23150345a74f5a83aab344ac8510d38d9.zip
u-boot-imx-30e188a23150345a74f5a83aab344ac8510d38d9.tar.gz
u-boot-imx-30e188a23150345a74f5a83aab344ac8510d38d9.tar.bz2
ENGR00112273 BBG2: MMC boot support.
BBG2: MMC boot support. Signed-off-by: Terry Lv <r65388@freescale.com>
Diffstat (limited to 'common/env_common.c')
-rw-r--r--common/env_common.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/env_common.c b/common/env_common.c
index be64d13..eb0b374 100644
--- a/common/env_common.c
+++ b/common/env_common.c
@@ -139,6 +139,12 @@ uchar default_environment[] = {
"\0"
};
+#if defined(CONFIG_ENV_IS_IN_NAND) /* Environment is in Nand Flash */ \
+ || defined(CONFIG_ENV_IS_IN_SPI_FLASH) \
+ || defined(CONFIG_ENV_IS_IN_MMC)
+int default_environment_size = sizeof(default_environment);
+#endif
+
void env_crc_update (void)
{
env_ptr->crc = crc32(0, env_ptr->data, ENV_SIZE);