summaryrefslogtreecommitdiff
path: root/drivers/mtd/nand/Kconfig
diff options
context:
space:
mode:
authorStefan Agner <stefan@agner.ch>2015-05-08 19:07:12 +0200
committerScott Wood <scottwood@freescale.com>2015-05-24 14:27:46 -0500
commit080a71e8e9fe917ba82bdde2251eb0d4dd68cb5c (patch)
treec1c6eec50e91e475414807837c8b005d28a140c1 /drivers/mtd/nand/Kconfig
parent5519194d4f6ba3c1aeea2f07f444cc936913560a (diff)
downloadu-boot-imx-080a71e8e9fe917ba82bdde2251eb0d4dd68cb5c.zip
u-boot-imx-080a71e8e9fe917ba82bdde2251eb0d4dd68cb5c.tar.gz
u-boot-imx-080a71e8e9fe917ba82bdde2251eb0d4dd68cb5c.tar.bz2
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/Kconfig15
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig
index 0a9e96f..3024357 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