summaryrefslogtreecommitdiff
path: root/include/onenand_uboot.h
diff options
context:
space:
mode:
authorKyungmin Park <kmpark@infradead.org>2008-11-04 09:24:07 +0900
committerScott Wood <scottwood@freescale.com>2009-01-23 10:32:44 -0600
commitef0921d6b05aeb9034158f9bef5323d6da9c925e (patch)
tree838ccebd79d88b85c2b88f93b6cf1fa104dfde8a /include/onenand_uboot.h
parent4d0b54685c5c656023b826089ef8cc0ea1c5cd9e (diff)
downloadu-boot-imx-ef0921d6b05aeb9034158f9bef5323d6da9c925e.zip
u-boot-imx-ef0921d6b05aeb9034158f9bef5323d6da9c925e.tar.gz
u-boot-imx-ef0921d6b05aeb9034158f9bef5323d6da9c925e.tar.bz2
Sync with 2.6.27
Sync with OneNAND kernel codes Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Diffstat (limited to 'include/onenand_uboot.h')
-rw-r--r--include/onenand_uboot.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/include/onenand_uboot.h b/include/onenand_uboot.h
index e960257..5a4fded 100644
--- a/include/onenand_uboot.h
+++ b/include/onenand_uboot.h
@@ -15,25 +15,29 @@
#define __UBOOT_ONENAND_H
#include <linux/types.h>
-#include <linux/mtd/mtd.h>
struct mtd_info;
struct erase_info;
+struct onenand_chip;
extern struct mtd_info onenand_mtd;
+/* board */
+extern void onenand_board_init(struct mtd_info *);
+
/* Functions */
extern void onenand_init(void);
extern int onenand_read(struct mtd_info *mtd, loff_t from, size_t len,
size_t * retlen, u_char * buf);
-extern int onenand_read_oob(struct mtd_info *mtd, loff_t from,
- struct mtd_oob_ops *ops);
+extern int onenand_read_oob(struct mtd_info *mtd, loff_t from, struct mtd_oob_ops *ops);
extern int onenand_write(struct mtd_info *mtd, loff_t from, size_t len,
size_t * retlen, const u_char * buf);
extern int onenand_erase(struct mtd_info *mtd, struct erase_info *instr);
-extern int onenand_unlock(struct mtd_info *mtd, loff_t ofs, size_t len);
+extern char *onenand_print_device_info(int device, int version);
-extern char *onenand_print_device_info(int device);
+/* S3C64xx */
+extern void s3c64xx_onenand_init(struct mtd_info *);
+extern void s3c64xx_set_width_regs(struct onenand_chip *);
#endif /* __UBOOT_ONENAND_H */