aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mtd
diff options
context:
space:
mode:
authorAlexander Clouter <alex@digriz.org.uk>2009-05-11 14:28:01 -0400
committerDavid Woodhouse <David.Woodhouse@intel.com>2009-06-05 12:50:52 -0400
commitd6fed9e9fc5eefae5be0ecf222bac7e7496e8e74 (patch)
tree6ce53210d557bdf7d3f4424736a611af376083ac /include/linux/mtd
parenta0645ce9ba2e40fb2e2d74e47c90063015ee4527 (diff)
mtd: extend plat_nand for (read|write)_buf
This patch adds (write|read)_buf callbacks to plat_nand. The NAND on the TS-7800 provisioned by the FPGA allows readw() and readl() to be used which gives a 2.5x speed up. To be able to use this from the plat_nand driver a hook for read_buf (and also write_buf whilst we are in there) need to be made available. This patch adds the hook. Signed-off-by: Alexander Clouter <alex@digriz.org.uk> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'include/linux/mtd')
-rw-r--r--include/linux/mtd/nand.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h
index 7efb9be34662..0e35375ea795 100644
--- a/include/linux/mtd/nand.h
+++ b/include/linux/mtd/nand.h
@@ -584,6 +584,8 @@ struct platform_nand_chip {
584 * @select_chip: platform specific chip select function 584 * @select_chip: platform specific chip select function
585 * @cmd_ctrl: platform specific function for controlling 585 * @cmd_ctrl: platform specific function for controlling
586 * ALE/CLE/nCE. Also used to write command and address 586 * ALE/CLE/nCE. Also used to write command and address
587 * @write_buf: platform specific function for write buffer
588 * @read_buf: platform specific function for read buffer
587 * @priv: private data to transport driver specific settings 589 * @priv: private data to transport driver specific settings
588 * 590 *
589 * All fields are optional and depend on the hardware driver requirements 591 * All fields are optional and depend on the hardware driver requirements
@@ -594,6 +596,10 @@ struct platform_nand_ctrl {
594 void (*select_chip)(struct mtd_info *mtd, int chip); 596 void (*select_chip)(struct mtd_info *mtd, int chip);
595 void (*cmd_ctrl)(struct mtd_info *mtd, int dat, 597 void (*cmd_ctrl)(struct mtd_info *mtd, int dat,
596 unsigned int ctrl); 598 unsigned int ctrl);
599 void (*write_buf)(struct mtd_info *mtd,
600 const uint8_t *buf, int len);
601 void (*read_buf)(struct mtd_info *mtd,
602 uint8_t *buf, int len);
597 void *priv; 603 void *priv;
598}; 604};
599 605