diff options
| author | Markus Klotzbuecher <mk@denx.de> | 2006-03-20 18:02:44 +0100 | 
|---|---|---|
| committer | Markus Klotzbücher <mk@pollux.denx.de> | 2006-03-20 18:02:44 +0100 | 
| commit | e443c944cf4050daffb46d4788446d6c2df8ac6c (patch) | |
| tree | 0eef771495be3fe6ad5013c4044bfcebe584c0f2 /include/environment.h | |
| parent | 5536b2b5a932410a58e65ead9215af3836c8e9e0 (diff) | |
| download | olio-uboot-2014.01-e443c944cf4050daffb46d4788446d6c2df8ac6c.tar.xz olio-uboot-2014.01-e443c944cf4050daffb46d4788446d6c2df8ac6c.zip | |
Support for redundant environment in NAND Flash.
Diffstat (limited to 'include/environment.h')
| -rw-r--r-- | include/environment.h | 12 | 
1 files changed, 12 insertions, 0 deletions
| diff --git a/include/environment.h b/include/environment.h index bb109649f..422f80089 100644 --- a/include/environment.h +++ b/include/environment.h @@ -69,6 +69,18 @@  # endif  #endif	/* CFG_ENV_IS_IN_FLASH */ +#if defined(CFG_ENV_IS_IN_NAND) +# ifndef CFG_ENV_OFFSET +#  error "Need to define CFG_ENV_OFFSET when using CFG_ENV_IS_IN_NAND" +# endif +# ifndef CFG_ENV_SIZE +#  error "Need to define CFG_ENV_SIZE when using CFG_ENV_IS_IN_NAND" +# endif +# ifdef CFG_ENV_OFFSET_REDUND +#  define CFG_REDUNDAND_ENVIRONMENT +# endif +#endif /* CFG_ENV_IS_IN_NAND */ +  #ifdef CFG_REDUNDAND_ENVIRONMENT  # define ENV_HEADER_SIZE	(sizeof(unsigned long) + 1) |