summaryrefslogtreecommitdiffstats
path: root/include/linux/mtd
diff options
context:
space:
mode:
authorDmitry Baryshkov <dbaryshkov@gmail.com>2008-10-16 18:43:48 +0400
committerDmitry Baryshkov <dbaryshkov@gmail.com>2008-10-29 21:06:38 +0300
commita20c7ab570ffdce1d6f67c7acf8c1c502a3b3839 (patch)
treea7de81865eb5a227683e2f0ec13434ca3388b413 /include/linux/mtd
parentc176d0ca8b775a784e38d8afc7c7b42e8906282d (diff)
downloadblackbird-op-linux-a20c7ab570ffdce1d6f67c7acf8c1c502a3b3839.tar.gz
blackbird-op-linux-a20c7ab570ffdce1d6f67c7acf8c1c502a3b3839.zip
[MTD] sharpsl-nand: use platform_data for model-specific values
Add platform_data which holds all model-specific values, like badblocks pattern, oobinfo, partitions. Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Diffstat (limited to 'include/linux/mtd')
-rw-r--r--include/linux/mtd/sharpsl.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/linux/mtd/sharpsl.h b/include/linux/mtd/sharpsl.h
new file mode 100644
index 000000000000..25f4d2a845c1
--- /dev/null
+++ b/include/linux/mtd/sharpsl.h
@@ -0,0 +1,20 @@
+/*
+ * SharpSL NAND support
+ *
+ * Copyright (C) 2008 Dmitry Baryshkov
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#include <linux/mtd/nand.h>
+#include <linux/mtd/nand_ecc.h>
+#include <linux/mtd/partitions.h>
+
+struct sharpsl_nand_platform_data {
+ struct nand_bbt_descr *badblock_pattern;
+ struct nand_ecclayout *ecc_layout;
+ struct mtd_partition *partitions;
+ unsigned int nr_partitions;
+};
OpenPOWER on IntegriCloud