mtd: flash drivers set ecc strength
[deliverable/linux.git] / drivers / mtd / nand / bf5xx_nand.c
index dd899cb5d366e4de044ec16129000bb99c6fcc58..d7b86b925de5ead4b4c0653bf13080bea55a4156 100644 (file)
@@ -702,9 +702,11 @@ static int bf5xx_nand_scan(struct mtd_info *mtd)
                if (likely(mtd->writesize >= 512)) {
                        chip->ecc.size = 512;
                        chip->ecc.bytes = 6;
+                       chip->ecc.strength = 2;
                } else {
                        chip->ecc.size = 256;
                        chip->ecc.bytes = 3;
+                       chip->ecc.strength = 1;
                        bfin_write_NFC_CTL(bfin_read_NFC_CTL() & ~(1 << NFC_PG_SIZE_OFFSET));
                        SSYNC();
                }
This page took 0.024171 seconds and 5 git commands to generate.