summaryrefslogtreecommitdiff
path: root/include/environment.h
diff options
context:
space:
mode:
authorJoe Hershberger <joe.hershberger@ni.com>2013-04-08 10:32:52 +0000
committerTom Rini <trini@ti.com>2013-04-11 15:52:55 -0400
commit785881f775252940185e10fbb2d5299c9ffa6bce (patch)
treeb945a64033ed2a9eeb87527c81a746a53ba18c2a /include/environment.h
parent2b74433f365fa677a60431a80e524b5d8d04e995 (diff)
downloadu-boot-imx-785881f775252940185e10fbb2d5299c9ffa6bce.zip
u-boot-imx-785881f775252940185e10fbb2d5299c9ffa6bce.tar.gz
u-boot-imx-785881f775252940185e10fbb2d5299c9ffa6bce.tar.bz2
env: Add redundant env support to UBI env
Allow the user to specify two UBI volumes to use for the environment Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'include/environment.h')
-rw-r--r--include/environment.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/environment.h b/include/environment.h
index ece073f..4c6a37b 100644
--- a/include/environment.h
+++ b/include/environment.h
@@ -103,6 +103,9 @@ extern unsigned long nand_env_oob_offset;
# ifndef CONFIG_ENV_UBI_VOLUME
# error "Need to define CONFIG_ENV_UBI_VOLUME when using CONFIG_ENV_IS_IN_UBI"
# endif
+# if defined(CONFIG_ENV_UBI_VOLUME_REDUND)
+# define CONFIG_SYS_REDUNDAND_ENVIRONMENT
+# endif
# ifndef CONFIG_ENV_SIZE
# error "Need to define CONFIG_ENV_SIZE when using CONFIG_ENV_IS_IN_UBI"
# endif