[PATCH 3/3] mtd: nand: Wire up on-die ECC support

From: Richard Weinberger
Date: Wed Mar 25 2015 - 10:55:52 EST


Finally add the Kconfig stuff for on-die ECC support
such that the feature can be enabled.

Signed-off-by: Richard Weinberger <richard@xxxxxx>
---
drivers/mtd/nand/Kconfig | 12 ++++++++++++
drivers/mtd/nand/Makefile | 1 +
2 files changed, 13 insertions(+)

diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig
index 5897d8d..215f74e 100644
--- a/drivers/mtd/nand/Kconfig
+++ b/drivers/mtd/nand/Kconfig
@@ -37,6 +37,18 @@ config MTD_NAND_ECC_BCH
ECC codes. They are used with NAND devices requiring more than 1 bit
of error correction.

+config MTD_NAND_ECC_ON_DIE
+ bool "Support Micron On-Die ECC"
+ default n
+ help
+ Some Micron chips have an internal (on-die) ECC-controller that is
+ useful when the host-platform doesn't have hardware-support for
+ multi-bit ECC and software ECC consumes too much CPU cycles.
+ This enables support for this ECC mode.
+ Please consult your NAND chip's datasheet if you want to use
+ on-die ECC, it is likely that you'll have to adjust some timing
+ settings in your board setup.
+
config MTD_SM_COMMON
tristate
default n
diff --git a/drivers/mtd/nand/Makefile b/drivers/mtd/nand/Makefile
index 582bbd05..44e952cc 100644
--- a/drivers/mtd/nand/Makefile
+++ b/drivers/mtd/nand/Makefile
@@ -5,6 +5,7 @@
obj-$(CONFIG_MTD_NAND) += nand.o
obj-$(CONFIG_MTD_NAND_ECC) += nand_ecc.o
obj-$(CONFIG_MTD_NAND_BCH) += nand_bch.o
+obj-$(CONFIG_MTD_NAND_ECC_ON_DIE) += nand_ondie.o
obj-$(CONFIG_MTD_NAND_IDS) += nand_ids.o
obj-$(CONFIG_MTD_SM_COMMON) += sm_common.o

--
2.3.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/