diff options
author | Rob Herring <r.herring@freescale.com> | 2009-09-16 11:43:45 -0500 |
---|---|---|
committer | Justin Waters <justin.waters@timesys.com> | 2010-03-25 13:59:47 -0400 |
commit | 1587afdcc9a1a6083b0f75f0e4b2308ba4bc1e3c (patch) | |
tree | 6cd6f9c150c67602fa3d8d523df2183bee291335 /include | |
parent | ed3e88e4e5504fa0053d0196aef598fbadf90b93 (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')
-rw-r--r-- | include/linux/mtd/nand.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h index 4030ebada49e..993e86245d56 100644 --- a/include/linux/mtd/nand.h +++ b/include/linux/mtd/nand.h @@ -43,8 +43,8 @@ extern void nand_wait_ready(struct mtd_info *mtd); * is supported now. If you add a chip with bigger oobsize/page * adjust this accordingly. */ -#define NAND_MAX_OOBSIZE 128 -#define NAND_MAX_PAGESIZE 4096 +#define NAND_MAX_OOBSIZE (218 * NAND_MAX_CHIPS) +#define NAND_MAX_PAGESIZE (4096 * NAND_MAX_CHIPS) /* * Constants for hardware specific CLE/ALE/NCE function @@ -546,7 +546,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); /* * Constants for oob configuration */ |