From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933041AbbCYOzs (ORCPT ); Wed, 25 Mar 2015 10:55:48 -0400 Received: from mail.sigma-star.at ([95.130.255.111]:14388 "EHLO mail.sigma-star.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752157AbbCYOCr (ORCPT ); Wed, 25 Mar 2015 10:02:47 -0400 From: Richard Weinberger To: linux-mtd@lists.infradead.org Cc: linux-kernel@vger.kernel.org, dwmw2@infradead.org, computersforpeace@gmail.com, Richard Weinberger Subject: [PATCH 3/3] mtd: nand: Wire up on-die ECC support Date: Wed, 25 Mar 2015 15:02:31 +0100 Message-Id: <1427292151-3835-4-git-send-email-richard@nod.at> X-Mailer: git-send-email 2.3.4 In-Reply-To: <1427292151-3835-1-git-send-email-richard@nod.at> References: <1427292151-3835-1-git-send-email-richard@nod.at> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Finally add the Kconfig stuff for on-die ECC support such that the feature can be enabled. Signed-off-by: Richard Weinberger --- 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.sigma-star.at ([95.130.255.111]) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Yalth-00074z-LB for linux-mtd@lists.infradead.org; Wed, 25 Mar 2015 14:03:09 +0000 From: Richard Weinberger To: linux-mtd@lists.infradead.org Subject: [PATCH 3/3] mtd: nand: Wire up on-die ECC support Date: Wed, 25 Mar 2015 15:02:31 +0100 Message-Id: <1427292151-3835-4-git-send-email-richard@nod.at> In-Reply-To: <1427292151-3835-1-git-send-email-richard@nod.at> References: <1427292151-3835-1-git-send-email-richard@nod.at> Cc: Richard Weinberger , computersforpeace@gmail.com, dwmw2@infradead.org, linux-kernel@vger.kernel.org List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Finally add the Kconfig stuff for on-die ECC support such that the feature can be enabled. Signed-off-by: Richard Weinberger --- 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