From patchwork Tue Sep 14 08:06:10 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rohit Hassan Sathyanarayan X-Patchwork-Id: 64677 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 566F2B6EF7 for ; Tue, 14 Sep 2010 18:07:42 +1000 (EST) Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1OvQX8-0003cQ-AC; Tue, 14 Sep 2010 08:06:30 +0000 Received: from mailout4.samsung.com ([203.254.224.34]) by bombadil.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1OvQX5-0003YX-WA for linux-mtd@lists.infradead.org; Tue, 14 Sep 2010 08:06:28 +0000 Received: from epmmp1 (mailout4.samsung.com [203.254.224.34]) by mailout4.samsung.com (Sun Java(tm) System Messaging Server 7u3-15.01 64bit (built Feb 12 2010)) with ESMTP id <0L8Q00M3D96B5RB0@mailout4.samsung.com> for linux-mtd@lists.infradead.org; Tue, 14 Sep 2010 17:06:11 +0900 (KST) Received: from roh83 ([107.108.214.183]) by mmp1.samsung.com (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTPA id <0L8Q00KVH966XR@mmp1.samsung.com> for linux-mtd@lists.infradead.org; Tue, 14 Sep 2010 17:06:11 +0900 (KST) Date: Tue, 14 Sep 2010 13:36:10 +0530 From: Rohit Hassan Sathyanarayan Subject: [PATCH 2/2][MTD]MLC device check in OneNAND driver To: dedekind1@gmail.com Message-id: <000101cb53e3$b15d6280$14182780$%hs@samsung.com> MIME-version: 1.0 X-Mailer: Microsoft Office Outlook 12.0 Content-language: en-us Thread-index: ActT47DtyiLn/C5zS+a95HWhFQiMfg== X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20100914_040628_266960_D735BF19 X-CRM114-Status: GOOD ( 19.31 ) X-Spam-Score: -2.3 (--) X-Spam-Report: SpamAssassin version 3.3.1 on bombadil.infradead.org summary: Content analysis details: (-2.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, medium trust [203.254.224.34 listed in list.dnswl.org] Cc: v.dalal@samsung.com, linux-mtd@lists.infradead.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 Hi Artem, Adding MLC device check Macro. Signed-off-by: Rohit HS --- include/mtd/mtd-abi.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) --- Regards, Rohit.H.S diff --git a/include/mtd/mtd-abi.h b/include/mtd/mtd-abi.h index 4debb45..6c6465d 100644 --- a/include/mtd/mtd-abi.h +++ b/include/mtd/mtd-abi.h @@ -57,12 +57,14 @@ struct mtd_oob_buf64 { #define MTD_BIT_WRITEABLE 0x800 /* Single bits can be flipped */ #define MTD_NO_ERASE 0x1000 /* No erase necessary */ #define MTD_POWERUP_LOCK 0x2000 /* Always locked after reset */ +#define MTD_WRITABLE_ONCE 0x4000 // Some common devices / combinations of capabilities #define MTD_CAP_ROM 0 #define MTD_CAP_RAM (MTD_WRITEABLE | MTD_BIT_WRITEABLE | MTD_NO_ERASE) #define MTD_CAP_NORFLASH (MTD_WRITEABLE | MTD_BIT_WRITEABLE) #define MTD_CAP_NANDFLASH (MTD_WRITEABLE) +#define MTD_CAP_MLCNANDFLASH (MTD_WRITEABLE | MTD_WRITABLE_ONCE) /* ECC byte placement */ #define MTD_NANDECC_OFF 0 // Switch off ECC (Not recommended)