summaryrefslogtreecommitdiff
path: root/include/linux/mtd/concat.h
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2009-05-12 14:29:39 +0200
committerWolfgang Denk <wd@denx.de>2009-06-12 20:45:47 +0200
commit0a57265533c412adf6024f4b4955141f4346b2b9 (patch)
tree011c00b2cfb16aa1cb9e01f2938d7664209c4f2c /include/linux/mtd/concat.h
parent55e0ed6078b10b0d425b6a0677f38a015c277df6 (diff)
downloadu-boot-imx-0a57265533c412adf6024f4b4955141f4346b2b9.zip
u-boot-imx-0a57265533c412adf6024f4b4955141f4346b2b9.tar.gz
u-boot-imx-0a57265533c412adf6024f4b4955141f4346b2b9.tar.bz2
mtd: Add MTD concat support to concatenate multiple MTD NOR devices
This patch adds concatenation support to the U-Boot MTD infrastructure. By enabling CONFIG_MTD_CONCAT this MTD CFI wrapper will concatenate all found NOR devices into one single MTD device. This can be used by e.g by UBI to access a partition that spans over multiple NOR chips. Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'include/linux/mtd/concat.h')
-rw-r--r--include/linux/mtd/concat.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/linux/mtd/concat.h b/include/linux/mtd/concat.h
new file mode 100644
index 0000000..e80c674
--- /dev/null
+++ b/include/linux/mtd/concat.h
@@ -0,0 +1,21 @@
+/*
+ * MTD device concatenation layer definitions
+ *
+ * (C) 2002 Robert Kaiser <rkaiser@sysgo.de>
+ *
+ * This code is GPL
+ */
+
+#ifndef MTD_CONCAT_H
+#define MTD_CONCAT_H
+
+
+struct mtd_info *mtd_concat_create(
+ struct mtd_info *subdev[], /* subdevices to concatenate */
+ int num_devs, /* number of subdevices */
+ const char *name); /* name for the new device */
+
+void mtd_concat_destroy(struct mtd_info *mtd);
+
+#endif
+