aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mtd/onenand.h
diff options
context:
space:
mode:
authorKyungmin Park <kyungmin.park@samsung.com>2010-04-28 17:46:46 +0200
committerDavid Woodhouse <David.Woodhouse@intel.com>2010-05-14 01:49:48 +0100
commit4a8ce0b030716b95004a4ace969953bc3ad7d2fe (patch)
treef14bd6118d84a81a71daf17b0c08e9112dec2e17 /include/linux/mtd/onenand.h
parentmtd: onenand: add support for chips with 4KiB page size (diff)
downloadlinux-dev-4a8ce0b030716b95004a4ace969953bc3ad7d2fe.tar.xz
linux-dev-4a8ce0b030716b95004a4ace969953bc3ad7d2fe.zip
mtd: onenand: allocate verify buffer in the core
This patch extends OneNAND core code with support for OneNAND verify write check. This is done by allocating the buffer for verify read directly from the core code. Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'include/linux/mtd/onenand.h')
-rw-r--r--include/linux/mtd/onenand.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mtd/onenand.h b/include/linux/mtd/onenand.h
index c9a3c3596b68..9b43268224a7 100644
--- a/include/linux/mtd/onenand.h
+++ b/include/linux/mtd/onenand.h
@@ -125,6 +125,9 @@ struct onenand_chip {
flstate_t state;
unsigned char *page_buf;
unsigned char *oob_buf;
+#ifdef CONFIG_MTD_ONENAND_VERIFY_WRITE
+ unsigned char *verify_buf;
+#endif
int subpagesize;
struct nand_ecclayout *ecclayout;