--- zzzz-none-000/linux-2.6.28.10/include/linux/mtd/nand.h 2009-05-02 18:54:43.000000000 +0000 +++ fusiv-7390-686/linux-2.6.28.10/include/linux/mtd/nand.h 2013-06-03 09:51:03.000000000 +0000 @@ -85,6 +85,8 @@ #define NAND_CMD_RNDOUTSTART 0xE0 #define NAND_CMD_CACHEDPROG 0x15 +#define NAND_ADR_ID 0 + /* Extended commands for AG-AND device */ /* * Note: the command for NAND_CMD_DEPLETE1 is really 0x00 but @@ -103,12 +105,15 @@ #define NAND_CMD_STATUS_ERROR3 0x76 #define NAND_CMD_STATUS_RESET 0x7f #define NAND_CMD_STATUS_CLEAR 0xff +#define NAND_CMD_CACHEREAD_SEQ_CONTINUE 0x31 +#define NAND_CMD_CACHEREAD_SEQ_STOP 0x3F #define NAND_CMD_NONE -1 /* Status bits */ #define NAND_STATUS_FAIL 0x01 #define NAND_STATUS_FAIL_N1 0x02 +#define NAND_STATUS_CRITICAL_BLOCK 0x08 #define NAND_STATUS_TRUE_READY 0x20 #define NAND_STATUS_READY 0x40 #define NAND_STATUS_WP 0x80 @@ -193,6 +198,8 @@ /* This option is defined if the board driver allocates its own buffers (e.g. because it needs them DMA-coherent */ #define NAND_OWN_BUFFERS 0x00040000 +/* Flash has internal ECC. Use options to e.g. check status after read and write ops. */ +#define NAND_FLASH_HWECC 0x00080000 /* Options set by nand scan */ /* Nand scan has allocated controller struct */ #define NAND_CONTROLLER_ALLOC 0x80000000