|
@@ -74,6 +74,8 @@ struct onenand_bufferram {
|
|
* @command: [REPLACEABLE] hardware specific function for writing
|
|
* @command: [REPLACEABLE] hardware specific function for writing
|
|
* commands to the chip
|
|
* commands to the chip
|
|
* @wait: [REPLACEABLE] hardware specific function for wait on ready
|
|
* @wait: [REPLACEABLE] hardware specific function for wait on ready
|
|
|
|
+ * @bbt_wait: [REPLACEABLE] hardware specific function for bbt wait on ready
|
|
|
|
+ * @unlock_all: [REPLACEABLE] hardware specific function for unlock all
|
|
* @read_bufferram: [REPLACEABLE] hardware specific function for BufferRAM Area
|
|
* @read_bufferram: [REPLACEABLE] hardware specific function for BufferRAM Area
|
|
* @write_bufferram: [REPLACEABLE] hardware specific function for BufferRAM Area
|
|
* @write_bufferram: [REPLACEABLE] hardware specific function for BufferRAM Area
|
|
* @read_word: [REPLACEABLE] hardware specific function for read
|
|
* @read_word: [REPLACEABLE] hardware specific function for read
|
|
@@ -118,6 +120,8 @@ struct onenand_chip {
|
|
|
|
|
|
int (*command)(struct mtd_info *mtd, int cmd, loff_t address, size_t len);
|
|
int (*command)(struct mtd_info *mtd, int cmd, loff_t address, size_t len);
|
|
int (*wait)(struct mtd_info *mtd, int state);
|
|
int (*wait)(struct mtd_info *mtd, int state);
|
|
|
|
+ int (*bbt_wait)(struct mtd_info *mtd, int state);
|
|
|
|
+ void (*unlock_all)(struct mtd_info *mtd);
|
|
int (*read_bufferram)(struct mtd_info *mtd, int area,
|
|
int (*read_bufferram)(struct mtd_info *mtd, int area,
|
|
unsigned char *buffer, int offset, size_t count);
|
|
unsigned char *buffer, int offset, size_t count);
|
|
int (*write_bufferram)(struct mtd_info *mtd, int area,
|
|
int (*write_bufferram)(struct mtd_info *mtd, int area,
|
|
@@ -184,6 +188,7 @@ struct onenand_chip {
|
|
#define ONENAND_HAS_CONT_LOCK (0x0001)
|
|
#define ONENAND_HAS_CONT_LOCK (0x0001)
|
|
#define ONENAND_HAS_UNLOCK_ALL (0x0002)
|
|
#define ONENAND_HAS_UNLOCK_ALL (0x0002)
|
|
#define ONENAND_HAS_2PLANE (0x0004)
|
|
#define ONENAND_HAS_2PLANE (0x0004)
|
|
|
|
+#define ONENAND_SKIP_UNLOCK_CHECK (0x0100)
|
|
#define ONENAND_PAGEBUF_ALLOC (0x1000)
|
|
#define ONENAND_PAGEBUF_ALLOC (0x1000)
|
|
#define ONENAND_OOBBUF_ALLOC (0x2000)
|
|
#define ONENAND_OOBBUF_ALLOC (0x2000)
|
|
|
|
|