summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHuang Shijie <b32955@freescale.com>2010-11-02 12:43:15 +0800
committerScott Sweeny <scott.sweeny@timesys.com>2011-01-19 11:50:19 -0500
commit3b84fc1092fb800e7edc20eb3d79c6528e2bc01a (patch)
tree20b61f2916d5c631f5202724156998dddb64d8c5
parent91fc26a6d6d5448c8a0833f54695396cbcff80e4 (diff)
ENGR00133178-8 NAND : add ONFI NAND commands
add the new ONFI NAND commands to the common header file. Signed-off-by: Huang Shijie <b32955@freescale.com>
-rw-r--r--include/linux/mtd/nand.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h
index fb42bc57d51f..f1ba0f0e0f49 100644
--- a/include/linux/mtd/nand.h
+++ b/include/linux/mtd/nand.h
@@ -99,6 +99,14 @@ extern int nand_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len);
#define NAND_CMD_RNDOUTSTART 0xE0
#define NAND_CMD_CACHEDPROG 0x15
+/* Extended commands for ONFI nand */
+#define NAND_CMD_READ_PARAMETER_PAGE 0xec
+#define NAND_CMD_READ_UNIQUE_ID 0xed
+#define NAND_CMD_GET_FEATURE 0xee
+#define NAND_CMD_SET_FEATURE 0xef
+#define NAND_CMD_RESET_LUN 0xfa
+#define NAND_CMD_SYNC_RESET 0xfc
+
/* Extended commands for AG-AND device */
/*
* Note: the command for NAND_CMD_DEPLETE1 is really 0x00 but