~ubuntu-branches/ubuntu/maverick/uboot-imx/maverick

« back to all changes in this revision

Viewing changes to include/onenand_uboot.h

  • Committer: Bazaar Package Importer
  • Author(s): Oliver Grawert
  • Date: 2010-01-20 15:41:26 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100120154126-7bha1jeyjegu7xm5
Tags: 2009.08+really2009.01-0ubuntu1
* revert to the 2009.01 upstream version, 2009.08 has still to 
  many work in progress items in the freescale patchset (MMC and NIC
  dont work at all)
* add the latest patchset from freescale for 2009.01
* add 1002_enable_hush_shell_and_ext2.patch to enable hush shell and ext2 
* add 1003_fix_board_revision_numbers to make sure babbage 2.5 boards have 
  revision 51120 and babbage 3.0 boards have revision 51130 properly set in 
  their cpuinfo

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
#define __UBOOT_ONENAND_H
16
16
 
17
17
#include <linux/types.h>
 
18
#include <linux/mtd/mtd.h>
18
19
 
19
 
/* Forward declarations */
20
20
struct mtd_info;
21
 
struct mtd_oob_ops;
22
21
struct erase_info;
23
 
struct onenand_chip;
24
22
 
25
23
extern struct mtd_info onenand_mtd;
26
24
 
27
 
/* board */
28
 
extern void onenand_board_init(struct mtd_info *);
29
 
 
30
25
/* Functions */
31
26
extern void onenand_init(void);
32
27
extern int onenand_read(struct mtd_info *mtd, loff_t from, size_t len,
33
28
                        size_t * retlen, u_char * buf);
34
 
extern int onenand_read_oob(struct mtd_info *mtd, loff_t from, struct mtd_oob_ops *ops);
 
29
extern int onenand_read_oob(struct mtd_info *mtd, loff_t from,
 
30
                            struct mtd_oob_ops *ops);
35
31
extern int onenand_write(struct mtd_info *mtd, loff_t from, size_t len,
36
32
                         size_t * retlen, const u_char * buf);
37
33
extern int onenand_erase(struct mtd_info *mtd, struct erase_info *instr);
38
34
 
39
 
extern char *onenand_print_device_info(int device, int version);
 
35
extern int onenand_unlock(struct mtd_info *mtd, loff_t ofs, size_t len);
40
36
 
41
 
/* S3C64xx */
42
 
extern void s3c64xx_onenand_init(struct mtd_info *);
43
 
extern void s3c64xx_set_width_regs(struct onenand_chip *);
 
37
extern char *onenand_print_device_info(int device);
44
38
 
45
39
#endif /* __UBOOT_ONENAND_H */