|
@@ -14,6 +14,7 @@
|
|
|
|
|
|
#include <linux/spinlock.h>
|
|
|
#include <linux/completion.h>
|
|
|
+#include <linux/mtd/flashchip.h>
|
|
|
#include <linux/mtd/onenand_regs.h>
|
|
|
#include <linux/mtd/bbm.h>
|
|
|
|
|
@@ -25,22 +26,6 @@ extern int onenand_scan(struct mtd_info *mtd, int max_chips);
|
|
|
/* Free resources held by the OneNAND device */
|
|
|
extern void onenand_release(struct mtd_info *mtd);
|
|
|
|
|
|
-/*
|
|
|
- * onenand_state_t - chip states
|
|
|
- * Enumeration for OneNAND flash chip state
|
|
|
- */
|
|
|
-typedef enum {
|
|
|
- FL_READY,
|
|
|
- FL_READING,
|
|
|
- FL_WRITING,
|
|
|
- FL_ERASING,
|
|
|
- FL_SYNCING,
|
|
|
- FL_LOCKING,
|
|
|
- FL_RESETING,
|
|
|
- FL_OTPING,
|
|
|
- FL_PM_SUSPENDED,
|
|
|
-} onenand_state_t;
|
|
|
-
|
|
|
/**
|
|
|
* struct onenand_bufferram - OneNAND BufferRAM Data
|
|
|
* @blockpage: block & page address in BufferRAM
|
|
@@ -137,7 +122,7 @@ struct onenand_chip {
|
|
|
|
|
|
spinlock_t chip_lock;
|
|
|
wait_queue_head_t wq;
|
|
|
- onenand_state_t state;
|
|
|
+ flstate_t state;
|
|
|
unsigned char *page_buf;
|
|
|
unsigned char *oob_buf;
|
|
|
|