diff options
author | Stefan Agner <stefan@agner.ch> | 2015-05-08 19:07:12 +0200 |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2015-05-24 14:27:46 -0500 |
commit | 080a71e8e9fe917ba82bdde2251eb0d4dd68cb5c (patch) | |
tree | c1c6eec50e91e475414807837c8b005d28a140c1 /drivers/mtd/nand/Kconfig | |
parent | 5519194d4f6ba3c1aeea2f07f444cc936913560a (diff) | |
download | u-boot-080a71e8e9fe917ba82bdde2251eb0d4dd68cb5c.tar.gz |
mtd: vf610_nfc: add 32-error correction option for HW ECC
Add option to choose between current 24-error correction and 32-error
correction through Kconfig. 32-error correction allow to use NAND
chips which require up to 8-bit error correction per 512 byte (when
using 2K pages).
Signed-off-by: Stefan Agner <stefan@agner.ch>
Diffstat (limited to 'drivers/mtd/nand/Kconfig')
-rw-r--r-- | drivers/mtd/nand/Kconfig | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig index 0a9e96f60a..3024357de7 100644 --- a/drivers/mtd/nand/Kconfig +++ b/drivers/mtd/nand/Kconfig @@ -41,6 +41,21 @@ config NAND_VF610_NFC The driver supports a maximum 2k page size. The driver currently does not support hardware ECC. +choice + prompt "Hardware ECC strength" + depends on NAND_VF610_NFC + default SYS_NAND_VF610_NFC_45_ECC_BYTES + help + Select the ECC strength used in the hardware BCH ECC block. + +config SYS_NAND_VF610_NFC_45_ECC_BYTES + bool "24-error correction (45 ECC bytes)" + +config SYS_NAND_VF610_NFC_60_ECC_BYTES + bool "32-error correction (60 ECC bytes)" + +endchoice + comment "Generic NAND options" # Enhance depends when converting drivers to Kconfig which use this config |