aboutsummaryrefslogtreecommitdiff
path: root/include/onenand_uboot.h
diff options
context:
space:
mode:
authorAmul Kumar Saha <amul.saha@samsung.com>2009-11-06 17:15:31 +0530
committerScott Wood <scottwood@freescale.com>2009-11-13 16:56:18 -0600
commitcacbe919584193f64e74088e03f068e52775bb86 (patch)
tree4ef455ca413a90d2d5c90e85233826e3a6b75ca0 /include/onenand_uboot.h
parent35209cbceebe212a8c5ec17d552960f8bd4725f3 (diff)
downloadu-boot-cacbe919584193f64e74088e03f068e52775bb86.zip
u-boot-cacbe919584193f64e74088e03f068e52775bb86.tar.gz
u-boot-cacbe919584193f64e74088e03f068e52775bb86.tar.bz2
Flex-OneNAND driver support
This patch adds support for Flex-OneNAND devices. Signed-off-by: Rohit Hagargundgi <h.rohit@samsung.com> Signed-off-by: Amul Kumar Saha <amul.saha@samsung.com>
Diffstat (limited to 'include/onenand_uboot.h')
-rw-r--r--include/onenand_uboot.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/onenand_uboot.h b/include/onenand_uboot.h
index 49da9d0..92279d5 100644
--- a/include/onenand_uboot.h
+++ b/include/onenand_uboot.h
@@ -23,6 +23,7 @@ struct erase_info;
struct onenand_chip;
extern struct mtd_info onenand_mtd;
+extern struct onenand_chip onenand_chip;
/* board */
extern void onenand_board_init(struct mtd_info *);
@@ -38,6 +39,15 @@ extern int onenand_erase(struct mtd_info *mtd, struct erase_info *instr);
extern char *onenand_print_device_info(int device, int version);
+extern unsigned onenand_block(struct onenand_chip *this, loff_t addr);
+
+extern loff_t onenand_addr(struct onenand_chip *this, int block);
+
+extern int flexonenand_region(struct mtd_info *mtd, loff_t addr);
+
+extern int flexonenand_set_boundary(struct mtd_info *mtd, int die,
+ int boundary, int lock);
+
/* S3C64xx */
extern void s3c64xx_onenand_init(struct mtd_info *);
extern void s3c64xx_set_width_regs(struct onenand_chip *);