mtd: extend plat_nand for (read|write)_buf
commitd6fed9e9fc5eefae5be0ecf222bac7e7496e8e74
authorAlexander Clouter <alex@digriz.org.uk>
Mon, 11 May 2009 18:28:01 +0000 (11 19:28 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 5 Jun 2009 16:50:52 +0000 (5 17:50 +0100)
tree6ce53210d557bdf7d3f4424736a611af376083ac
parenta0645ce9ba2e40fb2e2d74e47c90063015ee4527
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>
drivers/mtd/nand/plat_nand.c
include/linux/mtd/nand.h