diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-06-18 06:37:01 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-06-18 06:37:01 +0000 |
commit | a5cd02aec4264339c2db47b584cfc65dbd8ef2ea (patch) | |
tree | d04ab248465628f132bb3243d5ddcb54d0ca73ec /target/linux/ar71xx/files/drivers/mtd/nand | |
parent | 1772c47c51b20e612fb1e2cc6013e5301b5e0bbb (diff) | |
download | mtk-20170518-a5cd02aec4264339c2db47b584cfc65dbd8ef2ea.zip mtk-20170518-a5cd02aec4264339c2db47b584cfc65dbd8ef2ea.tar.gz mtk-20170518-a5cd02aec4264339c2db47b584cfc65dbd8ef2ea.tar.bz2 |
ar71xx: ar934x-nfc: allow ECC to be configured in software BCH mode
Some devices ship with NAND images that use BCH ECC. Let the driver know
about that ECC mode so that it can be selected by machine files.
Signed-off-by: Thomas Hebb <tommyhebb@gmail.com>
SVN-Revision: 46022
Diffstat (limited to 'target/linux/ar71xx/files/drivers/mtd/nand')
-rw-r--r-- | target/linux/ar71xx/files/drivers/mtd/nand/ar934x_nfc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/drivers/mtd/nand/ar934x_nfc.c b/target/linux/ar71xx/files/drivers/mtd/nand/ar934x_nfc.c index 9231251..8968129 100644 --- a/target/linux/ar71xx/files/drivers/mtd/nand/ar934x_nfc.c +++ b/target/linux/ar71xx/files/drivers/mtd/nand/ar934x_nfc.c @@ -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) |