Patchwork [1/3,v3] NAND: add NAND_CMD_PARAM (0xec) definition

login
register
mail settings
Submitter Florian Fainelli
Date Aug. 30, 2010, 4:32 p.m.
Message ID <201008301832.14935.florian@openwrt.org>
Download mbox | patch
Permalink /patch/63075/
State New
Headers show

Comments

Florian Fainelli - Aug. 30, 2010, 4:32 p.m.
This command is used to read the device ONFI parameters page.

Signed-off-by: Florian Fainelli <ffainelli@freebox.fr>
---

Patch

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