mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 23:42:43 +00:00
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
This commit is contained in:
parent
1772c47c51
commit
a5cd02aec4
@ -1437,6 +1437,10 @@ ar934x_nfc_probe(struct platform_device *pdev)
|
|||||||
nand->ecc.mode = NAND_ECC_SOFT;
|
nand->ecc.mode = NAND_ECC_SOFT;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case AR934X_NFC_ECC_SOFT_BCH:
|
||||||
|
nand->ecc.mode = NAND_ECC_SOFT_BCH;
|
||||||
|
break;
|
||||||
|
|
||||||
case AR934X_NFC_ECC_HW:
|
case AR934X_NFC_ECC_HW:
|
||||||
ret = ar934x_nfc_setup_hwecc(nfc);
|
ret = ar934x_nfc_setup_hwecc(nfc);
|
||||||
if (ret)
|
if (ret)
|
||||||
|
@ -20,6 +20,7 @@ struct mtd_partition;
|
|||||||
enum ar934x_nfc_ecc_mode {
|
enum ar934x_nfc_ecc_mode {
|
||||||
AR934X_NFC_ECC_SOFT = 0,
|
AR934X_NFC_ECC_SOFT = 0,
|
||||||
AR934X_NFC_ECC_HW,
|
AR934X_NFC_ECC_HW,
|
||||||
|
AR934X_NFC_ECC_SOFT_BCH,
|
||||||
};
|
};
|
||||||
|
|
||||||
struct ar934x_nfc_platform_data {
|
struct ar934x_nfc_platform_data {
|
||||||
|
Loading…
Reference in New Issue
Block a user