env_nand.c: Added bad block management for environment variables
authorStuart Wood <stuart.wood@labxtechnologies.com>
Fri, 30 May 2008 20:05:28 +0000 (16:05 -0400)
committerScott Wood <scottwood@freescale.com>
Fri, 6 Jun 2008 16:06:45 +0000 (11:06 -0500)
commitcc49cadeeb8bb2f0ae3fdc13af7051ae59f083bc
treec431dc6f62c5b5c5c133d26b7464d09621c46afe
parent8155efbd7ae9c65564ca98affe94631d612ae088
env_nand.c: Added bad block management for environment variables

Modified to check for bad blocks and to skipping over them when
CFG_ENV_RANGE has been defined.
CFG_ENV_RANGE must be larger than CFG_ENV_SIZE and aligned to the NAND
flash block size.

Signed-off-by: Stuart Wood <stuart.wood@labxtechnologies.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
common/env_nand.c