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: 67659 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nBFFkxdv017771 for ; Tue, 15 Dec 2009 15:46:59 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752401AbZLOPq6 (ORCPT ); Tue, 15 Dec 2009 10:46:58 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750978AbZLOPq6 (ORCPT ); Tue, 15 Dec 2009 10:46:58 -0500 Received: from mail-bw0-f227.google.com ([209.85.218.227]:35213 "EHLO mail-bw0-f227.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750838AbZLOPq5 (ORCPT ); Tue, 15 Dec 2009 10:46:57 -0500 Received: by bwz27 with SMTP id 27so2954021bwz.21 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 Cc: linux-omap@vger.kernel.org Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org 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