diff options
author | Wolfgang Denk <wd@denx.de> | 2009-01-23 22:48:06 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-01-23 22:48:06 +0100 |
commit | 5df70e91c72dab45b7d81e4568b12e5a5b5f90ec (patch) | |
tree | 730f833cff2474959195b5cd23e52954410218a5 /include/onenand_uboot.h | |
parent | 1ca1d3c866709635fc082b0140e02257a742316c (diff) | |
parent | d4bade8d77aa20e2846fa4accff0e7fa7961a134 (diff) | |
download | u-boot-imx-5df70e91c72dab45b7d81e4568b12e5a5b5f90ec.zip u-boot-imx-5df70e91c72dab45b7d81e4568b12e5a5b5f90ec.tar.gz u-boot-imx-5df70e91c72dab45b7d81e4568b12e5a5b5f90ec.tar.bz2 |
Merge branch 'master' of git://git.denx.de/u-boot-nand-flash
Diffstat (limited to 'include/onenand_uboot.h')
-rw-r--r-- | include/onenand_uboot.h | 14 |
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 */ |