From: Hugo Villeneuve Date: Tue, 19 Aug 2008 20:21:03 +0000 (-0400) Subject: ARM DaVinci: Removed redundant NAND initialization code. X-Git-Url: http://git.dujemihanovic.xyz/html/static/git-favicon.png?a=commitdiff_plain;h=e39411674669cc880e1ec4a8ca4794fb15c33a45;p=u-boot.git ARM DaVinci: Removed redundant NAND initialization code. ARM DaVinci: Removed redundant NAND initialization code. Signed-off-by: Hugo Villeneuve --- diff --git a/cpu/arm926ejs/davinci/nand.c b/cpu/arm926ejs/davinci/nand.c index 080b32c1f2..5a1da633d3 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