projects
/
openwrt
/
staging
/
wigyori.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ar71xx: ar934x-nfc: allow ECC to be configured in software BCH mode
[openwrt/staging/wigyori.git]
/
target
/
linux
/
ar71xx
/
files
/
drivers
/
mtd
/
nand
/
ar934x_nfc.c
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 923125159376656c5e160fdcd0dcaef5217c7536..8968129d4f9cca73e5506d05ba955b5022db7f65 100644
(file)
--- 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)