aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mtd
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2006-09-25 17:06:53 +0100
committerDavid Woodhouse <dwmw2@infradead.org>2006-09-25 17:06:53 +0100
commit3b85c3211ebde263a86c8cd3c7277fdd2e440310 (patch)
tree31c837ab0ce86eb4ade51836a624bbeadb60204f /include/linux/mtd
parent[MTD NAND] Export nand_wait_ready() for use by board drivers (diff)
downloadlinux-dev-3b85c3211ebde263a86c8cd3c7277fdd2e440310.tar.xz
linux-dev-3b85c3211ebde263a86c8cd3c7277fdd2e440310.zip
[MTD NAND] Split nand_scan() into two parts; allow board driver to intervene
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'include/linux/mtd')
-rw-r--r--include/linux/mtd/nand.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h
index 0b4cd2fa64aa..88d690d79d77 100644
--- a/include/linux/mtd/nand.h
+++ b/include/linux/mtd/nand.h
@@ -27,6 +27,11 @@
struct mtd_info;
/* Scan and identify a NAND device */
extern int nand_scan (struct mtd_info *mtd, int max_chips);
+/* Separate phases of nand_scan(), allowing board driver to intervene
+ * and override command or ECC setup according to flash type */
+extern int nand_scan_ident(struct mtd_info *mtd, int max_chips);
+extern int nand_scan_tail(struct mtd_info *mtd);
+
/* Free resources held by the NAND device */
extern void nand_release (struct mtd_info *mtd);