]> git.sur5r.net Git - u-boot/blobdiff - drivers/mtd/nand/bfin_nand.c
mtd: nand: omap: make am33xx/elm.c as common driver for all OMAPx and AMxxxx platforms
[u-boot] / drivers / mtd / nand / bfin_nand.c
index 3ee060f859fc9646d27a61e271a2bc08253a8541..7e755e8965aa54d6957576cbbaf224783ce949a0 100644 (file)
@@ -73,7 +73,7 @@ static void bfin_nfc_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl)
        SSYNC();
 }
 
-int bfin_nfc_devready(struct mtd_info *mtd)
+static int bfin_nfc_devready(struct mtd_info *mtd)
 {
        pr_stamp();
        return (bfin_read_NFC_STAT() & NBUSY) ? 1 : 0;
@@ -374,9 +374,11 @@ int board_nand_init(struct nand_chip *chip)
                if (!NAND_IS_512()) {
                        chip->ecc.bytes = 3;
                        chip->ecc.size = 256;
+                       chip->ecc.strength = 1;
                } else {
                        chip->ecc.bytes = 6;
                        chip->ecc.size = 512;
+                       chip->ecc.strength = 2;
                }
                chip->ecc.mode = NAND_ECC_HW;
                chip->ecc.calculate = bfin_nfc_calculate_ecc;