diff options
author | Hugo Villeneuve <hugo.villeneuve@lyrtech.com> | 2008-08-19 16:21:03 -0400 |
---|---|---|
committer | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2008-08-25 11:12:44 +0200 |
commit | e39411674669cc880e1ec4a8ca4794fb15c33a45 (patch) | |
tree | e24b46ef15c454e92ddf5552ce2cdf62e41b7a62 /cpu/arm926ejs/davinci/nand.c | |
parent | b3fb663b20d995ca41327db877ddb168279b3f62 (diff) | |
download | u-boot-imx-e39411674669cc880e1ec4a8ca4794fb15c33a45.zip u-boot-imx-e39411674669cc880e1ec4a8ca4794fb15c33a45.tar.gz u-boot-imx-e39411674669cc880e1ec4a8ca4794fb15c33a45.tar.bz2 |
ARM DaVinci: Removed redundant NAND initialization code.
ARM DaVinci: Removed redundant NAND initialization code.
Signed-off-by: Hugo Villeneuve <hugo.villeneuve@lyrtech.com>
Diffstat (limited to 'cpu/arm926ejs/davinci/nand.c')
-rw-r--r-- | cpu/arm926ejs/davinci/nand.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cpu/arm926ejs/davinci/nand.c b/cpu/arm926ejs/davinci/nand.c index 080b32c..5a1da63 100644 --- a/cpu/arm926ejs/davinci/nand.c +++ b/cpu/arm926ejs/davinci/nand.c @@ -369,12 +369,11 @@ int board_nand_init(struct nand_chip *nand) nand->options = NAND_USE_FLASH_BBT; #endif #ifdef CFG_NAND_HW_ECC -#ifdef CFG_NAND_LARGEPAGE nand->ecc.mode = NAND_ECC_HW; +#ifdef CFG_NAND_LARGEPAGE nand->ecc.size = 2048; nand->ecc.bytes = 12; #elif defined(CFG_NAND_SMALLPAGE) - nand->ecc.mode = NAND_ECC_HW; nand->ecc.size = 512; nand->ecc.bytes = 3; #else |