From patchwork Thu Aug 12 12:53:41 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 61588 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 B9718B70D3 for ; Thu, 12 Aug 2010 22:55:22 +1000 (EST) Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1OjXIb-0003cP-NT; Thu, 12 Aug 2010 12:54:21 +0000 Received: from mail-wy0-f177.google.com ([74.125.82.177]) by bombadil.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1OjXIX-0003bO-M0 for linux-mtd@lists.infradead.org; Thu, 12 Aug 2010 12:54:19 +0000 Received: by wyb34 with SMTP id 34so1577597wyb.36 for ; Thu, 12 Aug 2010 05:54:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:from:date:subject :mime-version:x-tuid:x-uid:x-length:to:cc:content-type :content-transfer-encoding:message-id; bh=mEUa8NFf3YR/dbfReJ21ZuTzTv8mksnuAbSJJ8sl+1o=; b=R29DNgr/ZXD/HiM3AsdschSqorkXhHo382MAgneBPBKI45TIkel5O9CNJ0uKhjbaI8 rtm60kIoysZAZRaVKVHmQw3BFsh2qbtaIuQyy+ORGFZUId/2vqD2rOaTIrcO7mM+CK82 yPWHZw6BGNQQgsDdGL8vXR8Mb1RDf5f8+26UM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:date:subject:mime-version:x-tuid:x-uid:x-length:to:cc :content-type:content-transfer-encoding:message-id; b=IsAKVCK4aaga4CBZjQE+RkzZy80Zewh6KFLcK+hiqcs52lBn3AiW1of7yk/Ky1l/to RF6+afqnGba7OtUeasok4VBpLK6HZpDjIKfIyTqMb2Opv8SQizw78iQGvAcFeo4DH6Z4 WJFQ2i9mUH/LNsLXLLlJME5pQ2IKx+rJgGZ3w= Received: by 10.216.1.12 with SMTP id 12mr6614276wec.1.1281617623703; Thu, 12 Aug 2010 05:53:43 -0700 (PDT) Received: from flexo.localnet (bobafett.staff.proxad.net [213.228.1.121]) by mx.google.com with ESMTPS id k7sm799161wej.2.2010.08.12.05.53.41 (version=SSLv3 cipher=RC4-MD5); Thu, 12 Aug 2010 05:53:41 -0700 (PDT) From: Florian Fainelli Date: Thu, 12 Aug 2010 14:53:41 +0200 Subject: [PATCH 1/3] NAND: add NAND_CMD_PARAM (0xec) definition MIME-Version: 1.0 X-TUID: 173d3f72b6ee7613 X-UID: 162 X-Length: 1336 To: linux-mtd@lists.infradead.org Message-Id: <201008121453.41126.florian@openwrt.org> X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20100812_085419_206931_C3F6E1E4 X-CRM114-Status: GOOD ( 12.17 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.3.1 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is freemail (f.fainelli[at]gmail.com) 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.0 T_TO_NO_BRKTS_FREEMAIL T_TO_NO_BRKTS_FREEMAIL Cc: Maxime Bizon , David Woodhouse , Brian Norris , Matthieu CASTET 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 This command is used to read the device ONFI paramaters page. We will use it in subsequent patches. Signed-off-by: Florian Fainelli diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h index 102e12c..8b288b6 100644 --- a/include/linux/mtd/nand.h +++ b/include/linux/mtd/nand.h @@ -88,6 +88,7 @@ extern int nand_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len); #define NAND_CMD_RNDIN 0x85 #define NAND_CMD_READID 0x90 #define NAND_CMD_ERASE2 0xd0 +#define NAND_CMD_PARAM 0xec #define NAND_CMD_RESET 0xff #define NAND_CMD_LOCK 0x2a