From: Stefan Roese Date: Mon, 27 Nov 2006 16:34:10 +0000 (+0100) Subject: [PATCH] Select NAND embedded environment from board configuration X-Git-Tag: U-Boot-1_2_0~29^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d1a72545296800b7e219f93104ad5836f0003d66;p=u-boot [PATCH] Select NAND embedded environment from board configuration The current NAND Bootloader setup forces the environment variables to be in line with the bootloader. This change enables the configuration to be made in the board include file instead so that it can be individually enabled. Signed-off-by: Nick Spence Signed-off-by: Stefan Roese --- diff --git a/include/configs/sequoia.h b/include/configs/sequoia.h index 1a460cde06..00b92220c1 100644 --- a/include/configs/sequoia.h +++ b/include/configs/sequoia.h @@ -102,6 +102,7 @@ #define CFG_ENV_IS_IN_FLASH 1 /* use FLASH for environment vars */ #else #define CFG_ENV_IS_IN_NAND 1 /* use NAND for environment vars */ +#define CFG_ENV_IS_EMBEDDED 1 /* use embedded environment */ #endif /*----------------------------------------------------------------------- diff --git a/include/environment.h b/include/environment.h index 26b07120da..af605ab7a9 100644 --- a/include/environment.h +++ b/include/environment.h @@ -79,8 +79,7 @@ # ifdef CFG_ENV_OFFSET_REDUND # define CFG_REDUNDAND_ENVIRONMENT # endif -# if defined(CONFIG_NAND_U_BOOT) -/* Use embedded environment in NAND boot versions */ +# ifdef CFG_ENV_IS_EMBEDDED # define ENV_IS_EMBEDDED 1 # endif #endif /* CFG_ENV_IS_IN_NAND */