summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHuang Shijie <b32955@freescale.com>2010-11-02 12:43:15 +0800
committerJustin Waters <justin.waters@timesys.com>2010-12-13 16:10:42 -0500
commit3bad0f8f22c551590d5c9e1c6aced46126def493 (patch)
tree20b61f2916d5c631f5202724156998dddb64d8c5
parent39999430e97c9e19a6ec154c34baef77ebc989b0 (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