mtd/drivers/mtd/nand nandsim.c,1.5,1.6
Artem Bityuckiy
dedekind at infradead.org
Mon Dec 6 06:49:09 EST 2004
Update of /home/cvs/mtd/drivers/mtd/nand
In directory phoenix.infradead.org:/tmp/cvs-serv31748
Modified Files:
nandsim.c
Log Message:
MTD now have 0x30 LP NAND read command macro, use it instead of custom
macro.
Index: nandsim.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/nandsim.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- nandsim.c 6 Dec 2004 11:42:40 -0000 1.5
+++ nandsim.c 6 Dec 2004 11:49:07 -0000 1.6
@@ -124,12 +124,6 @@
MODULE_PARM_DESC(log, "Perform logging if not zero");
MODULE_PARM_DESC(dbg, "Output debug information if not zero");
-/*
- * There is no macro for 0x30 command which is used in "large page"
- * devices in standard mtd header, define it here.
- */
-#define NAND_CMD_READ2LP 0x30
-
/* The largest possible page size */
#define NS_LARGEST_PAGE_SIZE 2048
@@ -575,7 +569,7 @@
switch (cmd) {
case NAND_CMD_READ0:
- case NAND_CMD_READ2LP:
+ case NAND_CMD_READSTART:
case NAND_CMD_PAGEPROG:
case NAND_CMD_READOOB:
case NAND_CMD_ERASE1:
@@ -606,7 +600,7 @@
return STATE_CMD_READ1;
case NAND_CMD_PAGEPROG:
return STATE_CMD_PAGEPROG;
- case NAND_CMD_READ2LP:
+ case NAND_CMD_READSTART:
return STATE_CMD_READ2LP;
case NAND_CMD_READOOB:
return STATE_CMD_READOOB;
More information about the linux-mtd-cvs
mailing list