summaryrefslogtreecommitdiff
path: root/include/linux/mtd/onenand.h
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2008-08-14 11:26:22 +0200
committerWolfgang Denk <wd@denx.de>2008-08-14 11:26:22 +0200
commit28ac6719108e989429de2b3dfa90312ba7c4d27b (patch)
tree876a26cd366f7bd80b88f02d6bf5b149f385dfa1 /include/linux/mtd/onenand.h
parent2fd0aad443c966ce62008225e57b18e2dcf4e330 (diff)
parent68cf19aae48f2969ec70669604d0d776f02c8bc4 (diff)
downloadu-boot-imx-28ac6719108e989429de2b3dfa90312ba7c4d27b.zip
u-boot-imx-28ac6719108e989429de2b3dfa90312ba7c4d27b.tar.gz
u-boot-imx-28ac6719108e989429de2b3dfa90312ba7c4d27b.tar.bz2
Merge branch 'master' of git://git.denx.de/u-boot-nand-flash
Diffstat (limited to 'include/linux/mtd/onenand.h')
-rw-r--r--include/linux/mtd/onenand.h19
1 files changed, 4 insertions, 15 deletions
diff --git a/include/linux/mtd/onenand.h b/include/linux/mtd/onenand.h
index 4b0c2df..8a0fd0d 100644
--- a/include/linux/mtd/onenand.h
+++ b/include/linux/mtd/onenand.h
@@ -17,6 +17,7 @@
/* Note: The header order is impoertant */
#include <onenand_uboot.h>
+#include <linux/mtd/compat.h>
#include <linux/mtd/bbm.h>
#define MAX_BUFFERRAM 2
@@ -28,20 +29,6 @@ extern int onenand_scan (struct mtd_info *mtd, int max_chips);
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_UNLOCKING,
- FL_LOCKING,
-} onenand_state_t;
-
-/**
* struct onenand_bufferram - OneNAND BufferRAM Data
* @param block block address in BufferRAM
* @param page page address in BufferRAM
@@ -103,10 +90,12 @@ struct onenand_chip {
unsigned short (*read_word) (void __iomem * addr);
void (*write_word) (unsigned short value, void __iomem * addr);
void (*mmcontrol) (struct mtd_info * mtd, int sync_read);
+ int (*block_markbad)(struct mtd_info *mtd, loff_t ofs);
+ int (*scan_bbt)(struct mtd_info *mtd);
spinlock_t chip_lock;
wait_queue_head_t wq;
- onenand_state_t state;
+ int state;
struct nand_oobinfo *autooob;