From patchwork Tue Dec 15 15:46:35 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: vimal singh X-Patchwork-Id: 41193 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [18.85.46.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 2D01FB6F12 for ; Wed, 16 Dec 2009 02:49:04 +1100 (EST) Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1NKZcA-0003Eq-GB; Tue, 15 Dec 2009 15:47:06 +0000 Received: from mail-bw0-f212.google.com ([209.85.218.212]) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1NKZc2-0003DF-68 for linux-mtd@lists.infradead.org; Tue, 15 Dec 2009 15:47:03 +0000 Received: by bwz4 with SMTP id 4so2975249bwz.2 for ; Tue, 15 Dec 2009 07:46:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:message-id :subject:to:cc:content-type; bh=XS+EdGDevN3p1Hc0J/0uLTa7wAK61HPCHuEvLcCkgYs=; b=Q46U1/xBTyyLjseXDJUIpCqxS5avEfGDwTwI/rlSzaoYhC7xZ43fXi5LVFFmAQE17p EnB3Dhh6bfJnHF9biTpCHOjIePJk8FiP4ynhllnE2acdDllH1RHnEauCi56XaPJBa05A /HUlaw8ug0tQNECeM3PW7I2ZVpuAlTpPhG9TM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:cc:content-type; b=JSNkhqCbwh95qdqPDFNVIWZNZwhuIgEucNiaNcrxDOMLGCmNvdmg1ToTKUy+5R6cWl kqoEJ29ndJ28hBeKMSULcQx/V88u2SnBCyi1DZ6AiBwaDe0v1d/BHNHsDDCcqrIzrx6c 7er+FJljWuGDfPrXbJ2XpapTtp6qRzl5uTnPc= MIME-Version: 1.0 Received: by 10.204.175.80 with SMTP id w16mr3802072bkz.207.1260892015419; Tue, 15 Dec 2009 07:46:55 -0800 (PST) From: Vimal Singh Date: Tue, 15 Dec 2009 21:16:35 +0530 Message-ID: Subject: [PATCH] OMAP: NAND: Adding config option to enable/disable HW ECC mode To: Linux MTD X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20091215_104658_402907_A5128F46 X-CRM114-Status: GOOD ( 12.45 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.2.5 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- _SUMMARY_ Cc: linux-omap@vger.kernel.org X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org OMAP NAND driver got HW ECC implemented. From d5e28c9fdbc6b0a95c1259fac7add207f9c294d7 Mon Sep 17 00:00:00 2001 From: Vimal Singh Date: Tue, 15 Dec 2009 21:10:54 +0530 Subject: [PATCH] OMAP: NAND: Adding config option to enable/disable HW ECC mode This patch adds config option to select/deselect HW ECC feature on OMAP NAND driver. This is a feature provided by OMAP GPMC for NAND devices. Signed-off-by: Vimal Singh --- drivers/mtd/nand/Kconfig | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig index 34598e9..6c4b27c 100644 --- a/drivers/mtd/nand/Kconfig +++ b/drivers/mtd/nand/Kconfig @@ -97,6 +97,16 @@ config MTD_NAND_OMAP_PREFETCH_DMA or in DMA interrupt mode. Say y for DMA mode or MPU mode will be used +config MTD_NAND_OMAP_HWECC + bool "The Hardware ECC support" + depends on MTD_NAND && MTD_NAND_OMAP2 + default n + help + The ECC compuatation for the data to be written/read can be either by + software or omap has Hw ecc engine which calculates it. + MTD_NAND_OMAP_HWECC = y which enables the hw ecc + MTD_NAND_OMAP_HWECC = n enables software ecc + config MTD_NAND_TS7250 tristate "NAND Flash device on TS-7250 board" depends on MACH_TS72XX