summaryrefslogtreecommitdiff
path: root/include/linux/mtd/nand.h
diff options
context:
space:
mode:
authorRob Herring <r.herring@freescale.com>2009-09-16 11:43:45 -0500
committerJason Liu <r64343@freescale.com>2012-01-09 19:53:40 +0800
commit90634d9f5333fb991d3bb47de4c4661e87a879c2 (patch)
tree028afd515a2f68c0fc57b271973d7e41fac769b9 /include/linux/mtd/nand.h
parentd051452dad1cbd769e7f48fd02fe2b6c4fcdc44c (diff)
nand: export symbols needed for stmp3xxx nand nand: increase max nand page and oob sizes
Signed-off-by: Rob Herring <r.herring@freescale.com>
Diffstat (limited to 'include/linux/mtd/nand.h')
-rw-r--r--include/linux/mtd/nand.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h
index c2b9ac4fbc4a..60bfbb1d9342 100644
--- a/include/linux/mtd/nand.h
+++ b/include/linux/mtd/nand.h
@@ -56,8 +56,8 @@ extern int nand_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len);
* is supported now. If you add a chip with bigger oobsize/page
* adjust this accordingly.
*/
-#define NAND_MAX_OOBSIZE 576
-#define NAND_MAX_PAGESIZE 8192
+#define NAND_MAX_OOBSIZE (576 * NAND_MAX_CHIPS)
+#define NAND_MAX_PAGESIZE (8192 * NAND_MAX_CHIPS)
/*
* Constants for hardware specific CLE/ALE/NCE function
@@ -602,6 +602,10 @@ extern int nand_erase_nand(struct mtd_info *mtd, struct erase_info *instr,
int allowbbt);
extern int nand_do_read(struct mtd_info *mtd, loff_t from, size_t len,
size_t *retlen, uint8_t *buf);
+extern int nand_do_read_ops(struct mtd_info *mtd, loff_t from,
+ struct mtd_oob_ops *ops);
+extern int nand_do_write_ops(struct mtd_info *mtd, loff_t to,
+ struct mtd_oob_ops *ops);
/**
* struct platform_nand_chip - chip level device structure