summaryrefslogtreecommitdiff
path: root/include/linux/mtd
diff options
context:
space:
mode:
authorLukasz Majewski <l.majewski@samsung.com>2011-11-09 11:25:32 +0100
committerLukasz Majewski <l.majewski@samsung.com>2012-04-04 16:27:34 +0200
commit6b3967bbbb4182ab7298a816c1db7cc86adaee5e (patch)
tree181bfce9b56777690c282e157ea9586149ba3a0e /include/linux/mtd
parentc008b6f6dd6b8965e9a7654ffbce75bb9ff7a3b5 (diff)
downloadu-boot-imx-6b3967bbbb4182ab7298a816c1db7cc86adaee5e.zip
u-boot-imx-6b3967bbbb4182ab7298a816c1db7cc86adaee5e.tar.gz
u-boot-imx-6b3967bbbb4182ab7298a816c1db7cc86adaee5e.tar.bz2
onenand:samsung Target dependent OneNAND chip probe function
Separate callback for probing OneNAND memory chip. If no special function is defined, default implementation will be used. This approach gives more flexibility for OneNAND device probing. Signed-off-by: Lukasz Majewski <l.majewski@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Diffstat (limited to 'include/linux/mtd')
-rw-r--r--include/linux/mtd/onenand.h1
-rw-r--r--include/linux/mtd/samsung_onenand.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mtd/onenand.h b/include/linux/mtd/onenand.h
index 5465562..dea42f4 100644
--- a/include/linux/mtd/onenand.h
+++ b/include/linux/mtd/onenand.h
@@ -101,6 +101,7 @@ struct onenand_chip {
size_t count);
unsigned short (*read_word) (void __iomem *addr);
void (*write_word) (unsigned short value, void __iomem *addr);
+ int (*chip_probe)(struct mtd_info *mtd);
void (*mmcontrol) (struct mtd_info *mtd, int sync_read);
int (*block_markbad)(struct mtd_info *mtd, loff_t ofs);
int (*scan_bbt)(struct mtd_info *mtd);
diff --git a/include/linux/mtd/samsung_onenand.h b/include/linux/mtd/samsung_onenand.h
index 021fa27..ddb29bb 100644
--- a/include/linux/mtd/samsung_onenand.h
+++ b/include/linux/mtd/samsung_onenand.h
@@ -127,5 +127,7 @@ struct samsung_onenand {
/* common initialize function */
extern void s3c_onenand_init(struct mtd_info *);
+extern int s5pc110_chip_probe(struct mtd_info *);
+extern int s5pc210_chip_probe(struct mtd_info *);
#endif