]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM DaVinci: Removed redundant NAND initialization code.
authorHugo Villeneuve <hugo.villeneuve@lyrtech.com>
Tue, 19 Aug 2008 20:21:03 +0000 (16:21 -0400)
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Mon, 25 Aug 2008 09:12:44 +0000 (11:12 +0200)
ARM DaVinci: Removed redundant NAND initialization code.

Signed-off-by: Hugo Villeneuve <hugo.villeneuve@lyrtech.com>
cpu/arm926ejs/davinci/nand.c

index 080b32c1f20a4addbdf2bc1165320ee30ea16e7a..5a1da633d3a6e2a298ef0cd56f1cda66b8d1634c 100644 (file)
@@ -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