ar71xx: ar934x-nfc: allow ECC to be configured in software BCH mode
[openwrt/staging/chunkeey.git] / target / linux / ar71xx / files / drivers / mtd / nand / ar934x_nfc.c
index 923125159376656c5e160fdcd0dcaef5217c7536..8968129d4f9cca73e5506d05ba955b5022db7f65 100644 (file)
@@ -1437,6 +1437,10 @@ ar934x_nfc_probe(struct platform_device *pdev)
                nand->ecc.mode = NAND_ECC_SOFT;
                break;
 
+       case AR934X_NFC_ECC_SOFT_BCH:
+               nand->ecc.mode = NAND_ECC_SOFT_BCH;
+               break;
+
        case AR934X_NFC_ECC_HW:
                ret = ar934x_nfc_setup_hwecc(nfc);
                if (ret)